|
static String | buildDocument (final String text, final String coreferences, final String[] reports) |
|
static String | buildDocument (final String... reports) |
|
static 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) |
|
static String | tokensToString (final List< Token > tokens) |
|
static String | tokensToString (final Map< Integer, Token > tokens) |
|
static String | parseTreeToString (final AParseTree parseTree) |
|
static String | parseTreeToString (final AParseTree parseTree, final long format) |
|
static String | grammaticalStructureToString (final AGrammaticalStructure grammaticalStructure) |
|
static String | grammaticalStructureToString (final AGrammaticalStructure grammaticalStructure, final long format) |
|
static String | typedDependenciesToString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ATypedDependencies >> typedDependencies) |
|
static String | semanticGraphsToTypedDependenciesString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> semanticGraphs) |
|
static String | typedDependenciesToString (final ATypedDependencies typedDependencies) |
|
static String | semanticGraphsToString (final Map< TypedDependencyProvider, Map< TypedDependencyMode, ASemanticGraph >> semanticGraphs) |
|
static String | semanticGraphToString (final ASemanticGraph semanticGraph) |
|
static String | namedEntitiesToString (final ANamedEntities namedEntities) |
|
static String | sentimentToString (final Sentiment sentiment) |
|
static String | entailmentsToString (final List< Entailment > entailments) |
|
static String | triplesToString (final List< Triple > triples) |
|
static String | coreferencesToString (final ACoreferences coreferences) |
|
◆ Printer()
grammarscope.io.print.Printer.Printer |
( |
| ) |
|
|
private |
◆ buildDocument() [1/2]
static String grammarscope.io.print.Printer.buildDocument |
( |
final String |
text, |
|
|
final String |
coreferences, |
|
|
final String[] |
reports |
|
) |
| |
|
static |
Assemble text report
- Parameters
-
text | text |
coreferences | coreferences |
reports | sentence reports |
- Returns
- assemble report
◆ buildDocument() [2/2]
static String grammarscope.io.print.Printer.buildDocument |
( |
final String... |
reports | ) |
|
|
static |
Build document XML string
- Parameters
-
- Returns
- XML string
◆ buildSentence()
static String grammarscope.io.print.Printer.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 |
|
) |
| |
|
static |
Assemble sentence report
- Parameters
-
sentenceId | sentence id |
sentenceSegment | sentence segment |
sentenceText | sentence text |
tokensString | tokens string |
parseTreeString | parse tree string |
grammaticalStructureString | grammatical structure string |
typedDependenciesString | typed dependencies string |
semanticGraphsString | semantic graph string |
namedEntitiesString | named entities string |
sentimentString | sentiment string |
entailmentsString | entailments string |
triplesString | triples string |
- Returns
- string
◆ coreferencesToString()
static String grammarscope.io.print.Printer.coreferencesToString |
( |
final ACoreferences |
coreferences | ) |
|
|
static |
Coreferences to string
- Parameters
-
- Returns
- coreferences string
◆ entailmentsToString()
static String grammarscope.io.print.Printer.entailmentsToString |
( |
final List< Entailment > |
entailments | ) |
|
|
static |
Entailments to string
- Parameters
-
- Returns
- entailments string
◆ grammaticalStructureToString() [1/2]
static String grammarscope.io.print.Printer.grammaticalStructureToString |
( |
final AGrammaticalStructure |
grammaticalStructure | ) |
|
|
static |
Grammatical structure to string
- Parameters
-
grammaticalStructure | grammatical structure |
- Returns
- grammatical structure string
◆ grammaticalStructureToString() [2/2]
static String grammarscope.io.print.Printer.grammaticalStructureToString |
( |
final AGrammaticalStructure |
grammaticalStructure, |
|
|
final long |
format |
|
) |
| |
|
static |
String for grammatical structure
- Parameters
-
grammaticalStructure | grammatical structure |
format | format |
- Returns
- grammatical structure string
◆ namedEntitiesToString()
static String grammarscope.io.print.Printer.namedEntitiesToString |
( |
final ANamedEntities |
namedEntities | ) |
|
|
static |
Named entities to string
- Parameters
-
namedEntities | named entities |
- Returns
- named entities string
◆ parseTreeToString() [1/2]
static String grammarscope.io.print.Printer.parseTreeToString |
( |
final AParseTree |
parseTree | ) |
|
|
static |
Parse tree to string
- Parameters
-
- Returns
- parse tree string
◆ parseTreeToString() [2/2]
static String grammarscope.io.print.Printer.parseTreeToString |
( |
final AParseTree |
parseTree, |
|
|
final long |
format |
|
) |
| |
|
static |
Parse tree to string
- Parameters
-
parseTree | parse tree |
format | format |
- Returns
- parse tree string
◆ semanticGraphsToString()
Semantic graphs to string
- Parameters
-
semanticGraphs | semantic graphs |
- Returns
- semantic graphs string
◆ semanticGraphsToTypedDependenciesString()
Semantic graphs to typed dependencies string
- Parameters
-
semanticGraphs | semantic graphs |
- Returns
- typed dependencies string
◆ semanticGraphToString()
static String grammarscope.io.print.Printer.semanticGraphToString |
( |
final ASemanticGraph |
semanticGraph | ) |
|
|
static |
Semantic graph to string
- Parameters
-
semanticGraph | semantic graph |
- Returns
- semantic graph string
◆ sentimentToString()
static String grammarscope.io.print.Printer.sentimentToString |
( |
final Sentiment |
sentiment | ) |
|
|
static |
Sentiment to string
- Parameters
-
- Returns
- sentiment string
◆ tokensToString() [1/2]
static String grammarscope.io.print.Printer.tokensToString |
( |
final List< Token > |
tokens | ) |
|
|
static |
Make XML string from list of tokens
- Parameters
-
- Returns
- XML string
◆ tokensToString() [2/2]
static String grammarscope.io.print.Printer.tokensToString |
( |
final Map< Integer, Token > |
tokens | ) |
|
|
static |
Make XML string from list of tokens
- Parameters
-
- Returns
- XML string
◆ triplesToString()
static String grammarscope.io.print.Printer.triplesToString |
( |
final List< Triple > |
triples | ) |
|
|
static |
Triples to string
- Parameters
-
- Returns
- triples string
◆ typedDependenciesToString() [1/2]
static String grammarscope.io.print.Printer.typedDependenciesToString |
( |
final ATypedDependencies |
typedDependencies | ) |
|
|
static |
Typed dependencies to string
- Parameters
-
typedDependencies | typed dependencies |
- Returns
- typed dependencies string
◆ typedDependenciesToString() [2/2]
Typed dependencies to string
- Parameters
-
typedDependencies | typed dependencies |
- Returns
- typed dependencies string
◆ lineSeparator
final String grammarscope.io.print.Printer.lineSeparator = new String(new char[80]).replace('\0', '-') |
|
staticprivate |
◆ sentenceFormat
final String grammarscope.io.print.Printer.sentenceFormat |
|
staticprivate |
Initial value:=
"[sentence]\nnumber: %d\n"
+ "segment: %s\n"
◆ sentenceLineSeparator
final String grammarscope.io.print.Printer.sentenceLineSeparator = new String(new char[80]).replace('\0', '*') |
|
staticprivate |
The documentation for this class was generated from the following file:
- grammarscope/library-glue/src/main/java/grammarscope/io/print/Printer.java