public class StanfordDateTimeExtractor extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DATE_ENTITIES |
static List<String> |
MEASURE_ENTITIES |
| Constructor and Description |
|---|
StanfordDateTimeExtractor() |
| Modifier and Type | Method and Description |
|---|---|
edu.stanford.nlp.semgraph.SemanticGraph |
getDependencies() |
List<String> |
getDependencyList() |
int |
getTokenCount() |
List<Tokens> |
populateParserInfo(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 int getTokenCount()
public edu.stanford.nlp.semgraph.SemanticGraph getDependencies()
public void setDependencies(edu.stanford.nlp.semgraph.SemanticGraph dependencies)
public List<Tokens> populateParserInfo(String inputSentence)
input: - The natural language string.Copyright © 2015. All rights reserved.