GrammarScope  2.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.io.print.AnalysisPrinter Class Reference
Collaboration diagram for grammarscope.io.print.AnalysisPrinter:
Collaboration graph
[legend]

Static Public Member Functions

static String buildDocument (final String[] theseReports, final boolean thisXMLFlag)
 
static String getReport (final int thisSentenceIdx, final String thisText, final SentenceSegment thisSentenceSegment, final List< WordSegment > theseWordSegments, final AParseTree thisParseTree, final AGrammaticalStructure thisGrammaticalStructure, final Map< TypedDependencyMode, ATypedDependencies > theseTypedDependencies, final Map< TypedDependencyMode, ASemanticGraph > thisSemanticGraph, final ANamedEntities theseNamedEntities, final boolean thisXMLFlag) throws RuntimeException
 
static String[] getReports (final int thisSentenceIdx, final String thisText, final SentenceSegment thisSentenceSegment, final List< WordSegment > theseWordSegments, final AParseTree thisParseTree, final AGrammaticalStructure thisGrammaticalStructure, final Map< TypedDependencyMode, ATypedDependencies > theseTypedDependencies, final Map< TypedDependencyMode, ASemanticGraph > thisSemanticGraph, final ANamedEntities theseNamedEntities, final boolean thisXMLFlag) throws RuntimeException
 
static String[] getReports (final AAnalysis thisAnalysis, final boolean thisXMLFlag)
 
static String tokensToString (final String thisSentenceText, final List< WordSegment > theseWordSegments, final boolean thisXMLFlag)
 
static String parseTreeToString (final AParseTree thisParseTree, final boolean thisXMLFlag)
 
static String grammaticalStructureToString (final AGrammaticalStructure thisGrammaticalStructure, final boolean thisXMLFlag)
 
static String typedDependenciesToString (final Map< TypedDependencyMode, ATypedDependencies > theseTypedDependencies, final boolean thisXMLFlag)
 
static String semanticGraphsToString (final Map< TypedDependencyMode, ASemanticGraph > theseSemanticGraphs, final boolean thisXMLFlag)
 
static String coreferencesToString (final ACoreferences theseCoreferences, final boolean thisXMLFlag)
 

Private Member Functions

 AnalysisPrinter ()
 

Static Private Member Functions

static String namedEntitiesToString (final ANamedEntities theseNamedEntities, boolean thisXMLFlag)
 

Static Private Attributes

static XMLPrinter theXMLPrinter = new XMLPrinterGrammarScope()
 

Constructor & Destructor Documentation

grammarscope.io.print.AnalysisPrinter.AnalysisPrinter ( )
private

Member Function Documentation

static String grammarscope.io.print.AnalysisPrinter.buildDocument ( final String[]  theseReports,
final boolean  thisXMLFlag 
)
static

Build text report

Parameters
theseReportsreports
thisXMLFlagXML format
Returns
text report
static String grammarscope.io.print.AnalysisPrinter.coreferencesToString ( final ACoreferences  theseCoreferences,
final boolean  thisXMLFlag 
)
static

Coreferences to string

Parameters
theseCoreferencescoreferences
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.getReport ( final int  thisSentenceIdx,
final String  thisText,
final SentenceSegment  thisSentenceSegment,
final List< WordSegment theseWordSegments,
final AParseTree  thisParseTree,
final AGrammaticalStructure  thisGrammaticalStructure,
final Map< TypedDependencyMode, ATypedDependencies >  theseTypedDependencies,
final Map< TypedDependencyMode, ASemanticGraph >  thisSemanticGraph,
final ANamedEntities  theseNamedEntities,
final boolean  thisXMLFlag 
) throws RuntimeException
static

Report

Parameters
thisSentenceIdxsentence index
thisTexttext
thisSentenceSegmentsentence segment
theseWordSegmentsword segments
thisParseTreeparse tree
thisGrammaticalStructuregrammatical structure
theseTypedDependenciestyped dependencies
thisSemanticGraphsemantic graph
theseNamedEntitiesnamed entities
thisXMLFlagreport inXML format
Returns
report
Exceptions
RuntimeException
static String [] grammarscope.io.print.AnalysisPrinter.getReports ( final int  thisSentenceIdx,
final String  thisText,
final SentenceSegment  thisSentenceSegment,
final List< WordSegment theseWordSegments,
final AParseTree  thisParseTree,
final AGrammaticalStructure  thisGrammaticalStructure,
final Map< TypedDependencyMode, ATypedDependencies >  theseTypedDependencies,
final Map< TypedDependencyMode, ASemanticGraph >  thisSemanticGraph,
final ANamedEntities  theseNamedEntities,
final boolean  thisXMLFlag 
) throws RuntimeException
static

Split reports

Parameters
thisSentenceIdxsentence index
thisTexttext
thisSentenceSegmentsentence segment
theseWordSegmentsword segments
thisParseTreeparse tree
thisGrammaticalStructuregrammatical structure
theseTypedDependenciestyped dependencies
thisSemanticGraphsemantic graph
theseNamedEntitiesnamed entities
thisXMLFlagreport inXML format
Returns
reports
Exceptions
RuntimeException
static String [] grammarscope.io.print.AnalysisPrinter.getReports ( final AAnalysis  thisAnalysis,
final boolean  thisXMLFlag 
)
static

Get reports

Parameters
thisAnalysisanalysis
thisXMLFlagXML output format
Returns
reports
static String grammarscope.io.print.AnalysisPrinter.grammaticalStructureToString ( final AGrammaticalStructure  thisGrammaticalStructure,
final boolean  thisXMLFlag 
)
static

Grammatical structure

Parameters
thisGrammaticalStructuregrammatical structure
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.namedEntitiesToString ( final ANamedEntities  theseNamedEntities,
boolean  thisXMLFlag 
)
staticprivate

Named entities to string

Parameters
theseNamedEntitiesnamed entities
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.parseTreeToString ( final AParseTree  thisParseTree,
final boolean  thisXMLFlag 
)
static

Parse tree to string

Parameters
thisParseTreeparse tree
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.semanticGraphsToString ( final Map< TypedDependencyMode, ASemanticGraph >  theseSemanticGraphs,
final boolean  thisXMLFlag 
)
static

Semantic graphs to string

Parameters
theseSemanticGraphssemantic graph
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.tokensToString ( final String  thisSentenceText,
final List< WordSegment theseWordSegments,
final boolean  thisXMLFlag 
)
static

Tokens to string

Parameters
thisSentenceTextsentence text
theseWordSegmentssentence word segments
thisXMLFlagXML output format
Returns
string
static String grammarscope.io.print.AnalysisPrinter.typedDependenciesToString ( final Map< TypedDependencyMode, ATypedDependencies >  theseTypedDependencies,
final boolean  thisXMLFlag 
)
static

Typed dependencies to string

Parameters
theseTypedDependenciestyped dependencies
thisXMLFlagXML output format
Returns
string

Member Data Documentation

XMLPrinter grammarscope.io.print.AnalysisPrinter.theXMLPrinter = new XMLPrinterGrammarScope()
staticprivate

XML printer


The documentation for this class was generated from the following file: