Commit e9591325 authored by jcorvi's avatar jcorvi

add original lemma and lower case lemma

parent fc7a5dbe
......@@ -19,9 +19,11 @@ Rule: label_mapping
List<Annotation> tokensList = new ArrayList<Annotation>(tokens);
Collections.sort(tokensList, new gate.util.OffsetComparator());
String lemma = "";
String original_lemma = "";
for (Annotation token : tokensList) {
lemma = lemma + " " + token.getFeatures().get("root").toString();
original_lemma = original_lemma + " " + token.getFeatures().get("original_root").toString();
}
lookupFeatures.put("original_lemma",lemma.trim());
lookupFeatures.put("original_lemma",original_lemma.trim());
lookupFeatures.put("lemma",lemma.trim().toLowerCase());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment