Skip to content

Commit

Permalink
Fix section annotator, remove strict req on : being present
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Oct 7, 2024
1 parent c78cd7f commit a857027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.ohnlp.medtagger</groupId>
<artifactId>medtagger</artifactId>
<version>1.0.78</version>
<version>1.0.79</version>
<description>The MedTagger biomedical information extraction pipeline</description>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private Segment SecIndicator(Sentence sen, JCas jcas) {
String str=sen.getCoveredText();
Segment cSeg=null;
int pos=str.indexOf(":");
if(pos < 0 || pos >=100) return null;
// if(pos < 0 || pos >=100) return null;
String secStr=str.substring(0,pos);
if(sectionMap.containsKey(lvg.getNorm(secStr))){
sen.removeFromIndexes(jcas);
Expand Down

0 comments on commit a857027

Please sign in to comment.