Skip to content

Commit

Permalink
Merge branch 'master' of origin
Browse files Browse the repository at this point in the history
  • Loading branch information
J38 authored and Stanford NLP committed Nov 10, 2016
1 parent ebcbddd commit 57f1741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edu/stanford/nlp/pipeline/EntityMentionsAnnotator.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ private static void addAcronyms(Annotation ann, List<CoreMap> mentions) {
// ... and actually are an acronym
if (AcronymMatcher.isAcronym(token.word(), org)) {
// ... and add them.
System.out.println("found ACRONYM ORG");
token.setNER("ORGANIZATION");
CoreMap chunk = ChunkAnnotationUtils.getAnnotatedChunk(tokens,
i, i + 1, totalTokensOffset, null, null, null);
chunk.set(CoreAnnotations.NamedEntityTagAnnotation.class,"ORGANIZATION");
mentions.add(chunk);

}
Expand Down

0 comments on commit 57f1741

Please sign in to comment.