Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import edu.stanford.nlp.tagger.maxent.MaxentTagger fail #2

Open
faiyadhs007 opened this issue Mar 19, 2017 · 1 comment
Open

Import edu.stanford.nlp.tagger.maxent.MaxentTagger fail #2

faiyadhs007 opened this issue Mar 19, 2017 · 1 comment

Comments

@faiyadhs007
Copy link

faiyadhs007 commented Mar 19, 2017

Hi,

I am trying to use your function for importing Stanford NLP Speech Tager. The error I get is on the import of the particular file:

Arguments to IMPORT must either end with ".*" or else specify a fully qualified class name:
"edu.stanford.nlp.tagger.maxent.MaxentTagger" fails this test.

What am I using?:

  • MATLAB 2016b (Running on a mac)
  • java version "1.8.0_51"
  • stanford-postagger-full-2016-10-31

What did I do? :

  • Added the stanford-postagger.jar using javaaddpath& verified if it was added using javaclasspath. It's added in a dynamic java path
  • Place PosTaggerM.m in a directory and nglish-left3words-distsim.tagger in the same directory

Is there something I am missing in this?

@musically-ut
Copy link
Owner

Hi @faiyadhs007,

Thanks for the report. The current code has been tested with only version 3.4.1 of the PoS tagger (i.e. 2014-08-27 on the download page). See the discussion in #1 as well; perhaps there are some hints there which can help you debug any further issues.

The class structure has most likely changed since version 3.4.1 and I haven't kept this wrapper up to date with it. Any help in that regard or confirmation of setup where it works will be greatly appreciated!

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants