Modifier and Type | Field and Description |
---|---|
private Token |
AGrammaticalStructure.token
Token
|
private Token |
GraphNode.token
Token
|
private Token |
AParseTree.token
Token
|
Modifier and Type | Field and Description |
---|---|
java.util.List<Token> |
AAnalysis.tokens
Tokens
|
Modifier and Type | Method and Description |
---|---|
Token |
GraphEdge.getSourceToken() |
Token |
GraphEdge.getTargetToken() |
Token |
AGrammaticalStructure.getToken()
Get token
|
Token |
GraphNode.getToken()
Get token
|
Token |
AParseTree.getToken()
Get token
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
AbstractDocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
AbstractDocumentFactory.tokensToString(java.util.List<Token> tokens,
boolean isXml)
Tokens to string
|
Constructor and Description |
---|
AGrammaticalStructure(java.lang.String value,
Token token,
double score)
Constructor
|
AParseTree(java.lang.String value,
Token token,
double score)
Constructor
|
GraphNode(Token token,
java.lang.String value,
java.lang.String information)
Constructor
|
Constructor and Description |
---|
AAnalysis(int sentenceId,
SentenceSegment segment,
java.lang.String text,
java.util.List<WordSegment> wordSegments,
java.util.List<Token> tokens,
AParseTree tree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraphs,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples)
Constructor
|
Modifier and Type | Field and Description |
---|---|
private Document.MapCache<java.lang.Integer,java.util.List<Token>> |
Document.tokens |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
Document.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
DocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
DocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Field and Description |
---|---|
protected AbstractDocumentFactory.Cache<java.util.List<Token>> |
AbstractDocumentFactory.tokens
Tokens
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<Token> |
AbstractDocumentFactory.getTokens(int sentenceIdx)
Get tokens
|
Modifier and Type | Method and Description |
---|---|
APartsOfSpeech |
APartsOfSpeechFactory.make(java.util.List<Token> tokens)
Make part-of-speech from Stanford parse tree
|
private static java.lang.String |
AbstractDocumentFactory.tokensToString(java.util.List<Token> tokens,
java.lang.String tokenizer,
boolean isXml)
Tokens to string
|
Constructor and Description |
---|
MutableAGrammaticalStructure(java.lang.String value,
Token token,
double score)
Constructor
|
MutableAParseTree(java.lang.String value,
Token token,
double score)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
DocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
DocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
IDocumentFactoryService.getTokens(int sentenceIdx)
Get tokens
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
AnalysisPrinter.getReport(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.Map<java.lang.Integer,Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
Report
|
static java.lang.String[] |
AnalysisPrinter.getReports(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.List<Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
Split reports
|
static java.lang.String |
Printer.tokensToString(java.util.List<Token> tokens)
Make XML string from list of tokens
|
static java.lang.String |
AnalysisPrinter.tokensToString(java.util.List<Token> tokens,
boolean xMLFlag)
Tokens to string
|
static java.lang.String |
Printer.tokensToString(java.util.Map<java.lang.Integer,Token> tokens)
Make XML string from list of tokens
|
static java.lang.String |
AnalysisPrinter.tokensToString(java.util.Map<java.lang.Integer,Token> tokens,
boolean xMLFlag)
Tokens to string
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Token>> |
XMLDocument.tokens
Tokens
|
Modifier and Type | Method and Description |
---|---|
private static Token |
XMLDocument.getToken(java.lang.String id,
int index,
java.util.Map<java.lang.Integer,Token> tokens)
Get token
|
private Token |
XMLDocument.makeToken(org.w3c.dom.Element tokenElement,
int sentenceIdx,
java.util.List<WordSegment> wordSegments,
java.lang.StringBuffer sb)
Make token from element
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
XMLDocumentFactory.getTokens(int sentenceIdx) |
private java.util.Map<java.lang.Integer,Token> |
XMLDocument.makeTokens(org.w3c.dom.Element sentenceElement,
int sentenceIdx,
java.util.List<WordSegment> wordSegments,
java.lang.StringBuffer sb)
Make tokens from element
|
Modifier and Type | Method and Description |
---|---|
private static Token |
XMLDocument.getToken(java.lang.String id,
int index,
java.util.Map<java.lang.Integer,Token> tokens)
Get token
|
private ATypedDependencies |
XMLDocument.makeATypedDependencies(org.w3c.dom.Element dependenciesElement,
java.util.Map<java.lang.Integer,Token> tokens)
Make typed dependencies from element
|
private java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> |
XMLDocument.makeCompatTypedDependencies(org.w3c.dom.Element sentenceElement,
java.util.Map<java.lang.Integer,Token> tokens)
Make compat typed dependencies from element
|
static ASemanticGraph |
ASemanticGraphFactory.makeGraph(ATypedDependencies artifact,
java.util.List<java.lang.Integer> rootIndices,
java.util.Map<java.lang.Integer,Token> tokens) |
static ASemanticGraph |
ASemanticGraphFactory.makeGraph(ATypedDependencies artifact,
java.util.Map<java.lang.Integer,Token> tokens) |
private static java.util.Map<java.lang.Integer,ANamedEntities> |
XMLDocument.makeNamedEntities(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Token>> tokens)
Gather Named Entities
|
private static java.util.Map<java.lang.Integer,APartsOfSpeech> |
XMLDocument.makePoses(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Token>> tokens)
Gather Part-Of-Speech data
|
private java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> |
XMLDocument.makeSemanticGraphs(org.w3c.dom.Element sentenceElement,
java.util.Map<java.lang.Integer,Token> tokens)
Make typed dependencies from element
|
private java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> |
XMLDocument.makeTypedDependencies(org.w3c.dom.Element sentenceElement,
java.util.Map<java.lang.Integer,Token> tokens)
Make typed dependencies from element
|
private TypedDependency |
XMLDocument.makeTypedDependency(org.w3c.dom.Element typedDependencyElement,
java.util.Map<java.lang.Integer,Token> tokens)
Make typed dependencies from element
|
java.lang.String |
XMLPrinter.tokensToXMLString(java.util.List<Token> tokens)
Make XML string from list of tokens
|
java.lang.String |
XMLPrinter.tokensToXMLString(java.util.Map<java.lang.Integer,Token> tokens)
Make XML string from list of tokens
|
Constructor and Description |
---|
MutableAGrammaticalStructure(java.lang.String value,
Token token,
double score)
Constructor
|
MutableAParseTree(java.lang.String value,
Token token,
double score)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
NullDocumentFactory.getTokens(int sentenceIdx) |
Modifier and Type | Field and Description |
---|---|
java.util.List<Token> |
DepthAnalysis.tokens
Tokens
|
java.util.List<Token> |
BreadthAnalysis.tokens
Tokens
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
PipelineAnnotation.getTokens(int sentenceIdx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
IPipelineAnnotation.getTokens(int sentenceIdx)
Get sentence tokens
|
Modifier and Type | Field and Description |
---|---|
private Token |
TypedDependency.dependent
Dependent
|
private Token |
TypedDependency.governor
Governor
|
Modifier and Type | Field and Description |
---|---|
java.util.List<Token> |
Analysis.tokens
Sentence's tokens
|
Modifier and Type | Method and Description |
---|---|
Token |
TypedDependency.getDependent()
Get dependent
|
Token |
TypedDependency.getGovernor()
Get governor
|
Token |
ILink.getSourceToken()
Get source token
|
Token |
TypedDependency.getSourceToken() |
Token |
ILink.getTargetToken()
Get target token
|
Token |
TypedDependency.getTargetToken() |
Constructor and Description |
---|
TypedDependency(BasicRelation relation,
Token governor,
Token dependent)
Constructor
|
Constructor and Description |
---|
Analysis(java.lang.String text,
SentenceSegment segment,
java.util.List<Token> tokens,
edu.stanford.nlp.trees.Tree parseTree,
edu.stanford.nlp.trees.GrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies2,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs2,
java.util.List<NamedEntity> namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Printer.tokensToString(java.util.List<Token> tokens,
java.lang.String tokenizer)
Tokens to string
|
Modifier and Type | Method and Description |
---|---|
void |
AnalysisWriter.serialize(java.lang.String text,
SentenceSegment segment,
java.util.List<Token> tokens,
edu.stanford.nlp.trees.Tree parseTree,
edu.stanford.nlp.trees.GrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies2,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs2,
java.util.List<NamedEntity> namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> relationTriples)
Serialize data
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
XMLPrinter.tokensToXMLString(java.util.List<Token> tokens,
java.lang.String tokenizer)
Make XML string from list of tokens
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
DefaultParserServer.makeTokens(edu.stanford.nlp.trees.Tree tree)
Make tokens from parse tree
|
Modifier and Type | Method and Description |
---|---|
private void |
DefaultParserServer.makeTokens(edu.stanford.nlp.trees.Tree tree,
java.util.List<Token> tokens,
java.util.Map<edu.stanford.nlp.trees.Tree,java.lang.Integer> indices)
Build token list from parse tree
|
Modifier and Type | Field and Description |
---|---|
protected Token |
Link.predicate |
(package private) Token |
PP.predicate2 |
(package private) Token |
PT.term |
(package private) Token |
TP.term |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Token> |
SPOAnalyzer.visitedNotes
To avoid visiting cycling
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<Token> |
SPOAnalyzerFromSemanticGraph.getRoots(Document document,
int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
protected abstract java.util.Collection<Token> |
SPOAnalyzer.getRoots(Document document,
int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
protected java.util.Collection<Token> |
SPOAnalyzerFromTypedDependencies.getRoots(Document document,
int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
Modifier and Type | Method and Description |
---|---|
private void |
SPOAnalyzer.analyzePredicate(int sentenceIdx,
Token predicate,
java.util.Collection<T> edges,
java.util.List<Link> links)
Analyze predicate
|
protected java.util.List<T> |
SPOAnalyzer.findAllOf(java.util.Collection<T> edges0,
java.lang.String[] acceptableIds,
Token governor)
Find all edges with acceptable id and specific governor
|
protected T |
SPOAnalyzer.findOneOf(java.util.Collection<T> edges0,
java.lang.String[] acceptableIds,
Token governor)
Find first edge with acceptable id and specific governor
|
private static GraphNode |
SPOGraphFactory.makePNode(int sentenceIdx,
Token predicate,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |
private PO |
SPOAnalyzer.makePO(int sentenceIdx,
java.util.Collection<T> edges,
Token predicate)
Make predicate-object
|
private java.util.List<PP> |
SPOAnalyzer.makePPs(int sentenceIdx,
java.util.Collection<T> edges,
Token predicate)
Make predicate-predicate (ex:clausal complement)
|
private PS |
SPOAnalyzer.makePS(int sentenceIdx,
java.util.Collection<T> edges,
Token predicate)
Make predicate-subject
|
private static GraphNode |
SPOGraphFactory.makeTNode(int sentenceIdx,
Token term,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |
private java.util.List<TP> |
SPOAnalyzer.makeTPs(int sentenceIdx,
java.util.Collection<T> edges,
Token... terms)
Make term predicate (ex:relative clause)
|
Constructor and Description |
---|
Link(int sentenceIdx,
Token predicate) |
PO(int sentenceIdx,
Token predicate,
Token object) |
PP(int sentenceIdx,
Token predicate,
Token predicate2) |
PS(int sentenceIdx,
Token predicate,
Token subject) |
PT(int sentenceIdx,
Token predicate,
Token object) |
TP(int sentenceIdx,
Token term,
Token predicate) |