Open dgonzo opened 9 years ago
Hi,
I'm just another user of stanford-corenlp-python, but perhaps I could answer your qestion.
To use Stanford NER in the CoreNLP pipeline, try adding it to the annotators:
annotators = tokenize, ssplit, pos, lemma, ner, depparse
To specify models, use the ner.model
property: "NER model(s) in a comma separated list to use instead of the default models. By default, the models used will be the 3class, 7class, and MISCclass models, in that order." (source)
@mmihaltz That's exactly what I tried to no avail including:
annotators = tokenize, ssplit, pos, lemma, depparse, regexner
and
annotators = tokenize, ssplit, pos, lemma, depparse, ner
In my case when I add ner to the default.properties as:
annotators = tokenize, ssplit, pos, lemma, depparse , ner
It gives me error:
Traceback (most recent call last):
File "corenlp/corenlp.py", line 515, in
In the default.properties file I see that there are options for applying ner as one of the annotators. But when I try something like
I don't get a named entity annotation. I also see that the ner models in corenlp can be selected but the are below a comment:
How do I return a named entity annotation?
How do I select from the ner models?