![]() |
GrammarScope
4.0.0
|


Public Member Functions | |
| DocumentFactory (final Language language) | |
| boolean | init (final String text) |
| List< WordSegment > | getWords () throws RuntimeException |
| List< SentenceSegment > | getSentences () throws RuntimeException |
| Segmentation | getSegmentation () throws RuntimeException |
| List< Token > | getTokens (final int sentenceIdx) throws RuntimeException |
| TypedDependencyProvider[] | getSupportedProviders () throws RuntimeException |
| TypedDependencyMode[] | getSupportedModes () throws RuntimeException |
Public Member Functions inherited from grammarscope.glue.AbstractDocumentFactory | |
| AbstractDocumentFactory (final Language language) | |
| String | getText () throws RuntimeException |
| int | getSentenceCount () throws RuntimeException |
| AParseTree | getParseTree (final int sentenceIdx) throws RuntimeException |
| APartsOfSpeech | getPoses (final int sentenceIdx) throws RuntimeException |
| AGrammaticalStructure | getGrammaticalStructure (final int sentenceIdx) throws RuntimeException |
| ARelationDependents | getRelationDependents (final int sentenceIdx) throws RuntimeException |
| ATypedDependencies | getTypedDependencies (final int sentenceIdx, final TypedDependencyProvider provider, final TypedDependencyMode mode) throws RuntimeException |
| Map< TypedDependencyProvider, Map< TypedDependencyMode, ATypedDependencies > > | getTypedDependencies (final int sentenceIdx) throws RuntimeException |
| ASemanticGraph | getSemanticGraph (final int sentenceIdx, final TypedDependencyProvider provider, final TypedDependencyMode mode) throws RuntimeException |
| Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph > > | getSemanticGraphs (final int sentenceIdx) throws RuntimeException |
| ANamedEntities | getNamedEntities (final int sentenceIdx) throws RuntimeException |
| Sentiment | getSentiment (final int sentenceIdx) throws RuntimeException |
| List< Entailment > | getEntailments (final int sentenceIdx) |
| List< Triple > | getTriples (final int sentenceIdx) |
| ACoreferences | getCoreferences () throws RuntimeException |
| ATextAnalysis | getTextAnalysis (final TypedDependencyProvider provider, final TypedDependencyMode mode) throws RuntimeException |
| AAnalysis | getAnalysis (final int sentenceIdx) throws RuntimeException |
| String[] | getReports (final int sentenceIdx, final boolean xMLFlag) throws RuntimeException |
| String | getReport (final int sentenceIdx, final boolean xMLFlag) throws RuntimeException |
| String | getTextReport (final TypedDependencyProvider provider, final TypedDependencyMode mode, final boolean xMLModeFlag) throws RuntimeException |
| String[] | getTextReports (final TypedDependencyProvider provider, final TypedDependencyMode mode, final boolean xMLModeFlag) throws RuntimeException |
Static Public Member Functions | |
| static void | set (final Pipeline pipeline) |
Protected Member Functions | |
| Tree | getStanfordParseTree (final int sentenceIdx) throws RuntimeException |
| GrammaticalStructure | getStanfordGrammaticalStructure (final int sentenceIdx) throws RuntimeException |
| Collection< TypedDependency > | getStanfordTypedDependencies (final int sentenceIdx, final TypedDependencyMode mode) throws RuntimeException |
| Collection< TypedDependency > | getStanfordTypedDependencies2 (final int sentenceIdx, final TypedDependencyMode mode) throws RuntimeException |
| SemanticGraph | getStanfordSemanticGraph (final int sentenceIdx, final TypedDependencyMode mode) throws RuntimeException |
| SemanticGraph | getStanfordSemanticGraph2 (final int sentenceIdx, final TypedDependencyMode mode) throws RuntimeException |
| List< NamedEntity > | getStanfordNamedEntities (final int sentenceIdx) throws RuntimeException |
| Sentiment | getStanfordSentiment (final int sentenceIdx) throws RuntimeException |
| List< Entailment > | getStanfordEntailments (final int sentenceIdx) throws RuntimeException |
| List< Triple > | getStanfordTriples (final int sentenceIdx) throws RuntimeException |
| Coreferences | getStanfordCoreferences () throws RuntimeException |
Private Attributes | |
| IPipelineAnnotation | annotation |
Static Private Attributes | |
| static Pipeline | pipeline |
Additional Inherited Members | |
Static Public Attributes inherited from grammarscope.glue.AbstractDocumentFactory | |
| static final XMLPrinter | xMLPrinter = stanfordMode ? new XMLPrinterStanford() : new XMLPrinterGrammarScope() |
Protected Attributes inherited from grammarscope.glue.AbstractDocumentFactory | |
| final Language | language |
| String | text |
| final RelationDependentsDirectFactory | relationDependentsDirectFactory |
| final Cache< List< Token > > | tokens |
| final Cache< Tree > | parseTrees |
| final Cache< GrammaticalStructure > | grammaticalStructures |
| final Map< TypedDependencyMode, Cache< Collection< TypedDependency > > > | typedDependencies |
| final Map< TypedDependencyMode, Cache< Collection< TypedDependency > > > | typedDependencies2 |
Document factory implementation as Stanford CoreNLP client
| grammarscope.glue.corenlp.DocumentFactory.DocumentFactory | ( | final Language | language | ) |
Constructor
| language | language |
| Segmentation grammarscope.glue.corenlp.DocumentFactory.getSegmentation | ( | ) | throws RuntimeException |
Get segmentation
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| List<SentenceSegment> grammarscope.glue.corenlp.DocumentFactory.getSentences | ( | ) | throws RuntimeException |
Get sentences
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get coreferences
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get entailments
| sentenceIdx | sentence index |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get grammatical structure
| sentenceIdx | sentence |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get named entities
| sentenceIdx | sentence index |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get parse tree
| sentenceIdx | sentence index |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get semantic graph
| sentenceIdx | sentence |
| mode | typed dependency mode |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get semantic graph (workflow 2)
| sentenceIdx | sentence |
| mode | typed dependency mode |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get sentiment
| sentenceIdx | sentence index |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get triples
| sentenceIdx | sentence index |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get typed dependencies
| sentenceIdx | sentence |
| mode | typed dependency mode |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
protected |
Get typed dependencies (workflow 2)
| sentenceIdx | sentence |
| mode | typed dependency mode |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| TypedDependencyMode [] grammarscope.glue.corenlp.DocumentFactory.getSupportedModes | ( | ) | throws RuntimeException |
Get supported typed dependency modes
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| TypedDependencyProvider [] grammarscope.glue.corenlp.DocumentFactory.getSupportedProviders | ( | ) | throws RuntimeException |
Get supported typed dependency providers
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| List<Token> grammarscope.glue.corenlp.DocumentFactory.getTokens | ( | final int | sentenceIdx | ) | throws RuntimeException |
Get tokens
| sentenceIdx | sentence index |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| List<WordSegment> grammarscope.glue.corenlp.DocumentFactory.getWords | ( | ) | throws RuntimeException |
Get words
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| boolean grammarscope.glue.corenlp.DocumentFactory.init | ( | final String | text | ) |
Init processing
| text | input text |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
static |
Set pipeline to use
| pipeline | pipeline |
|
private |
Annotation (of text)
|
staticprivate |
Stanford pipeline
1.8.17