public class StanfordDateTimeExtractor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
DATE_ENTITIES |
static java.util.List<java.lang.String> |
MEASURE_ENTITIES |
Constructor and Description |
---|
StanfordDateTimeExtractor() |
Modifier and Type | Method and Description |
---|---|
edu.stanford.nlp.semgraph.SemanticGraph |
getDependencies() |
java.util.List<java.lang.String> |
getDependencyList() |
int |
getTokenCount() |
java.util.List<Tokens> |
populateParserInfo(java.lang.String inputSentence)
Calls the stanford parser and extracts the necessary information about the words in the string
and stores them in Token object for further usage.
|
void |
setDependencies(edu.stanford.nlp.semgraph.SemanticGraph dependencies) |
public static java.util.List<java.lang.String> DATE_ENTITIES
public static java.util.List<java.lang.String> MEASURE_ENTITIES
public java.util.List<java.lang.String> getDependencyList()
public int getTokenCount()
public edu.stanford.nlp.semgraph.SemanticGraph getDependencies()
public void setDependencies(edu.stanford.nlp.semgraph.SemanticGraph dependencies)
public java.util.List<Tokens> populateParserInfo(java.lang.String inputSentence)
input:
- The natural language string.