public class WordToken extends BaseToken
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
WordToken()
Never called.
|
|
WordToken(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
WordToken(JCas jcas) |
|
WordToken(JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCanonicalForm()
getter for canonicalForm - gets
|
int |
getCapitalization()
getter for capitalization - gets
|
int |
getNumPosition()
getter for numPosition - gets
|
java.lang.String |
getSuggestion()
getter for suggestion - gets
|
int |
getTypeIndexID() |
private void |
readObject()
Write your own initialization here
|
void |
setCanonicalForm(java.lang.String v)
setter for canonicalForm - sets
|
void |
setCapitalization(int v)
setter for capitalization - sets
|
void |
setNumPosition(int v)
setter for numPosition - sets
|
void |
setSuggestion(java.lang.String v)
setter for suggestion - sets
|
getLemmaEntries, getNormalizedForm, getPartOfSpeech, getTokenNumber, setLemmaEntries, setNormalizedForm, setPartOfSpeech, setTokenNumber
protected WordToken()
public WordToken(int addr, TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic WordToken(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic WordToken(JCas jcas, int begin, int end)
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofApublic int getTypeIndexID()
getTypeIndexID
in class BaseToken
private void readObject()
public int getCapitalization()
public void setCapitalization(int v)
v
- value to set into the featurepublic int getNumPosition()
public void setNumPosition(int v)
v
- value to set into the featurepublic java.lang.String getSuggestion()
public void setSuggestion(java.lang.String v)
v
- value to set into the featurepublic java.lang.String getCanonicalForm()
public void setCanonicalForm(java.lang.String v)
v
- value to set into the feature