public class PartOfSpeechTaggerResult extends WordTokenizerResult
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.List<edu.northwestern.at.morphadorner.corpuslinguistics.adornedword.AdornedWord>> |
adornedSentences
Tagged sentences.
|
boolean |
outputReg
True to add non-standard reg= attribute for standard spelling to
TEI formatted XML.
|
boolean |
outputTCF
True to output results in WebLicht TCF format XML.
|
boolean |
outputTEI
True to return TEI formatted XML if XML output selected.
|
corpusConfig, langCode, sentences, text
Constructor and Description |
---|
PartOfSpeechTaggerResult()
Create empty part of speech tagger results.
|
PartOfSpeechTaggerResult(java.lang.String text,
java.lang.String corpusConfig,
java.util.List<java.util.List<java.lang.String>> sentences,
java.util.List<java.util.List<edu.northwestern.at.morphadorner.corpuslinguistics.adornedword.AdornedWord>> adornedSentences,
boolean outputTEI,
boolean outputReg,
boolean outputTCF)
Create populated part of speech tagger results.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toHTML()
Return HTML version of class entry values.
|
java.lang.String |
toString()
Return string version of class entry values.
|
org.restlet.representation.Representation |
toTCF()
Convert results to WebLicht TCF XML.
|
org.restlet.ext.xml.DomRepresentation |
toTEI()
Convert results to TEI XML DOMRepresentation.
|
java.lang.String |
toTEIString()
Convert results to TEI XML String.
|
append, appendLn, stringFromHTML, tabularDataBaseResults
@XStreamConverter(value=AdornedSentencesConverter.class) public java.util.List<java.util.List<edu.northwestern.at.morphadorner.corpuslinguistics.adornedword.AdornedWord>> adornedSentences
public boolean outputTEI
public boolean outputReg
public boolean outputTCF
public PartOfSpeechTaggerResult()
public PartOfSpeechTaggerResult(java.lang.String text, java.lang.String corpusConfig, java.util.List<java.util.List<java.lang.String>> sentences, java.util.List<java.util.List<edu.northwestern.at.morphadorner.corpuslinguistics.adornedword.AdornedWord>> adornedSentences, boolean outputTEI, boolean outputReg, boolean outputTCF)
text
- Text to tag.corpusConfig
- Corpus configuration.sentences
- Word and sentences.adornedSentences
- Adorned sentences.outputTEI
- Output XML as fragmentary TEI.outputReg
- Add standard spelling attribute to
TEI output.outputTCF
- Output XML in WebLicht TCF format.public java.lang.String toTEIString()
public org.restlet.ext.xml.DomRepresentation toTEI()
public java.lang.String toString()
toString
in class WordTokenizerResult
public java.lang.String toHTML()
toHTML
in class BaseResults
public org.restlet.representation.Representation toTCF() throws de.tuebingen.uni.sfs.dspin.tcf04.data.TextCorpusFormatException, java.io.UnsupportedEncodingException
de.tuebingen.uni.sfs.dspin.tcf04.data.TextCorpusFormatException
java.io.UnsupportedEncodingException