Skip to content

Commit

Permalink
Add custom entities specific to my research around concepts and entit…
Browse files Browse the repository at this point in the history
…ies in academic papers.
  • Loading branch information
aoldoni committed Feb 22, 2017
1 parent 80cbe15 commit ae67822
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ else if(ner.equalsIgnoreCase("Org"))
return "ORGANIZATION";
else if(ner.equalsIgnoreCase("Other"))
return "OTHER";
else if(ner.equalsIgnoreCase("Concept"))
return "CONCEPT";
else if(ner.equalsIgnoreCase("Entity"))
return "ENTITY";
else if(ner.equalsIgnoreCase("Paper"))
return "PAPER";
throw new RuntimeException("Cannot normalize ner tag " + ner);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public RothEntityExtractor() {
entityTagForNer.put("person", "PEOPLE");
entityTagForNer.put("organization", "ORGANIZATION");
entityTagForNer.put("location", "LOCATION");

entityTagForNer.put("concept", "CONCEPT");
entityTagForNer.put("entity", "ENTITY");
entityTagForNer.put("paper", "PAPER");
}

@Override
Expand Down

0 comments on commit ae67822

Please sign in to comment.