me.set(CoreAnnotations.AnswerAnnotation.class, "TIME");
}
} else if (me.getString(CoreAnnotations.PartOfSpeechAnnotation.class).equals("JJ")) {
if ((next.word() != null && MONTH_PATTERN.matcher(next.word()).matches()) ||
next.word() != null && next.word().equalsIgnoreCase("of") &&
next2.word() != null && MONTH_PATTERN.matcher(next2.word()).matches()) {
me.set(CoreAnnotations.AnswerAnnotation.class, "DATE");
} else if (ORDINAL_PATTERN.matcher(me.word()).matches()) {
// don't do other tags: don't want 'second' as noun, or 'first' as adverb
// introducing reasons
me.set(CoreAnnotations.AnswerAnnotation.class, "ORDINAL");