added support of entity aliases
[pnews.git] / war / src / main / java / pnews / NER.java
index 2055cf1..5e7ce29 100644 (file)
@@ -33,7 +33,7 @@ public class NER {
                 for (Triple<String, Integer, Integer> t: triples) {
                         w = str.substring(t.second, t.third);
                         if (!config.isBlacklistedEntity(w) && !entities.contains(w))
-                                entities.add(w);
+                                entities.add(config.getEntityAlias(w));
                 }
                 
                 LOG.exiting(CLASS_NAME, FUNCTION_NAME, entities);