public class TextAnnotation extends ReadingAnnotation
Modifier and Type | Field and Description |
---|---|
protected String |
dictionaryForm |
protected String |
dictionaryFormReading |
protected String |
grammaticalType |
protected String |
translation |
length, reading, start
Constructor and Description |
---|
TextAnnotation(int _start,
int _length,
String _dictionaryForm) |
TextAnnotation(int _start,
int _length,
String _reading,
String _dictionaryForm,
String _dictionaryFormReading,
String _grammaticalType) |
TextAnnotation(int _start,
int _length,
String _reading,
String _dictionaryForm,
String _dictionaryFormReading,
String _grammaticalType,
String _translation) |
Modifier and Type | Method and Description |
---|---|
String |
getDictionaryForm()
Returns the dictionary form of the annotated text.
|
String |
getDictionaryFormReading()
Returns the reading of the dictionary form of the annotated text.
|
String |
getGrammaticalType()
Returns the grammatical type of the annotated text.
|
String |
getTranslation() |
void |
setDictionaryForm(String _dictionaryForm) |
void |
setDictionaryFormReading(String _dictionaryFormReading) |
void |
setGrammaticalType(String _grammaticalType) |
void |
setTranslation(String _translation) |
String |
toString() |
getLength, getReading, getStart, setReading
protected String dictionaryForm
protected String dictionaryFormReading
protected String grammaticalType
protected String translation
public TextAnnotation(int _start, int _length, String _dictionaryForm)
public TextAnnotation(int _start, int _length, String _reading, String _dictionaryForm, String _dictionaryFormReading, String _grammaticalType)
public String getDictionaryForm()
public String getDictionaryFormReading()
null
if the
parser cannot determine the reading.public String getGrammaticalType()
null
if the
parser cannot determine the grammatical type.public String getTranslation()
public void setDictionaryForm(String _dictionaryForm)
public void setDictionaryFormReading(String _dictionaryFormReading)
public void setGrammaticalType(String _grammaticalType)
public void setTranslation(String _translation)
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.