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

error Attempted to fetch annotator "parse" but the annotator pool does not store any such type! #8

Open
xusong123 opened this issue Jul 25, 2017 · 1 comment

Comments

@xusong123
Copy link

Hello, I am studying the paper "Deep Reinforcement Learning for Mention-Ranking Coference Models" and follow the steps to train my own model. But in the third step(Run the NeuralCorefDataExporter class in the development version of Stanford's CoreNLP), I occur this error. I cannot find a solution in Google. Thank you!

This is my neural-english-conll.properties:
coref.algorithm = neural
coref.conll = true
coref.data = /home/hengru/deep-coref/conll-2012
coref.conllOutputPath = /home/hengru/deep-coref/data/data_out
coref.scorer = /home/hengru/deep-coref/data/scorer

This is the error:
hengru@dc6:~/CoreNLP/target$ java -Xmx2g -cp javax.json.jar:stanford-corenlp-3.7.0.jar:stanford-corenlp-models-3.7.0.jar:* edu.stanford.nlp.coref.neural.NeuralCorefDataExporter neural-english-conll.properties /home/hengru/deep-coref/data/data_out/
Jul 25, 2017 6:52:56 PM edu.stanford.nlp.coref.docreader.CoNLLDocumentReader
INFO: Reading 1940 CoNLL files from /home/hengru/deep-coref/conll-2012/v4/data/train/data/english/annotations/
Adding annotator lemma
Adding annotator mention
Using mention detector type: rule
Attempted to fetch annotator "parse" but the annotator pool does not store any such type!
Exception in thread "main" java.lang.NullPointerException
at edu.stanford.nlp.coref.md.CorefMentionFinder.parse(CorefMentionFinder.java:646)
at edu.stanford.nlp.coref.md.CorefMentionFinder.findSyntacticHead(CorefMentionFinder.java:536)
at edu.stanford.nlp.coref.md.CorefMentionFinder.findHead(CorefMentionFinder.java:456)
at edu.stanford.nlp.coref.md.RuleBasedCorefMentionFinder.findMentions(RuleBasedCorefMentionFinder.java:100)
at edu.stanford.nlp.pipeline.MentionAnnotator.annotate(MentionAnnotator.java:102)
at edu.stanford.nlp.pipeline.AnnotationPipeline.annotate(AnnotationPipeline.java:76)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.annotate(StanfordCoreNLP.java:648)
at edu.stanford.nlp.coref.data.DocumentMaker.nextDoc(DocumentMaker.java:145)
at edu.stanford.nlp.coref.CorefDocumentProcessor.run(CorefDocumentProcessor.java:40)
at edu.stanford.nlp.coref.CorefDocumentProcessor.run(CorefDocumentProcessor.java:25)
at edu.stanford.nlp.coref.neural.NeuralCorefDataExporter.exportData(NeuralCorefDataExporter.java:182)
at edu.stanford.nlp.coref.neural.NeuralCorefDataExporter.main(NeuralCorefDataExporter.java:189)

@agilajah
Copy link

Hello, did you find a workaround? I encountered a similar error.

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