GrammarScope  4.0.0
Public Member Functions | List of all members
grammarscope.server.corenlp.iface.IPipelineAnnotation Interface Reference
Inheritance diagram for grammarscope.server.corenlp.iface.IPipelineAnnotation:
Inheritance graph
[legend]

Public Member Functions

String getText ()
 
List< WordSegmentgetWordSegments ()
 
List< SentenceSegmentgetSentenceSegments ()
 
Segmentation getSegmentation ()
 
List< TokengetTokens (int sentenceIdx)
 
Tree getParseTree (int sentenceIdx)
 
GrammaticalStructure getGrammaticalStructure (int sentenceIdx)
 
Collection< TypedDependency > getTypedDependencies (int sentenceIdx, TypedDependencyMode mode)
 
Collection< TypedDependency > getTypedDependencies2 (int sentenceIdx, TypedDependencyMode mode)
 
SemanticGraph getSemanticGraph (int sentenceIdx, TypedDependencyMode mode)
 
SemanticGraph getSemanticGraph2 (int sentenceIdx, TypedDependencyMode mode)
 
Sentiment getSentiment (int sentenceIdx)
 
List< NamedEntitygetNamedEntities (int sentenceIdx)
 
List< EntailmentgetEntailments (int sentenceIdx)
 
List< TriplegetRelationTriples (int sentenceIdx)
 
Map< Integer, CorefChain > getCoreferenceChains ()
 

Detailed Description

Pipeline annotation

Author
Bernard Bou

Member Function Documentation

◆ getCoreferenceChains()

Map<Integer, CorefChain> grammarscope.server.corenlp.iface.IPipelineAnnotation.getCoreferenceChains ( )

Get text coreference chains

Returns
coreference chains

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getEntailments()

List<Entailment> grammarscope.server.corenlp.iface.IPipelineAnnotation.getEntailments ( int  sentenceIdx)

Get entailed sentences

Parameters
sentenceIdxsentence index
Returns
entailed sentences

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getGrammaticalStructure()

GrammaticalStructure grammarscope.server.corenlp.iface.IPipelineAnnotation.getGrammaticalStructure ( int  sentenceIdx)

Get sentence grammatical structure

Parameters
sentenceIdxsentence index
Returns
sentence grammatical structure

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getNamedEntities()

List<NamedEntity> grammarscope.server.corenlp.iface.IPipelineAnnotation.getNamedEntities ( int  sentenceIdx)

Get named entities

Parameters
sentenceIdxsentence index
Returns
sentence named entities

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getParseTree()

Tree grammarscope.server.corenlp.iface.IPipelineAnnotation.getParseTree ( int  sentenceIdx)

Get sentence parse tree

Parameters
sentenceIdxsentence index
Returns
sentence parse tree

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getRelationTriples()

List<Triple> grammarscope.server.corenlp.iface.IPipelineAnnotation.getRelationTriples ( int  sentenceIdx)

Get relation triples (subject-relation-object)

Parameters
sentenceIdxsentence index
Returns
relation triples

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getSegmentation()

Segmentation grammarscope.server.corenlp.iface.IPipelineAnnotation.getSegmentation ( )

Get segmentation

Returns
segmentation

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getSemanticGraph()

SemanticGraph grammarscope.server.corenlp.iface.IPipelineAnnotation.getSemanticGraph ( int  sentenceIdx,
TypedDependencyMode  mode 
)

Get semantic graph

Parameters
sentenceIdxsentence index
modetyped dependency mode
Returns
sentence semantic graph

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getSemanticGraph2()

SemanticGraph grammarscope.server.corenlp.iface.IPipelineAnnotation.getSemanticGraph2 ( int  sentenceIdx,
TypedDependencyMode  mode 
)

Get semantic graph (workflow 2)

Parameters
sentenceIdxsentence index
modetyped dependency mode
Returns
sentence semantic graph

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getSentenceSegments()

List<SentenceSegment> grammarscope.server.corenlp.iface.IPipelineAnnotation.getSentenceSegments ( )

Get sentence segments

Returns
sentence segments

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getSentiment()

Sentiment grammarscope.server.corenlp.iface.IPipelineAnnotation.getSentiment ( int  sentenceIdx)

Get named entities

Parameters
sentenceIdxsentence index
Returns
sentence sentiment

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getText()

String grammarscope.server.corenlp.iface.IPipelineAnnotation.getText ( )

Get (rebuilt) text

Returns
text

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getTokens()

List<Token> grammarscope.server.corenlp.iface.IPipelineAnnotation.getTokens ( int  sentenceIdx)

Get sentence tokens

Parameters
sentenceIdxsentence index
Returns
sentence tokens

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getTypedDependencies()

Collection<TypedDependency> grammarscope.server.corenlp.iface.IPipelineAnnotation.getTypedDependencies ( int  sentenceIdx,
TypedDependencyMode  mode 
)

Get sentence typed dependencies

Parameters
sentenceIdxsentence index
modetyped dependency mode
Returns
sentence typed dependencies

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getTypedDependencies2()

Collection<TypedDependency> grammarscope.server.corenlp.iface.IPipelineAnnotation.getTypedDependencies2 ( int  sentenceIdx,
TypedDependencyMode  mode 
)

Get sentence typed dependencies (workflow 2)

Parameters
sentenceIdxsentence index
modetyped dependency mode
Returns
sentence typed dependencies

Implemented in grammarscope.server.corenlp.PipelineAnnotation.

◆ getWordSegments()

List<WordSegment> grammarscope.server.corenlp.iface.IPipelineAnnotation.getWordSegments ( )

Get word segments

Returns
word segments

Implemented in grammarscope.server.corenlp.PipelineAnnotation.


The documentation for this interface was generated from the following file: