List> out = classifier.classify(fileContents);
for (List sentence : out) {
for (CoreLabel word : sentence) {
<<<<<<< HEAD
//System.out.println(word.word()+"\t" + word.get(AnswerAnnotation.class));
=======
// System.out.println(word.word()+"\t" + word.get(AnswerAnnotation.class));
>>>>>>> b4f42d741606a24592359a5af4321290f7eaed0a
if (!word.get(AnswerAnnotation.class).equals("O")) {
eventSet.addEvent(new Event(word.word(), this));
// System.out.println(word.word()+"\t" + word.get(AnswerAnnotation.class)); // This can be removed. Just shows each word being analyzed. |