public class NerAnnotatorManager extends Object
Constructor and Description |
---|
NerAnnotatorManager() |
Modifier and Type | Method and Description |
---|---|
static NERAnnotator |
buildNerAnnotator(ResourceManager nonDefaultRm) |
static NERAnnotator |
buildNerAnnotator(ResourceManager nonDefaultRm,
String viewName)
the viewName will be used as a KEY to instantiate/get the corresponding NER instance
|
static NERAnnotator |
buildNerAnnotator(String nonDefaultConfig,
String viewName)
the viewName will be used as a KEY to instantiate/get the corresponding NER instance
|
public static NERAnnotator buildNerAnnotator(String nonDefaultConfig, String viewName) throws IOException
nonDefaultConfig
- a file containing non-default parameters for the NER model named by
the viewName parameter.viewName
- assign a name to the NER view generated. As shipped, this should be
ViewNames.NER_CONLL or ViewNames.NER_ONTONOTESIOException
public static NERAnnotator buildNerAnnotator(ResourceManager nonDefaultRm)
public static NERAnnotator buildNerAnnotator(ResourceManager nonDefaultRm, String viewName)
nonDefaultRm
- a non-null ResourceManager object containing non-default parameters for
the NER model named by the viewName parameter.viewName
- assign a name to the NER view generated. As shipped, this should be
ViewNames.NER_CONLL or ViewNames.NER_ONTONOTESCopyright © 2017. All rights reserved.