I made a new data folder in res folder and place the file left3words-wsj-0-18.tagger inside it and give the path in the MaxentTagger as
MaxentTagger tagger = null;
tagger = new MaxentTagger("data/left3words-wsj-0-18.tagger");
I gave the path data/left3words-wsj-0-18.tagger in constructor.
I also edit the app.iml and added this line
sourceFolder url="file://$MODULE_DIR$/src/main/res/data" isTestSource="false" />
But still it giving the error
Loading default properties from trained tagger left3words-wsj-0-18.tagger Error: No such trained tagger config file found. java.io.FileNotFoundException: left3words-wsj-0-18.tagger: open failed: ENOENT (No such file or directory)