public class AnnotationPipeline extends Object
| Constructor and Description | 
|---|
AnnotationPipeline(File configFile,
                  Properties additionalProperties)  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addHeads(edu.stanford.nlp.trees.Tree node)  | 
static void | 
addHeads(edu.stanford.nlp.trees.Tree node,
        edu.stanford.nlp.trees.Tree parent,
        edu.stanford.nlp.trees.HeadFinder headFinder)  | 
void | 
addToNerMap(String key,
           String value)  | 
void | 
annotateStanford(Properties properties,
                edu.stanford.nlp.pipeline.Annotation document,
                KAFDocument NAFdocument)  | 
void | 
deleteFromNerMap(String key)  | 
Properties | 
getDefaultConfig()  | 
void | 
loadModels()  | 
void | 
loadModels(Properties properties)  | 
KAFDocument | 
parseFromNAF(KAFDocument NAFdocument)  | 
KAFDocument | 
parseFromString(String textInNafFormat)  | 
public AnnotationPipeline(@Nullable File configFile, @Nullable Properties additionalProperties) throws IOException
IOExceptionpublic void deleteFromNerMap(String key)
public Properties getDefaultConfig()
public static void addHeads(edu.stanford.nlp.trees.Tree node)
public static void addHeads(edu.stanford.nlp.trees.Tree node,
                            edu.stanford.nlp.trees.Tree parent,
                            edu.stanford.nlp.trees.HeadFinder headFinder)
public void loadModels(Properties properties) throws Exception
Exceptionpublic void annotateStanford(Properties properties, edu.stanford.nlp.pipeline.Annotation document, KAFDocument NAFdocument) throws IOException
IOExceptionpublic KAFDocument parseFromNAF(KAFDocument NAFdocument) throws Exception
Exceptionpublic KAFDocument parseFromString(String textInNafFormat) throws Exception
ExceptionCopyright © 2016–2020 FBK. All rights reserved.