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

SemanticGraphCoreAnnotations missing #34

Open
heathd opened this issue Jan 6, 2015 · 1 comment
Open

SemanticGraphCoreAnnotations missing #34

heathd opened this issue Jan 6, 2015 · 1 comment

Comments

@heathd
Copy link

heathd commented Jan 6, 2015

Hi

I'm new to Stanford NLP, just experimenting with it, so please excuse any glaring mistakes!

I installed your gem the newest stanford-corenlp-full-2014-10-31 and stanford-postagger-2014-10-26.

I'm using the gem version 0.5.1.

Following your instructions I configured StanfordCoreNLP to use these libraries. See this gist:

https://gist.github.com/heathd/b6fa778f682cec8e688c

Upon running this script I got the following error:

/Users/davidheath/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/stanford-core-nlp-0.5.1/lib/stanford-core-nlp/bridge.rb:48:in `method_missing': edu.stanford.nlp.trees.semgraph.SemanticGraphCoreAnnotations$BasicDependenciesAnnotation (ClassNotFoundException)
    from /Users/davidheath/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/stanford-core-nlp-0.5.1/lib/stanford-core-nlp/bridge.rb:48:in `get'
    from test.rb:33:in `block in <main>'
    from /Users/davidheath/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/bind-it-0.2.7/lib/bind-it/rjb_proxy.rb:22:in `each'
    from test.rb:31:in `<main>'

after some digging around I found the config.rb file line 354 from:

      'nlp.trees.semgraph.SemanticGraphCoreAnnotations' => [
        'BasicDependenciesAnnotation',
        'CollapsedCCProcessedDependenciesAnnotation',
        'CollapsedDependenciesAnnotation'
      ],

to

      'nlp.semgraph.SemanticGraphCoreAnnotations' => [
        'BasicDependenciesAnnotation',
        'CollapsedCCProcessedDependenciesAnnotation',
        'CollapsedDependenciesAnnotation'
      ],

I suppose that this library must have been moved during a recent release of the Stanford NLP java library.

I noticed that this change was included in the commit from @efrat-safanov in e0f12bd. So I guess that you'll include this change in a future release of the gem.

Possibly nothing to do here apart from making it clear somewhere that the current gem release doesn't work with stanford nlp 3.5.0?

Thanks!

David

@arbox
Copy link
Collaborator

arbox commented Oct 24, 2016

Please be patient, we are working on this issue!

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