![]() |
GrammarScope
4.0.0
|
Public Member Functions | |
String | getText () throws RuntimeException |
List< WordSegment > | getWords () throws RuntimeException |
List< SentenceSegment > | getSentences () throws RuntimeException |
int | getSentenceCount () throws RuntimeException |
List< Token > | getTokens (int sentenceIdx) throws RuntimeException |
AParseTree | getParseTree (int sentenceIdx) throws RuntimeException |
APartsOfSpeech | getPoses (int sentenceIdx) throws RuntimeException |
AGrammaticalStructure | getGrammaticalStructure (int sentenceIdx) throws RuntimeException |
ARelationDependents | getRelationDependents (int sentenceIdx) throws RuntimeException |
ATypedDependencies | getTypedDependencies (int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws RuntimeException |
Map< TypedDependencyProvider, Map< TypedDependencyMode, ATypedDependencies > > | getTypedDependencies (int sentenceIdx) throws RuntimeException |
ASemanticGraph | getSemanticGraph (int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws RuntimeException |
Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph > > | getSemanticGraphs (int sentenceIdx) throws RuntimeException |
ANamedEntities | getNamedEntities (int sentenceIdx) throws RuntimeException |
Sentiment | getSentiment (int sentenceIdx) throws RuntimeException |
List< Entailment > | getEntailments (int sentenceIdx) throws RuntimeException |
List< Triple > | getTriples (int sentenceIdx) throws RuntimeException |
ACoreferences | getCoreferences () throws RuntimeException |
AAnalysis | getAnalysis (int sentenceIdx) throws RuntimeException |
ATextAnalysis | getTextAnalysis (TypedDependencyProvider provider, TypedDependencyMode mode) throws RuntimeException |
String | getReport (int sentenceIdx, boolean xmlFlag) throws RuntimeException |
String[] | getReports (int sentenceIdx, boolean xmlFlag) throws RuntimeException |
String | getTextReport (TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws RuntimeException |
String[] | getTextReports (TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws RuntimeException |
TypedDependencyProvider[] | getSupportedProviders () |
TypedDependencyMode[] | getSupportedModes () |
Server-side interface used when document is being built. Used in server to client communication
AAnalysis grammarscope.iface.IDocumentFactoryService.getAnalysis | ( | int | sentenceIdx | ) | throws RuntimeException |
Get (sentence) analysis artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ACoreferences grammarscope.iface.IDocumentFactoryService.getCoreferences | ( | ) | throws RuntimeException |
Get coreferences artifact
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
List<Entailment> grammarscope.iface.IDocumentFactoryService.getEntailments | ( | int | sentenceIdx | ) | throws RuntimeException |
Get entailments
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
AGrammaticalStructure grammarscope.iface.IDocumentFactoryService.getGrammaticalStructure | ( | int | sentenceIdx | ) | throws RuntimeException |
Get grammatical structure artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ANamedEntities grammarscope.iface.IDocumentFactoryService.getNamedEntities | ( | int | sentenceIdx | ) | throws RuntimeException |
Get named entities artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
AParseTree grammarscope.iface.IDocumentFactoryService.getParseTree | ( | int | sentenceIdx | ) | throws RuntimeException |
Get parse artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
APartsOfSpeech grammarscope.iface.IDocumentFactoryService.getPoses | ( | int | sentenceIdx | ) | throws RuntimeException |
Get parts-of-speech artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ARelationDependents grammarscope.iface.IDocumentFactoryService.getRelationDependents | ( | int | sentenceIdx | ) | throws RuntimeException |
Get relation dependents artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
String grammarscope.iface.IDocumentFactoryService.getReport | ( | int | sentenceIdx, |
boolean | xmlFlag | ||
) | throws RuntimeException |
Get (sentence) analysis string
sentenceIdx | sentence index |
xmlFlag | XML format requested |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
String [] grammarscope.iface.IDocumentFactoryService.getReports | ( | int | sentenceIdx, |
boolean | xmlFlag | ||
) | throws RuntimeException |
Get (sentence) analysis strings
sentenceIdx | sentence index |
xmlFlag | XML format requested |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ASemanticGraph grammarscope.iface.IDocumentFactoryService.getSemanticGraph | ( | int | sentenceIdx, |
TypedDependencyProvider | provider, | ||
TypedDependencyMode | mode | ||
) | throws RuntimeException |
Get semantic graph artifact
sentenceIdx | sentence index |
provider | typed dependency provider |
mode | typed dependency mode |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
Map<TypedDependencyProvider, Map<TypedDependencyMode, ASemanticGraph> > grammarscope.iface.IDocumentFactoryService.getSemanticGraphs | ( | int | sentenceIdx | ) | throws RuntimeException |
Get semantic graph artifacts
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
int grammarscope.iface.IDocumentFactoryService.getSentenceCount | ( | ) | throws RuntimeException |
Get sentence count
Implemented in grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
List<SentenceSegment> grammarscope.iface.IDocumentFactoryService.getSentences | ( | ) | throws RuntimeException |
Get sentences
Implemented in grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.glue.corenlp.DocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
Sentiment grammarscope.iface.IDocumentFactoryService.getSentiment | ( | int | sentenceIdx | ) | throws RuntimeException |
Get sentiment
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
TypedDependencyMode [] grammarscope.iface.IDocumentFactoryService.getSupportedModes | ( | ) |
Get supported typed dependency modes
Implemented in grammarscope.document.Document, grammarscope.io.xml.XMLDocumentFactory, grammarscope.glue.parser.DocumentFactory, grammarscope.glue.AbstractDocumentFactory, grammarscope.glue.corenlp.DocumentFactory, grammarscope.server.NullDocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.ejb.client.corenlp.DocumentFactoryAsync, grammarscope.artifacts.ejb.client.corenlp.DocumentFactorySync, grammarscope.artifacts.ejb.client.parser.DocumentFactoryAsync, grammarscope.artifacts.ejb.client.parser.DocumentFactorySync, grammarscope.artifacts.ejb.client.corenlp.DocumentFactorySync, grammarscope.artifacts.ejb.client.parser.DocumentFactoryAsync, and grammarscope.artifacts.ejb.client.parser.DocumentFactorySync.
TypedDependencyProvider [] grammarscope.iface.IDocumentFactoryService.getSupportedProviders | ( | ) |
Get supported typed dependency providers
Implemented in grammarscope.document.Document, grammarscope.io.xml.XMLDocumentFactory, grammarscope.glue.parser.DocumentFactory, grammarscope.glue.AbstractDocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.glue.corenlp.DocumentFactory, grammarscope.server.NullDocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, and grammarscope.artifacts.AbstractDocumentFactory.
String grammarscope.iface.IDocumentFactoryService.getText | ( | ) | throws RuntimeException |
Get text
Implemented in grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ATextAnalysis grammarscope.iface.IDocumentFactoryService.getTextAnalysis | ( | TypedDependencyProvider | provider, |
TypedDependencyMode | mode | ||
) | throws RuntimeException |
Get text analysis
provider | provider |
mode | mode |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
String grammarscope.iface.IDocumentFactoryService.getTextReport | ( | TypedDependencyProvider | provider, |
TypedDependencyMode | mode, | ||
boolean | xmlFlag | ||
) | throws RuntimeException |
Get (text) analysis string
provider | provider |
mode | mode |
xmlFlag | XML format requested |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
String [] grammarscope.iface.IDocumentFactoryService.getTextReports | ( | TypedDependencyProvider | provider, |
TypedDependencyMode | mode, | ||
boolean | xmlFlag | ||
) | throws RuntimeException |
Get (text) analysis strings
provider | provider |
mode | mode |
xmlFlag | XML format requested |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
List<Token> grammarscope.iface.IDocumentFactoryService.getTokens | ( | int | sentenceIdx | ) | throws RuntimeException |
Get tokens
sentenceIdx | sentence index |
RuntimeException | runtime exception |
Implemented in grammarscope.document.Document, grammarscope.glue.parser.DocumentFactory, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.glue.corenlp.DocumentFactory, grammarscope.io.xml.XMLDocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.ejb.client.parser.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, grammarscope.ejb.client.corenlp.DocumentFactory, and grammarscope.server.NullDocumentFactory.
List<Triple> grammarscope.iface.IDocumentFactoryService.getTriples | ( | int | sentenceIdx | ) | throws RuntimeException |
Get triples
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
Map<TypedDependencyProvider, Map<TypedDependencyMode, ATypedDependencies> > grammarscope.iface.IDocumentFactoryService.getTypedDependencies | ( | int | sentenceIdx | ) | throws RuntimeException |
Get typed dependencies artifact
sentenceIdx | sentence index |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
ATypedDependencies grammarscope.iface.IDocumentFactoryService.getTypedDependencies | ( | int | sentenceIdx, |
TypedDependencyProvider | provider, | ||
TypedDependencyMode | mode | ||
) | throws RuntimeException |
Get typed dependencies artifact
sentenceIdx | sentence index |
provider | typed dependency provider |
mode | typed dependency mode |
Implemented in grammarscope.document.Document, grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.
List<WordSegment> grammarscope.iface.IDocumentFactoryService.getWords | ( | ) | throws RuntimeException |
Get words
Implemented in grammarscope.glue.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.artifacts.AbstractDocumentFactory, grammarscope.glue.corenlp.DocumentFactory, grammarscope.io.xml.XMLDocumentFactory, and grammarscope.server.NullDocumentFactory.