org.apache.ctakes.typesystem.type.syntax
Class BaseToken_Type
java.lang.Object
org.apache.uima.jcas.cas.TOP_Type
org.apache.uima.jcas.cas.AnnotationBase_Type
org.apache.uima.jcas.tcas.Annotation_Type
org.apache.ctakes.typesystem.type.syntax.BaseToken_Type
- Direct Known Subclasses:
- ContractionToken_Type, NewlineToken_Type, NumToken_Type, PunctuationToken_Type, SymbolToken_Type, WordToken_Type
public class BaseToken_Type
- extends org.apache.uima.jcas.tcas.Annotation_Type
A supertype for tokens subsuming word, punctuation, symbol, newline, contraction, or number. Includes parts of speech, which are grammatical categories, e.g., noun (NN) or preposition (IN) that use Penn Treebank tags with a few additions.
Equivalent to cTAKES: edu.mayo.bmi.uima.core.type.BaseToken
Updated by JCasGen Tue Apr 09 12:44:03 EDT 2013
Fields inherited from class org.apache.uima.jcas.cas.TOP_Type |
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance |
Constructor Summary |
BaseToken_Type(org.apache.uima.jcas.JCas jcas,
org.apache.uima.cas.Type casType)
initialize variables to correspond with Cas Type and Features |
Methods inherited from class org.apache.uima.jcas.tcas.Annotation_Type |
getBegin, getCoveredText, getEnd, setBegin, setEnd |
Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase_Type |
getSofa, getView |
Methods inherited from class org.apache.uima.jcas.cas.TOP_Type |
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
typeIndexID
public static final int typeIndexID
featOkTst
public static final boolean featOkTst
casFeat_tokenNumber
final org.apache.uima.cas.Feature casFeat_tokenNumber
casFeatCode_tokenNumber
final int casFeatCode_tokenNumber
casFeat_normalizedForm
final org.apache.uima.cas.Feature casFeat_normalizedForm
casFeatCode_normalizedForm
final int casFeatCode_normalizedForm
casFeat_partOfSpeech
final org.apache.uima.cas.Feature casFeat_partOfSpeech
casFeatCode_partOfSpeech
final int casFeatCode_partOfSpeech
casFeat_lemmaEntries
final org.apache.uima.cas.Feature casFeat_lemmaEntries
casFeatCode_lemmaEntries
final int casFeatCode_lemmaEntries
BaseToken_Type
public BaseToken_Type(org.apache.uima.jcas.JCas jcas,
org.apache.uima.cas.Type casType)
- initialize variables to correspond with Cas Type and Features
getFSGenerator
protected org.apache.uima.cas.impl.FSGenerator getFSGenerator()
- Overrides:
getFSGenerator
in class org.apache.uima.jcas.tcas.Annotation_Type
getTokenNumber
public int getTokenNumber(int addr)
setTokenNumber
public void setTokenNumber(int addr,
int v)
getNormalizedForm
public java.lang.String getNormalizedForm(int addr)
setNormalizedForm
public void setNormalizedForm(int addr,
java.lang.String v)
getPartOfSpeech
public java.lang.String getPartOfSpeech(int addr)
setPartOfSpeech
public void setPartOfSpeech(int addr,
java.lang.String v)
getLemmaEntries
public int getLemmaEntries(int addr)
setLemmaEntries
public void setLemmaEntries(int addr,
int v)