Package io.outofprintmagazine.nlp
Class Analyzer
- java.lang.Object
-
- io.outofprintmagazine.nlp.Analyzer
-
public class Analyzer extends Object
The main library execution entry point for oopcorenlp.
analyze runs the coreNLP annotators, runs the custom annotators, serializes the annotation tree, and returns four JsonDocuments:
- STANFORD
- OOP
- AGGREGATES
- PIPELINE
- Author:
- Ram Sadasiv
- See Also:
CoreNlpUtils
,IOOPAnnotator
,CoreNlpSerializer
,ISerializer
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>
customAnnotatorClassNames
-
Constructor Summary
Constructors Constructor Description Analyzer(IParameterStore parameterStore, List<String> annotatorClassNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,com.fasterxml.jackson.databind.node.ObjectNode>
analyze(Properties metadata, String text)
ArrayList<IOOPAnnotator>
getCustomAnnotators()
-
-
-
Constructor Detail
-
Analyzer
public Analyzer(IParameterStore parameterStore, List<String> annotatorClassNames) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
-
-
Method Detail
-
getCustomAnnotators
public ArrayList<IOOPAnnotator> getCustomAnnotators()
-
analyze
public Map<String,com.fasterxml.jackson.databind.node.ObjectNode> analyze(Properties metadata, String text) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException
-
-