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
IOException
public 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
Exception
public void annotateStanford(Properties properties, edu.stanford.nlp.pipeline.Annotation document, KAFDocument NAFdocument) throws IOException
IOException
public KAFDocument parseFromNAF(KAFDocument NAFdocument) throws Exception
Exception
public KAFDocument parseFromString(String textInNafFormat) throws Exception
Exception
Copyright © 2016–2020 FBK. All rights reserved.