GrammarScope  4.0.0
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.server.io.xml.XMLPrinter Class Referenceabstract
Inheritance diagram for grammarscope.server.io.xml.XMLPrinter:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.server.io.xml.XMLPrinter:
Collaboration graph
[legend]

Public Member Functions

String buildDocument (final String text, final String coreferences, final String... sentenceReports)
 
String buildDocument (final String[] reports)
 
String buildSentence (final int sentenceIdx, final SentenceSegment sentenceSegment, final String text, 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 List< Token > tokens, final String tokenizer)
 
String parseTreeToXMLString (final Tree parseTree)
 
String parseTreeToXMLString (final Tree parseTree, final String parseModel)
 
String grammaticalStructureToXMLString (final GrammaticalStructure grammaticalStructure)
 
String grammaticalStructureToXMLString (final GrammaticalStructure grammaticalStructure, final String grammaticalRelationModel)
 
String typedDependenciesToXMLString (final Collection< TypedDependency > typedDependencies, final TypedDependencyProvider provider, final TypedDependencyMode mode)
 
String typedDependenciesToXMLString (final SemanticGraph semanticGraph, final TypedDependencyProvider provider, final TypedDependencyMode mode)
 
String semanticGraphToXMLString (final SemanticGraph semanticGraph, final TypedDependencyProvider provider, final TypedDependencyMode mode)
 
String typedDependenciesToXMLString (final Map< TypedDependencyMode, Collection< TypedDependency >> typedDependencies, final TypedDependencyProvider provider)
 
String typedDependenciesToXMLString (final Map< TypedDependencyMode, Collection< TypedDependency >> typedDependencies, final TypedDependencyProvider provider, final String model)
 
String semanticGraphsToXMLString (final Map< TypedDependencyMode, SemanticGraph > semanticGraphs, final TypedDependencyProvider provider)
 
String semanticGraphsToXMLString (final Map< TypedDependencyMode, SemanticGraph > semanticGraphs, final TypedDependencyProvider provider, final String model)
 
String analysisToXMLString (final Analysis analysis, final int sentenceIndex, final Options options)
 
String namedEntitiesToXMLString (final List< NamedEntity > namedEntities, final String sentenceText, final SentenceSegment sentenceSegment)
 
String sentimentToXMLString (final Sentiment sentiment)
 
String entailmentsToXMLString (final List< Entailment > entailments)
 
String triplesToXMLString (final List< Triple > triples)
 
String coreferencesToXMLString (final Coreferences coreferences)
 
String textAnalysisToXMLString (final TextAnalysis textAnalysis, final Options options)
 

Static Public Member Functions

static String indent (final String str, final int nTabs)
 
static String trimAnnotationKey (final String str)
 

Protected Attributes

String ROOT
 
String ROOT_FORMAT
 
String DOCUMENT
 
String TEXT
 
String SENTENCES
 
String SENTENCE
 
String SENTENCE_IDX
 
String SENTENCE_FROM
 
String SENTENCE_TO
 
String SENTENCE_TEXT
 
String SENTENCE_BEGIN
 
String SENTENCE_END
 
String TOKENS
 
String TOKENS_MODEL
 
String TOKEN
 
String TOKEN_IDX
 
String TOKEN_FROM
 
String TOKEN_TO
 
String TOKEN_WORD
 
String TOKEN_LEMMA
 
String TOKEN_POS
 
String TOKEN_NER
 
String TOKEN_NORM_NER
 
String TOKEN_SENTIMENT
 
String TOKEN_SPEAKER
 
String TOKEN_BEGIN
 
String TOKEN_END
 
String PARSE
 
String PARSE_FORMAT
 
String PARSE_MODEL
 
String PARSE_NODE
 
String PARSE_NODE_IDX
 
String PARSE_NODE_VALUE
 
String PARSE_NODE_SCORE
 
String PARSE_NODE_WORD
 
String PARSE_NODE_WORD_IDX
 
String PARSE_NODE_LEMMA
 
String GSTRUCTURE
 
String GSTRUCTURE_FORMAT
 
String GSTRUCTURE_MODEL
 
String GSNODE
 
String GSNODE_IDX
 
String GSNODE_VALUE
 
String GSNODE_SCORE
 
String GSNODE_RELATION
 
String GSNODE_WORD
 
String GSNODE_WORD_IDX
 
String GSNODE_LEMMA
 
String GSNODE_HEAD
 
String GSNODE_HEAD_TAG
 
String GSNODE_ANNOTATION
 
String GSNODE_ANNOTATION_KEY
 
String GSNODE_DEPENDENT
 
String GSNODE_GOVERNOR
 
String TYPEDDEPENDENCIES_SET
 
String TYPEDDEPENDENCIES_SET_PROVIDER
 
String TYPEDDEPENDENCIES_SET_MODEL
 
String TYPEDDEPENDENCIES
 
String TYPEDDEPENDENCIES_PROVIDER
 
String TYPEDDEPENDENCIES_MODE
 
String TYPEDDEPENDENCIES_STYLE
 
String GRAPH_SET
 
String GRAPH_SET_PROVIDER
 
String GRAPH_SET_MODEL
 
String GRAPH
 
String GRAPH_PROVIDER
 
String GRAPH_MODE
 
String GRAPH_DEPENDENCIES
 
String GRAPH_ROOTS
 
String GRAPH_ROOT
 
String GRAPH_ROOT_IDX
 
String DEPENDENCY
 
String DEPENDENCY_TYPE
 
String RELATION
 
String DEPENDENT
 
String DEPENDENT_IDX
 
String GOVERNOR
 
String GOVERNOR_IDX
 
String NAMED_ENTITIES
 
String NAMED_ENTITY
 
String NAMEDENTITY_FROM
 
String NAMED_ENTITY_TO
 
String NAMEDENTITY_WORD
 
String NAMED_ENTITY_GENDER
 
String NAMED_ENTITY_NUMBER
 
String NAMED_ENTITY_ANIMACY
 
String SENTIMENT
 
String SENTIMENT_CLASS
 
String SENTIMENT_VALUE
 
String ENTAILMENTS
 
String ENTAILMENT
 
String ENTAILMENT_SCORE
 
String TRIPLES
 
String TRIPLE
 
String TRIPLE_SUBJECT
 
String TRIPLE_RELATION
 
String TRIPLE_OBJECT
 
String COREFERENCES
 
String COREFERENCE
 
String COREFERENCE_MENTION
 
String COREFERENCE_MENTION_FROM
 
String COREFERENCE_MENTION_TO
 
String COREFERENCE_MENTION_REPRESENTATIVE
 
String COREFERENCE_TEXT
 
String COREFERENCE_HEAD
 
String COREFERENCE_SENTENCE
 
String COREFERENCE_START
 
String COREFERENCE_END
 
String xmlDocumentFormat
 
String xmlSentenceFormat
 

Private Member Functions

void walkTree (final Tree tree, final StringBuffer sb, final String indent)
 
void walkGrammaticalStructure (final TreeGraphNode treeGraphNode, final Map< Integer, TypedDependency > governorMap, final Map< Integer, Collection< TypedDependency >> dependentMap, final StringBuffer sb, final String indent)
 

Static Private Member Functions

static String normalize (final String id)
 

Private Attributes

final boolean stanfordMode = false
 

Static Private Attributes

static final Comparator< TypedDependency > typedDependencyComparator
 
static final Comparator< SemanticGraphEdge > semanticGraphEdgeComparator
 

Detailed Description

XML printer (Stanford structures)

Author
Bernard Bou

Member Function Documentation

◆ analysisToXMLString()

String grammarscope.server.io.xml.XMLPrinter.analysisToXMLString ( final Analysis  analysis,
final int  sentenceIndex,
final Options  options 
)

Sentence analysis to XML string

Parameters
analysisanalysis
sentenceIndexsentence index
optionsoptions
Returns
XML string

◆ buildDocument() [1/2]

String grammarscope.server.io.xml.XMLPrinter.buildDocument ( final String  text,
final String  coreferences,
final String...  sentenceReports 
)

Build document XML string

Parameters
texttext
coreferencescoreferences
sentenceReportsXML strings for sentences
Returns
XML string

◆ buildDocument() [2/2]

String grammarscope.server.io.xml.XMLPrinter.buildDocument ( final String[]  reports)

Build document XML string

Parameters
reportsall reports including text, coreference, sentence reports
Returns
XML string

◆ buildSentence()

String grammarscope.server.io.xml.XMLPrinter.buildSentence ( final int  sentenceIdx,
final SentenceSegment  sentenceSegment,
final String  text,
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 
)

Build sentence XML string

Parameters
sentenceIdxsentence id
sentenceSegmentsentence segment
textsentence text
tokensStringXML string for tokens
parseTreeStringstring for parse (may be XML or content text)
grammaticalStructureStringstring for grammatical structure
typedDependenciesStringstring for typed dependencies
semanticGraphsStringstring for semantic graph
namedEntitiesStringstring for named entities
sentimentStringstring for sentiment
entailmentsStringstring for entailments
triplesStringstring for triples
Returns
XML string

◆ coreferencesToXMLString()

String grammarscope.server.io.xml.XMLPrinter.coreferencesToXMLString ( final Coreferences  coreferences)

Coreferences to XML string

Parameters
coreferencescoreferences
Returns
coreferences XML string

◆ entailmentsToXMLString()

String grammarscope.server.io.xml.XMLPrinter.entailmentsToXMLString ( final List< Entailment entailments)

Entailments to string

Parameters
entailmentsentailments
Returns
entailments string

◆ grammaticalStructureToXMLString() [1/2]

String grammarscope.server.io.xml.XMLPrinter.grammaticalStructureToXMLString ( final GrammaticalStructure  grammaticalStructure)

Make XML string from grammatical structure

Parameters
grammaticalStructuregrammatical structure
Returns
XML string

◆ grammaticalStructureToXMLString() [2/2]

String grammarscope.server.io.xml.XMLPrinter.grammaticalStructureToXMLString ( final GrammaticalStructure  grammaticalStructure,
final String  grammaticalRelationModel 
)

Make XML string from grammatical structure

Parameters
grammaticalStructuregrammatical structure
grammaticalRelationModelgrammatical relation model
Returns
XML string

◆ indent()

static String grammarscope.server.io.xml.XMLPrinter.indent ( final String  str,
final int  nTabs 
)
static

Indent string

Parameters
strinput string
nTabsnumber of tabs to indent
Returns
indented string

◆ namedEntitiesToXMLString()

String grammarscope.server.io.xml.XMLPrinter.namedEntitiesToXMLString ( final List< NamedEntity namedEntities,
final String  sentenceText,
final SentenceSegment  sentenceSegment 
)

Named entities to XML string

Parameters
namedEntitiesnamed entities
sentenceTextsentence text
sentenceSegmentsentence segment
Returns
named entities XML string

◆ normalize()

static String grammarscope.server.io.xml.XMLPrinter.normalize ( final String  id)
staticprivate

Normalize id

Parameters
idid
Returns
new id

◆ parseTreeToXMLString() [1/2]

String grammarscope.server.io.xml.XMLPrinter.parseTreeToXMLString ( final Tree  parseTree)

Make XML string from parse tree

Parameters
parseTreeparse tree
Returns
XML string

◆ parseTreeToXMLString() [2/2]

String grammarscope.server.io.xml.XMLPrinter.parseTreeToXMLString ( final Tree  parseTree,
final String  parseModel 
)

Make XML string from parse tree

Parameters
parseTreeparse tree
parseModelmodel
Returns
XML string

◆ semanticGraphsToXMLString() [1/2]

String grammarscope.server.io.xml.XMLPrinter.semanticGraphsToXMLString ( final Map< TypedDependencyMode, SemanticGraph >  semanticGraphs,
final TypedDependencyProvider  provider 
)

Make XML string from semantic graph

Parameters
semanticGraphsmode-indexed typed semantic graphs
providerprovider
Returns
XML string

◆ semanticGraphsToXMLString() [2/2]

String grammarscope.server.io.xml.XMLPrinter.semanticGraphsToXMLString ( final Map< TypedDependencyMode, SemanticGraph >  semanticGraphs,
final TypedDependencyProvider  provider,
final String  model 
)

Make XML string from semantic graph

Parameters
semanticGraphsmode-indexed typed semantic graphs
providerprovider
modelmodel
Returns
XML string

Reimplemented in grammarscope.server.io.xml.XMLPrinterStanford.

◆ semanticGraphToXMLString()

String grammarscope.server.io.xml.XMLPrinter.semanticGraphToXMLString ( final SemanticGraph  semanticGraph,
final TypedDependencyProvider  provider,
final TypedDependencyMode  mode 
)

Make XML string from semantic graph

Parameters
semanticGraphsemantic graph
providerprovider
modetyped dependency mode
Returns
XML string

◆ sentimentToXMLString()

String grammarscope.server.io.xml.XMLPrinter.sentimentToXMLString ( final Sentiment  sentiment)

Sentiment to string

Parameters
sentimentsentiment
Returns
sentiment string

◆ textAnalysisToXMLString()

String grammarscope.server.io.xml.XMLPrinter.textAnalysisToXMLString ( final TextAnalysis  textAnalysis,
final Options  options 
)

Text analysis to string

Parameters
textAnalysistext analysis
optionsoptions
Returns
XML string

◆ tokensToXMLString()

String grammarscope.server.io.xml.XMLPrinter.tokensToXMLString ( final List< Token tokens,
final String  tokenizer 
)

Make XML string from list of tokens

Parameters
tokenstokens
tokenizertokenizer
Returns
XML string

◆ trimAnnotationKey()

static String grammarscope.server.io.xml.XMLPrinter.trimAnnotationKey ( final String  str)
static

Trim string removing glut

Parameters
strstring to trim
Returns
trimmed string

◆ triplesToXMLString()

String grammarscope.server.io.xml.XMLPrinter.triplesToXMLString ( final List< Triple triples)

Triples to string

Parameters
triplestriples
Returns
triples string

◆ typedDependenciesToXMLString() [1/4]

String grammarscope.server.io.xml.XMLPrinter.typedDependenciesToXMLString ( final Collection< TypedDependency >  typedDependencies,
final TypedDependencyProvider  provider,
final TypedDependencyMode  mode 
)

Make XML string from typed dependencies

Parameters
typedDependenciestyped dependencies
providertyped dependencies provider
modetyped dependencies mode
Returns
XML string

◆ typedDependenciesToXMLString() [2/4]

String grammarscope.server.io.xml.XMLPrinter.typedDependenciesToXMLString ( final Map< TypedDependencyMode, Collection< TypedDependency >>  typedDependencies,
final TypedDependencyProvider  provider 
)

Make XML string from typed dependencies

Parameters
typedDependenciesmode-indexed typed dependencies
providerprovider
Returns
XML string

◆ typedDependenciesToXMLString() [3/4]

String grammarscope.server.io.xml.XMLPrinter.typedDependenciesToXMLString ( final Map< TypedDependencyMode, Collection< TypedDependency >>  typedDependencies,
final TypedDependencyProvider  provider,
final String  model 
)

Make XML string from typed dependencies

Parameters
typedDependenciesmode-indexed typed dependencies
providerprovider
modelmodel
Returns
XML string

Reimplemented in grammarscope.server.io.xml.XMLPrinterStanford.

◆ typedDependenciesToXMLString() [4/4]

String grammarscope.server.io.xml.XMLPrinter.typedDependenciesToXMLString ( final SemanticGraph  semanticGraph,
final TypedDependencyProvider  provider,
final TypedDependencyMode  mode 
)

Make XML string from typed dependencies

Parameters
semanticGraphsemantic graph
providertyped dependencies provider
modetyped dependencies mode
Returns
XML string

◆ walkGrammaticalStructure()

void grammarscope.server.io.xml.XMLPrinter.walkGrammaticalStructure ( final TreeGraphNode  treeGraphNode,
final Map< Integer, TypedDependency >  governorMap,
final Map< Integer, Collection< TypedDependency >>  dependentMap,
final StringBuffer  sb,
final String  indent 
)
private

Walk grammatical structure

Parameters
treeGraphNodegrammatical structure tree graph
governorMapgovernor map
dependentMapdependent map
sbstring sb
indentcurrent indent

◆ walkTree()

void grammarscope.server.io.xml.XMLPrinter.walkTree ( final Tree  tree,
final StringBuffer  sb,
final String  indent 
)
private

Walk tree graph node

Parameters
treetree node
sbstring sb
indentcurrent indent

Member Data Documentation

◆ COREFERENCE

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE
protected

◆ COREFERENCE_END

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_END
protected

◆ COREFERENCE_HEAD

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_HEAD
protected

◆ COREFERENCE_MENTION

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_MENTION
protected

◆ COREFERENCE_MENTION_FROM

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_MENTION_FROM
protected

◆ COREFERENCE_MENTION_REPRESENTATIVE

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_MENTION_REPRESENTATIVE
protected

◆ COREFERENCE_MENTION_TO

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_MENTION_TO
protected

◆ COREFERENCE_SENTENCE

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_SENTENCE
protected

◆ COREFERENCE_START

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_START
protected

◆ COREFERENCE_TEXT

String grammarscope.server.io.xml.XMLPrinter.COREFERENCE_TEXT
protected

◆ COREFERENCES

String grammarscope.server.io.xml.XMLPrinter.COREFERENCES
protected

◆ DEPENDENCY

String grammarscope.server.io.xml.XMLPrinter.DEPENDENCY
protected

◆ DEPENDENCY_TYPE

String grammarscope.server.io.xml.XMLPrinter.DEPENDENCY_TYPE
protected

◆ DEPENDENT

String grammarscope.server.io.xml.XMLPrinter.DEPENDENT
protected

◆ DEPENDENT_IDX

String grammarscope.server.io.xml.XMLPrinter.DEPENDENT_IDX
protected

◆ DOCUMENT

String grammarscope.server.io.xml.XMLPrinter.DOCUMENT
protected

◆ ENTAILMENT

String grammarscope.server.io.xml.XMLPrinter.ENTAILMENT
protected

◆ ENTAILMENT_SCORE

String grammarscope.server.io.xml.XMLPrinter.ENTAILMENT_SCORE
protected

◆ ENTAILMENTS

String grammarscope.server.io.xml.XMLPrinter.ENTAILMENTS
protected

◆ GOVERNOR

String grammarscope.server.io.xml.XMLPrinter.GOVERNOR
protected

◆ GOVERNOR_IDX

String grammarscope.server.io.xml.XMLPrinter.GOVERNOR_IDX
protected

◆ GRAPH

String grammarscope.server.io.xml.XMLPrinter.GRAPH
protected

◆ GRAPH_DEPENDENCIES

String grammarscope.server.io.xml.XMLPrinter.GRAPH_DEPENDENCIES
protected

◆ GRAPH_MODE

String grammarscope.server.io.xml.XMLPrinter.GRAPH_MODE
protected

◆ GRAPH_PROVIDER

String grammarscope.server.io.xml.XMLPrinter.GRAPH_PROVIDER
protected

◆ GRAPH_ROOT

String grammarscope.server.io.xml.XMLPrinter.GRAPH_ROOT
protected

◆ GRAPH_ROOT_IDX

String grammarscope.server.io.xml.XMLPrinter.GRAPH_ROOT_IDX
protected

◆ GRAPH_ROOTS

String grammarscope.server.io.xml.XMLPrinter.GRAPH_ROOTS
protected

◆ GRAPH_SET

String grammarscope.server.io.xml.XMLPrinter.GRAPH_SET
protected

◆ GRAPH_SET_MODEL

String grammarscope.server.io.xml.XMLPrinter.GRAPH_SET_MODEL
protected

◆ GRAPH_SET_PROVIDER

String grammarscope.server.io.xml.XMLPrinter.GRAPH_SET_PROVIDER
protected

◆ GSNODE

String grammarscope.server.io.xml.XMLPrinter.GSNODE
protected

◆ GSNODE_ANNOTATION

String grammarscope.server.io.xml.XMLPrinter.GSNODE_ANNOTATION
protected

◆ GSNODE_ANNOTATION_KEY

String grammarscope.server.io.xml.XMLPrinter.GSNODE_ANNOTATION_KEY
protected

◆ GSNODE_DEPENDENT

String grammarscope.server.io.xml.XMLPrinter.GSNODE_DEPENDENT
protected

◆ GSNODE_GOVERNOR

String grammarscope.server.io.xml.XMLPrinter.GSNODE_GOVERNOR
protected

◆ GSNODE_HEAD

String grammarscope.server.io.xml.XMLPrinter.GSNODE_HEAD
protected

◆ GSNODE_HEAD_TAG

String grammarscope.server.io.xml.XMLPrinter.GSNODE_HEAD_TAG
protected

◆ GSNODE_IDX

String grammarscope.server.io.xml.XMLPrinter.GSNODE_IDX
protected

◆ GSNODE_LEMMA

String grammarscope.server.io.xml.XMLPrinter.GSNODE_LEMMA
protected

◆ GSNODE_RELATION

String grammarscope.server.io.xml.XMLPrinter.GSNODE_RELATION
protected

◆ GSNODE_SCORE

String grammarscope.server.io.xml.XMLPrinter.GSNODE_SCORE
protected

◆ GSNODE_VALUE

String grammarscope.server.io.xml.XMLPrinter.GSNODE_VALUE
protected

◆ GSNODE_WORD

String grammarscope.server.io.xml.XMLPrinter.GSNODE_WORD
protected

◆ GSNODE_WORD_IDX

String grammarscope.server.io.xml.XMLPrinter.GSNODE_WORD_IDX
protected

◆ GSTRUCTURE

String grammarscope.server.io.xml.XMLPrinter.GSTRUCTURE
protected

◆ GSTRUCTURE_FORMAT

String grammarscope.server.io.xml.XMLPrinter.GSTRUCTURE_FORMAT
protected

◆ GSTRUCTURE_MODEL

String grammarscope.server.io.xml.XMLPrinter.GSTRUCTURE_MODEL
protected

◆ NAMED_ENTITIES

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITIES
protected

◆ NAMED_ENTITY

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITY
protected

◆ NAMED_ENTITY_ANIMACY

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITY_ANIMACY
protected

◆ NAMED_ENTITY_GENDER

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITY_GENDER
protected

◆ NAMED_ENTITY_NUMBER

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITY_NUMBER
protected

◆ NAMED_ENTITY_TO

String grammarscope.server.io.xml.XMLPrinter.NAMED_ENTITY_TO
protected

◆ NAMEDENTITY_FROM

String grammarscope.server.io.xml.XMLPrinter.NAMEDENTITY_FROM
protected

◆ NAMEDENTITY_WORD

String grammarscope.server.io.xml.XMLPrinter.NAMEDENTITY_WORD
protected

◆ PARSE

String grammarscope.server.io.xml.XMLPrinter.PARSE
protected

◆ PARSE_FORMAT

String grammarscope.server.io.xml.XMLPrinter.PARSE_FORMAT
protected

◆ PARSE_MODEL

String grammarscope.server.io.xml.XMLPrinter.PARSE_MODEL
protected

◆ PARSE_NODE

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE
protected

◆ PARSE_NODE_IDX

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_IDX
protected

◆ PARSE_NODE_LEMMA

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_LEMMA
protected

◆ PARSE_NODE_SCORE

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_SCORE
protected

◆ PARSE_NODE_VALUE

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_VALUE
protected

◆ PARSE_NODE_WORD

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_WORD
protected

◆ PARSE_NODE_WORD_IDX

String grammarscope.server.io.xml.XMLPrinter.PARSE_NODE_WORD_IDX
protected

◆ RELATION

String grammarscope.server.io.xml.XMLPrinter.RELATION
protected

◆ ROOT

String grammarscope.server.io.xml.XMLPrinter.ROOT
protected

◆ ROOT_FORMAT

String grammarscope.server.io.xml.XMLPrinter.ROOT_FORMAT
protected

◆ semanticGraphEdgeComparator

final Comparator<SemanticGraphEdge> grammarscope.server.io.xml.XMLPrinter.semanticGraphEdgeComparator
staticprivate
Initial value:
= (sg1, sg2) -> {
final int rel = sg1.getRelation().getShortName().compareTo(sg2.getRelation().getShortName());
if (rel != 0)
return rel;
final int dep = sg1.getTarget().value().compareTo(sg2.getTarget().value());
if (dep != 0)
return dep;
return sg1.getSource().value().compareTo(sg2.getSource().value());
}

◆ SENTENCE

String grammarscope.server.io.xml.XMLPrinter.SENTENCE
protected

◆ SENTENCE_BEGIN

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_BEGIN
protected

◆ SENTENCE_END

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_END
protected

◆ SENTENCE_FROM

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_FROM
protected

◆ SENTENCE_IDX

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_IDX
protected

◆ SENTENCE_TEXT

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_TEXT
protected

◆ SENTENCE_TO

String grammarscope.server.io.xml.XMLPrinter.SENTENCE_TO
protected

◆ SENTENCES

String grammarscope.server.io.xml.XMLPrinter.SENTENCES
protected

◆ SENTIMENT

String grammarscope.server.io.xml.XMLPrinter.SENTIMENT
protected

◆ SENTIMENT_CLASS

String grammarscope.server.io.xml.XMLPrinter.SENTIMENT_CLASS
protected

◆ SENTIMENT_VALUE

String grammarscope.server.io.xml.XMLPrinter.SENTIMENT_VALUE
protected

◆ stanfordMode

final boolean grammarscope.server.io.xml.XMLPrinter.stanfordMode = false
private

Whether output mimics Stanford output

◆ TEXT

String grammarscope.server.io.xml.XMLPrinter.TEXT
protected

◆ TOKEN

String grammarscope.server.io.xml.XMLPrinter.TOKEN
protected

◆ TOKEN_BEGIN

String grammarscope.server.io.xml.XMLPrinter.TOKEN_BEGIN
protected

◆ TOKEN_END

String grammarscope.server.io.xml.XMLPrinter.TOKEN_END
protected

◆ TOKEN_FROM

String grammarscope.server.io.xml.XMLPrinter.TOKEN_FROM
protected

◆ TOKEN_IDX

String grammarscope.server.io.xml.XMLPrinter.TOKEN_IDX
protected

◆ TOKEN_LEMMA

String grammarscope.server.io.xml.XMLPrinter.TOKEN_LEMMA
protected

◆ TOKEN_NER

String grammarscope.server.io.xml.XMLPrinter.TOKEN_NER
protected

◆ TOKEN_NORM_NER

String grammarscope.server.io.xml.XMLPrinter.TOKEN_NORM_NER
protected

◆ TOKEN_POS

String grammarscope.server.io.xml.XMLPrinter.TOKEN_POS
protected

◆ TOKEN_SENTIMENT

String grammarscope.server.io.xml.XMLPrinter.TOKEN_SENTIMENT
protected

◆ TOKEN_SPEAKER

String grammarscope.server.io.xml.XMLPrinter.TOKEN_SPEAKER
protected

◆ TOKEN_TO

String grammarscope.server.io.xml.XMLPrinter.TOKEN_TO
protected

◆ TOKEN_WORD

String grammarscope.server.io.xml.XMLPrinter.TOKEN_WORD
protected

◆ TOKENS

String grammarscope.server.io.xml.XMLPrinter.TOKENS
protected

◆ TOKENS_MODEL

String grammarscope.server.io.xml.XMLPrinter.TOKENS_MODEL
protected

◆ TRIPLE

String grammarscope.server.io.xml.XMLPrinter.TRIPLE
protected

◆ TRIPLE_OBJECT

String grammarscope.server.io.xml.XMLPrinter.TRIPLE_OBJECT
protected

◆ TRIPLE_RELATION

String grammarscope.server.io.xml.XMLPrinter.TRIPLE_RELATION
protected

◆ TRIPLE_SUBJECT

String grammarscope.server.io.xml.XMLPrinter.TRIPLE_SUBJECT
protected

◆ TRIPLES

String grammarscope.server.io.xml.XMLPrinter.TRIPLES
protected

◆ TYPEDDEPENDENCIES

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES
protected

◆ TYPEDDEPENDENCIES_MODE

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_MODE
protected

◆ TYPEDDEPENDENCIES_PROVIDER

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_PROVIDER
protected

◆ TYPEDDEPENDENCIES_SET

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_SET
protected

◆ TYPEDDEPENDENCIES_SET_MODEL

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_SET_MODEL
protected

◆ TYPEDDEPENDENCIES_SET_PROVIDER

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_SET_PROVIDER
protected

◆ TYPEDDEPENDENCIES_STYLE

String grammarscope.server.io.xml.XMLPrinter.TYPEDDEPENDENCIES_STYLE
protected

◆ typedDependencyComparator

final Comparator<TypedDependency> grammarscope.server.io.xml.XMLPrinter.typedDependencyComparator
staticprivate
Initial value:
= (td1, td2) -> {
final int rel = td1.reln().getShortName().compareTo(td2.reln().getShortName());
if (rel != 0)
return rel;
final int dep = td1.dep().value().compareTo(td2.dep().value());
if (dep != 0)
return dep;
return td1.gov().value().compareTo(td2.gov().value());
}

◆ xmlDocumentFormat

String grammarscope.server.io.xml.XMLPrinter.xmlDocumentFormat
protected

Document skeleton format

◆ xmlSentenceFormat

String grammarscope.server.io.xml.XMLPrinter.xmlSentenceFormat
protected

Sentence skeleton format


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