public class PipelineAnnotation extends java.lang.Object implements IPipelineAnnotation
Modifier and Type | Field and Description |
---|---|
(package private) TextBreadthAnalysis |
analysis
Analysis derived from annotation
|
private edu.stanford.nlp.pipeline.Annotation |
annotation
Annotation (annotated text)
|
Constructor and Description |
---|
PipelineAnnotation(Pipeline pipeline,
java.lang.String text)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,edu.stanford.nlp.coref.data.CorefChain> |
getCoreferenceChains()
Get text coreference chains
|
java.util.List<Entailment> |
getEntailments(int sentenceIdx)
Get entailed sentences
|
edu.stanford.nlp.trees.GrammaticalStructure |
getGrammaticalStructure(int sentenceIdx)
Get sentence grammatical structure
|
java.util.List<NamedEntity> |
getNamedEntities(int sentenceIdx)
Get named entities
|
edu.stanford.nlp.trees.Tree |
getParseTree(int sentenceIdx)
Get sentence parse tree
|
java.util.List<Triple> |
getRelationTriples(int sentenceIdx)
Get relation triples (subject-relation-object)
|
Segmentation |
getSegmentation()
Get segmentation
|
edu.stanford.nlp.semgraph.SemanticGraph |
getSemanticGraph(int sentenceIdx,
TypedDependencyMode mode)
Get semantic graph
|
edu.stanford.nlp.semgraph.SemanticGraph |
getSemanticGraph2(int sentenceIdx,
TypedDependencyMode mode)
Get semantic graph (workflow 2)
|
java.util.List<SentenceSegment> |
getSentenceSegments()
Get sentence segments
|
Sentiment |
getSentiment(int sentenceIdx)
Get named entities
|
java.lang.String |
getText()
Get (rebuilt) text
|
java.util.List<Token> |
getTokens(int sentenceIdx)
Get sentence tokens
|
java.util.Collection<edu.stanford.nlp.trees.TypedDependency> |
getTypedDependencies(int sentenceIdx,
TypedDependencyMode mode)
Get sentence typed dependencies
|
java.util.Collection<edu.stanford.nlp.trees.TypedDependency> |
getTypedDependencies2(int sentenceIdx,
TypedDependencyMode mode)
Get sentence typed dependencies (workflow 2)
|
java.util.List<WordSegment> |
getWordSegments()
Get word segments
|
private final edu.stanford.nlp.pipeline.Annotation annotation
final TextBreadthAnalysis analysis
public PipelineAnnotation(Pipeline pipeline, java.lang.String text)
pipeline
- pipelinetext
- textpublic java.lang.String getText()
IPipelineAnnotation
getText
in interface IPipelineAnnotation
public java.util.List<SentenceSegment> getSentenceSegments()
IPipelineAnnotation
getSentenceSegments
in interface IPipelineAnnotation
public java.util.List<WordSegment> getWordSegments()
IPipelineAnnotation
getWordSegments
in interface IPipelineAnnotation
public Segmentation getSegmentation()
IPipelineAnnotation
getSegmentation
in interface IPipelineAnnotation
public edu.stanford.nlp.trees.Tree getParseTree(int sentenceIdx)
IPipelineAnnotation
getParseTree
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic java.util.List<Token> getTokens(int sentenceIdx)
IPipelineAnnotation
getTokens
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic edu.stanford.nlp.trees.GrammaticalStructure getGrammaticalStructure(int sentenceIdx)
IPipelineAnnotation
getGrammaticalStructure
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic java.util.Collection<edu.stanford.nlp.trees.TypedDependency> getTypedDependencies(int sentenceIdx, TypedDependencyMode mode)
IPipelineAnnotation
getTypedDependencies
in interface IPipelineAnnotation
sentenceIdx
- sentence indexmode
- typed dependency modepublic java.util.Collection<edu.stanford.nlp.trees.TypedDependency> getTypedDependencies2(int sentenceIdx, TypedDependencyMode mode)
IPipelineAnnotation
getTypedDependencies2
in interface IPipelineAnnotation
sentenceIdx
- sentence indexmode
- typed dependency modepublic edu.stanford.nlp.semgraph.SemanticGraph getSemanticGraph(int sentenceIdx, TypedDependencyMode mode)
IPipelineAnnotation
getSemanticGraph
in interface IPipelineAnnotation
sentenceIdx
- sentence indexmode
- typed dependency modepublic edu.stanford.nlp.semgraph.SemanticGraph getSemanticGraph2(int sentenceIdx, TypedDependencyMode mode)
IPipelineAnnotation
getSemanticGraph2
in interface IPipelineAnnotation
sentenceIdx
- sentence indexmode
- typed dependency modepublic java.util.List<NamedEntity> getNamedEntities(int sentenceIdx)
IPipelineAnnotation
getNamedEntities
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic Sentiment getSentiment(int sentenceIdx)
IPipelineAnnotation
getSentiment
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic java.util.List<Entailment> getEntailments(int sentenceIdx)
IPipelineAnnotation
getEntailments
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic java.util.List<Triple> getRelationTriples(int sentenceIdx)
IPipelineAnnotation
getRelationTriples
in interface IPipelineAnnotation
sentenceIdx
- sentence indexpublic java.util.Map<java.lang.Integer,edu.stanford.nlp.coref.data.CorefChain> getCoreferenceChains()
IPipelineAnnotation
getCoreferenceChains
in interface IPipelineAnnotation