POS Tagging using Matlab MaxentTagger Class Import problem

twitter sentiment analysis using Matlab   , kindly tell me whenever i import MaxentTagger class , i generate error that *. is must fot import statement..

Even i put *. but still MaxentTagger methods are not imoported in my program.....    



function result = PosTaggerM(str)
     
     
      import java.io.*;
      import edu.stanford.nlp.tagger.maxent.MaxentTagger.*;

      %
      % This initialization is expensive.
        % It is better to create the tagger once and then reuse it.
      %
      tagger = MaxentTagger('C:/Program Files/MATLAB/R2017a/bin/english-left3words-distsim.tagger');
      result = java.util.ArrayList();
      sentences = MaxentTagger.tokenizeText(StringReader(str));
      for ii = 1:size(sentences)
            tSentence = tagger.tagSentence(sentences.get(ii-1));
            result.addAll(tSentence);
      end
end

ERROR GENERATED on RUN     Undefined function or variable 'MaxentTagger'.

Error in PosTaggerM (line 40)
      tagger = MaxentTagger('C:/Program Files/MATLAB/R2017a/bin/english-left3words-distsim.tagger');
sadia iqbalSST(Computer Sci)Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Twitter

From novice to tech pro — start learning today.