Skip to content

Commit

Permalink
Replaced log.info calls in OpenNLPPoSTagger to log.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
willjrogers committed Mar 30, 2022
1 parent 8854aa3 commit 4bb99ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/gov/nih/nlm/nls/metamap/lite/OpenNLPPoSTagger.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public void addPartOfSpeech(List<ERToken> tokenList) {
textList.add(token.getText());
}
}
logger.info("OpenNLPPosTagger:addPartOfSpeech: textList: ", textList);
logger.info("OpenNLPPosTagger:addPartOfSpeech: posTagger: ", this.posTagger);
logger.debug("OpenNLPPosTagger:addPartOfSpeech: textList: ", textList);
logger.debug("OpenNLPPosTagger:addPartOfSpeech: posTagger: ", this.posTagger);
if (this.posTagger != null) {
String tags[] = this.posTagger.tag(textList.toArray(new String[0]));
int i = 0;
Expand Down Expand Up @@ -299,10 +299,10 @@ public static void addAbbreviationsToEntitySet(BioCPassage passage, Set<BioCAnno
for (Entity entity: bioCEntity.getEntitySet()) {
String key = bioCEntity.getText();
if (abbrMap.containsKey(key)) {
logger.info("text -> " + key + " -> " + abbrMap.get(key));
logger.debug("text -> " + key + " -> " + abbrMap.get(key));
if (shortFormMap.containsKey(abbrMap.get(key))) {
for (BioCAnnotation abbrAnnot: shortFormMap.get(abbrMap.get(bioCEntity.getText()))) {
logger.info("adding " + abbrAnnot.getText() + " " + abbrAnnot.getLocations());
logger.debug("adding " + abbrAnnot.getText() + " " + abbrAnnot.getLocations());
Entity newEntity = new Entity(entity);
newEntity.setText(abbrAnnot.getText());
BioCLocation location = abbrAnnot.getLocations().get(0);
Expand All @@ -311,12 +311,12 @@ public static void addAbbreviationsToEntitySet(BioCPassage passage, Set<BioCAnno
newBioCEntity.setText(abbrMap.get(key));
newBioCEntity.addLocation(location);
newBioCEntity.addEntity(newEntity);
logger.info("BioCEntity: " + newBioCEntity);
logger.debug("BioCEntity: " + newBioCEntity);
}
}
}
} /* entity */
logger.info("adding BioCEntity: " + newBioCEntity);
logger.debug("adding BioCEntity: " + newBioCEntity);
if (newBioCEntity.getEntitySet().size() > 0) {
abbrevEntities.add(newBioCEntity);
}
Expand Down

0 comments on commit 4bb99ed

Please sign in to comment.