* @return
*/
private static BaseToken adaptToBaseToken(org.apache.ctakes.typesystem.type.syntax.BaseToken obj) throws Exception {
if (obj instanceof WordToken) {
WordToken wta = (WordToken) obj;
return new WordTokenAdapter(wta);
} else if (obj instanceof NumToken) {
NumToken nta = (NumToken) obj;
if (nta.getNumType() == TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER) {
return new IntegerTokenAdapter(nta);
}