![]() |
GrammarScope
4.0.0
|


Public Member Functions | |
| String | buildDocument (final String text, final String coreferences, final String... sentenceReports) |
| String | buildDocument (final String... reports) |
| String | buildSentence (final int sentenceId, final Segment sentenceSegment, final String sentenceText, final String tokensString, final String parseTreeString, final String grammaticalStructureString, final String typedDependenciesString, final String semanticGraphsString, final String namedEntitiesString, final String sentimentString, final String entailmentsString, final String triplesString) |
| String | tokensToXMLString (final Map< Integer, Token > tokens) |
| String | tokensToXMLString (final List< Token > tokens) |
| String | parseTreeToXMLString (final AParseTree parseTree) |
| String | grammaticalStructureToXMLString (final AGrammaticalStructure grammaticalStructure) |
| String | typedDependenciesToXMLString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ATypedDependencies >> typedDependencies) |
| String | semanticGraphsToTypedDependenciesXMLString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> semanticGraphs) |
| String | typedDependenciesToXMLString (final ATypedDependencies typedDependencies) |
| String | semanticGraphsToXMLString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> semanticGraphs) |
| String | semanticGraphToXMLString (final ASemanticGraph semanticGraph) |
| String | namedEntitiesToXMLString (final ANamedEntities namedEntities) |
| String | sentimentToXMLString (final Sentiment sentiment) |
| String | entailmentsToXMLString (final List< Entailment > entailments) |
| String | triplesToXMLString (final List< Triple > triples) |
| String | coreferencesToXMLString (final ACoreferences coreferences) |
| String | analysisToXMLString (final AAnalysis analysis, final int sentenceIndex) |
| String | textAnalysisToXMLString (final ATextAnalysis textAnalysis) |
Static Public Member Functions | |
| static String | indent (final String str, final int nTabs) |
| static String | trimAnnotationKey (final String str) |
Static Package Attributes | |
| static final Comparator< TypedDependency > | typedDependencyComparator |
| static final Comparator< Entry< BasicRelation, AGrammaticalStructure > > | depsByIndexComparator |
| static final Comparator< Entry< BasicRelation, AGrammaticalStructure > > | govsByIndexComparator = depsByIndexComparator |
Private Member Functions | |
| void | walkTree (final AParseTree tree, final StringBuffer sb, final String indent) |
| void | walkGrammaticalStructure (final AGrammaticalStructure node, final StringBuffer sb, final String indent) |
Static Private Member Functions | |
| static String | normalize (final String id) |
Static Private Attributes | |
| static final boolean | stanfordMode = false |
XML printer (Artifact structures)
| String grammarscope.io.xml.XMLPrinter.analysisToXMLString | ( | final AAnalysis | analysis, |
| final int | sentenceIndex | ||
| ) |
Sentence analysis to XML string
| analysis | analysis |
| sentenceIndex | sentence index |
| String grammarscope.io.xml.XMLPrinter.buildDocument | ( | final String | text, |
| final String | coreferences, | ||
| final String... | sentenceReports | ||
| ) |
Build document XML string
| text | text |
| coreferences | coreferences |
| sentenceReports | XML strings for sentences |
| String grammarscope.io.xml.XMLPrinter.buildDocument | ( | final String... | reports | ) |
Build document XML string
| reports | reports |
| String grammarscope.io.xml.XMLPrinter.buildSentence | ( | final int | sentenceId, |
| final Segment | sentenceSegment, | ||
| final String | sentenceText, | ||
| final String | tokensString, | ||
| final String | parseTreeString, | ||
| final String | grammaticalStructureString, | ||
| final String | typedDependenciesString, | ||
| final String | semanticGraphsString, | ||
| final String | namedEntitiesString, | ||
| final String | sentimentString, | ||
| final String | entailmentsString, | ||
| final String | triplesString | ||
| ) |
Assemble sentence to XML format
| sentenceId | sentence id |
| sentenceSegment | sentence segment |
| sentenceText | sentence text |
| tokensString | tokens |
| parseTreeString | parse tree |
| grammaticalStructureString | grammatical structure |
| typedDependenciesString | typed dependencies |
| semanticGraphsString | semantic graph |
| namedEntitiesString | string for named entities |
| sentimentString | string for sentiment |
| entailmentsString | entailments string |
| triplesString | triples string |
| String grammarscope.io.xml.XMLPrinter.coreferencesToXMLString | ( | final ACoreferences | coreferences | ) |
Make XML string from coreferences
| coreferences | coreferences |
| String grammarscope.io.xml.XMLPrinter.entailmentsToXMLString | ( | final List< Entailment > | entailments | ) |
Entailments to string
| entailments | entailments |
| String grammarscope.io.xml.XMLPrinter.grammaticalStructureToXMLString | ( | final AGrammaticalStructure | grammaticalStructure | ) |
Make XML string from grammatical structure
| grammaticalStructure | grammatical structure |
|
static |
Indent string
| str | input string |
| nTabs | number of tabs to indent |
| String grammarscope.io.xml.XMLPrinter.namedEntitiesToXMLString | ( | final ANamedEntities | namedEntities | ) |
Named entities to XML string
| namedEntities | named entities |
|
staticprivate |
String surrounding brackets
| id | id |
| String grammarscope.io.xml.XMLPrinter.parseTreeToXMLString | ( | final AParseTree | parseTree | ) |
Make XML string from parse tree
| parseTree | parse tree |
| String grammarscope.io.xml.XMLPrinter.semanticGraphsToTypedDependenciesXMLString | ( | final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> | semanticGraphs | ) |
Make XML string from typed dependencies
| semanticGraphs | semantic graphs |
| String grammarscope.io.xml.XMLPrinter.semanticGraphsToXMLString | ( | final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> | semanticGraphs | ) |
Make XML string from semantic graphs
| semanticGraphs | semantic graphs |
| String grammarscope.io.xml.XMLPrinter.semanticGraphToXMLString | ( | final ASemanticGraph | semanticGraph | ) |
Make XML string from semantic graph
| semanticGraph | semantic graph |
| String grammarscope.io.xml.XMLPrinter.sentimentToXMLString | ( | final Sentiment | sentiment | ) |
Sentiment to string
| sentiment | sentiment |
| String grammarscope.io.xml.XMLPrinter.textAnalysisToXMLString | ( | final ATextAnalysis | textAnalysis | ) |
Text analysis to string
| textAnalysis | text analysis |
| String grammarscope.io.xml.XMLPrinter.tokensToXMLString | ( | final List< Token > | tokens | ) |
Make XML string from list of tokens
| tokens | tokens |
| String grammarscope.io.xml.XMLPrinter.tokensToXMLString | ( | final Map< Integer, Token > | tokens | ) |
Make XML string from list of tokens
| tokens | tokens |
|
static |
Trim string removing glut
| str | string to trim |
| String grammarscope.io.xml.XMLPrinter.triplesToXMLString | ( | final List< Triple > | triples | ) |
Triples to string
| triples | triples |
| String grammarscope.io.xml.XMLPrinter.typedDependenciesToXMLString | ( | final ATypedDependencies | typedDependencies | ) |
Make XML string from typed dependencies
| typedDependencies | typed dependencies |
| String grammarscope.io.xml.XMLPrinter.typedDependenciesToXMLString | ( | final Map< TypedDependencyProvider, Map< TypedDependencyMode, ATypedDependencies >> | typedDependencies | ) |
Make XML string from typed dependencies
| typedDependencies | typed dependencies |
|
private |
Walk tree graph node
| node | node |
| sb | string sb |
| indent | current indent |
|
private |
Walk tree graph node
| tree | tree node |
| sb | string sb |
| indent | current indent |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticpackage |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticpackage |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprivate |
Whether output mimics Stanford output
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticpackage |
|
protected |
Document skeleton format
|
protected |
Sentence skeleton format
1.8.17