public class StanfordNer extends TrainableNamedEntityRecognizer
This class wraps the Stanford Named Entity Recognizer which is based on conditional random fields (CRF).
The NER has been described in: Jenny Rose Finkel, Trond Grenager, and Christopher Manning; "Incorporating Non-local Information into Information Extraction Systems"; Proceedings of the 43nd Annual Meeting of the Association for Computational Linguistics (ACL 2005), pp. 363-370.
The following models exist already for this recognizer:
| Constructor and Description |
|---|
StanfordNer() |
| Modifier and Type | Method and Description |
|---|---|
List<Annotation> |
getAnnotations(String inputText) |
String |
getModelFileEnding() |
String |
getName() |
boolean |
loadModel(String configModelFilePath) |
static void |
main(String[] args) |
boolean |
setsModelFileEndingAutomatically() |
boolean |
train(String trainingFilePath,
String modelFilePath) |
getModelFileEndingIfNotSetAutomatically, oneModelPerConcept, train, trainevaluate, evaluate, evaluate, evaluate, getTaggingFormat, setTaggingFormat, tagpublic String getModelFileEnding()
getModelFileEnding in class TrainableNamedEntityRecognizerpublic boolean setsModelFileEndingAutomatically()
setsModelFileEndingAutomatically in class TrainableNamedEntityRecognizerpublic boolean train(String trainingFilePath, String modelFilePath)
train in class TrainableNamedEntityRecognizerpublic boolean loadModel(String configModelFilePath)
loadModel in class TrainableNamedEntityRecognizerpublic List<Annotation> getAnnotations(String inputText)
getAnnotations in interface TaggergetAnnotations in class NamedEntityRecognizerpublic String getName()
getName in class NamedEntityRecognizerCopyright © 2018. All rights reserved.