![]() |
GrammarScope
4.0.0
|


Public Member Functions | |
| DocumentFactory (final Language language) | |
| boolean | init (final String text) |
| 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 |
| List< SentenceSegment > | getSentences () throws RuntimeException |
| int | getSentenceCount () throws RuntimeException |
| List< WordSegment > | getWords () 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 IStanfordServer server) |
| static void | set (final ISegmenter server) |
| static void | set (final IParser server) |
| static void | set (final IGrammaticalStructureAnalyzer server) |
| static void | set (final IDependencyParser server) |
| static void | set (final ITypedDependenciesAnalyzer server) |
| static void | set (final ISemanticGraphAnalyzer server) |
| static void | set (final IMorphology server) |
Protected Member Functions | |
| Tree | getStanfordParseTree (final int sentenceIdx) throws RuntimeException |
| GrammaticalStructure | getStanfordGrammaticalStructure (final int sentenceIdx) throws RuntimeException |
| GrammaticalStructure | getStanfordGrammaticalStructure2 (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 |
Protected Attributes | |
| final Cache< GrammaticalStructure > | grammaticalStructures2 |
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 |
Private Member Functions | |
| List< List< CoreLabel > > | getSentenceWords () |
Private Attributes | |
| List< List< CoreLabel > > | sentenceCoreLabels |
Static Private Attributes | |
| static ISegmenter | segmenter |
| static IParser | parser |
| static IGrammaticalStructureAnalyzer | grammaticalStructureAnalyzer |
| static IDependencyParser | dependencyParser |
| static ITypedDependenciesAnalyzer | typedDependencyAnalyzer |
| static ISemanticGraphAnalyzer | semanticGraphAnalyzer |
| static IMorphology | morphology |
| static final TypedDependencyProvider[] | typedDependencyProviders = TypedDependencyProvider.values() |
| static final TypedDependencyMode[] | typedDependencyModes = TypedDependencyMode.values() |
Additional Inherited Members | |
Static Public Attributes inherited from grammarscope.glue.AbstractDocumentFactory | |
| static final XMLPrinter | xMLPrinter = stanfordMode ? new XMLPrinterStanford() : new XMLPrinterGrammarScope() |
Document factory implementation as Stanford Parser client
| grammarscope.glue.parser.DocumentFactory.DocumentFactory | ( | final Language | language | ) |
Constructor
| language | language |
| Segmentation grammarscope.glue.parser.DocumentFactory.getSegmentation | ( | ) | throws RuntimeException |
Get segmentation
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
private |
Cached on-demand access
|
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 |
|
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.parser.DocumentFactory.getSupportedModes | ( | ) | throws RuntimeException |
Get supported typed dependency modes
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| TypedDependencyProvider [] grammarscope.glue.parser.DocumentFactory.getSupportedProviders | ( | ) | throws RuntimeException |
Get supported typed dependency providers
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| List<Token> grammarscope.glue.parser.DocumentFactory.getTokens | ( | final int | sentenceIdx | ) | throws RuntimeException |
Get tokens
| sentenceIdx | sentence index |
| RuntimeException | exception |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
| boolean grammarscope.glue.parser.DocumentFactory.init | ( | final String | text | ) |
Init processing
| text | input text |
Reimplemented from grammarscope.glue.AbstractDocumentFactory.
|
static |
Set grammatical structure analyzer
| server | dependency parser server |
|
static |
Set grammatical structure analyzer
| server | grammatical structure server |
|
static |
Set morphology provider
| server | morphology server |
|
static |
Set parser
| server | parser server |
|
static |
Set segmenter
| server | segmenter server |
|
static |
Set semantic graph analyzer
| server | semantic graph server |
|
static |
Set all tools
| server | server |
|
static |
Set typed dependencies analyzer
| server | typed dependencies server |
|
staticprivate |
Dependency parser
|
staticprivate |
Grammatical Structure analyzer
|
protected |
Grammatical structure cache
|
staticprivate |
Morphology analyzer
|
staticprivate |
Parser
|
staticprivate |
Segmenter
|
staticprivate |
Semantic graph analyzer
|
private |
Cached word lists (mainly for parser operation)
|
staticprivate |
Typed Dependency analyzer
|
staticprivate |
|
staticprivate |
1.8.17