public final class AnalysisPrinter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static XMLPrinter |
xMLPrinter
XML printer
|
| Modifier | Constructor and Description |
|---|---|
private |
AnalysisPrinter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildDocument(java.lang.String[] reports,
boolean xMLFlag)
Build text report
|
static java.lang.String |
coreferencesToString(ACoreferences coreferences,
boolean xMLFlag)
Coreferences to string
|
private static java.lang.String |
entailmentsToString(java.util.List<Entailment> entailments,
boolean isXml)
Entailments to string
|
static java.lang.String |
getReport(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.Map<java.lang.Integer,Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
Report
|
static java.lang.String[] |
getReports(AAnalysis analysis,
boolean xMLFlag)
Get reports
|
static java.lang.String[] |
getReports(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.List<Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
Split reports
|
static java.lang.String |
grammaticalStructureToString(AGrammaticalStructure grammaticalStructure,
boolean xMLFlag)
Grammatical structure
|
private static java.lang.String |
namedEntitiesToString(ANamedEntities namedEntities,
boolean xMLFlag)
Named entities to string
|
static java.lang.String |
parseTreeToString(AParseTree parseTree,
boolean xMLFlag)
Parse tree to string
|
static java.lang.String |
semanticGraphsToString(java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraphs,
boolean xMLFlag)
Semantic graphs to string
|
private static java.lang.String |
sentimentToString(Sentiment sentiment,
boolean xMLFlag)
Named entities to string
|
static java.lang.String |
tokensToString(java.util.List<Token> tokens,
boolean xMLFlag)
Tokens to string
|
static java.lang.String |
tokensToString(java.util.Map<java.lang.Integer,Token> tokens,
boolean xMLFlag)
Tokens to string
|
private static java.lang.String |
triplesToString(java.util.List<Triple> triples,
boolean isXml)
Triples to string
|
static java.lang.String |
typedDependenciesToString(java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
boolean xMLFlag)
Typed dependencies to string
|
private static final XMLPrinter xMLPrinter
public static java.lang.String buildDocument(java.lang.String[] reports,
boolean xMLFlag)
reports - reportsxMLFlag - XML formatpublic static java.lang.String getReport(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.Map<java.lang.Integer,Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
throws java.lang.RuntimeException
sentenceIdx - sentence indextext - textsentenceSegment - sentence segmenttokens - tokensparseTree - parse treegrammaticalStructure - grammatical structuretypedDependencies - typed dependenciessemanticGraph - semantic graphnamedEntities - named entitiessentiment - sentimententailments - entailmentstriples - triplesxMLFlag - report inXML formatjava.lang.RuntimeException - exceptionpublic static java.lang.String[] getReports(int sentenceIdx,
java.lang.String text,
SentenceSegment sentenceSegment,
java.util.List<Token> tokens,
AParseTree parseTree,
AGrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies,
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraph,
ANamedEntities namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> triples,
boolean xMLFlag)
throws java.lang.RuntimeException
sentenceIdx - sentence indextext - textsentenceSegment - sentence segmenttokens - tokenparseTree - parse treegrammaticalStructure - grammatical structuretypedDependencies - typed dependenciessemanticGraph - semantic graphnamedEntities - named entitiessentiment - sentimententailments - entailmentstriples - triplesxMLFlag - report inXML formatjava.lang.RuntimeException - exceptionpublic static java.lang.String[] getReports(AAnalysis analysis, boolean xMLFlag)
analysis - analysisxMLFlag - XML output formatpublic static java.lang.String tokensToString(java.util.List<Token> tokens, boolean xMLFlag)
tokens - tokensxMLFlag - XML output formatpublic static java.lang.String tokensToString(java.util.Map<java.lang.Integer,Token> tokens, boolean xMLFlag)
tokens - sentence word segmentsxMLFlag - XML output formatpublic static java.lang.String parseTreeToString(AParseTree parseTree, boolean xMLFlag)
parseTree - parse treexMLFlag - XML output formatpublic static java.lang.String grammaticalStructureToString(AGrammaticalStructure grammaticalStructure, boolean xMLFlag)
grammaticalStructure - grammatical structurexMLFlag - XML output formatpublic static java.lang.String typedDependenciesToString(java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> typedDependencies, boolean xMLFlag)
typedDependencies - typed dependenciesxMLFlag - XML output formatpublic static java.lang.String semanticGraphsToString(java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> semanticGraphs, boolean xMLFlag)
semanticGraphs - semantic graphxMLFlag - XML output formatprivate static java.lang.String namedEntitiesToString(ANamedEntities namedEntities, boolean xMLFlag)
namedEntities - named entitiesxMLFlag - XML output formatprivate static java.lang.String sentimentToString(Sentiment sentiment, boolean xMLFlag)
sentiment - sentimentxMLFlag - XML output formatprivate static java.lang.String entailmentsToString(java.util.List<Entailment> entailments, boolean isXml)
entailments - entailmentsisXml - xml formatprivate static java.lang.String triplesToString(java.util.List<Triple> triples, boolean isXml)
triples - triplesisXml - xml formatpublic static java.lang.String coreferencesToString(ACoreferences coreferences, boolean xMLFlag)
coreferences - coreferencesxMLFlag - XML output format