Skip to content

Commit

Permalink
Output sentence IDs too
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Feb 15, 2023
1 parent d1815f9 commit 05d00dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.52</version>
<version>1.0.53</version>
<description>The MedTagger biomedical information extraction pipeline</description>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public Schema calculateOutputSchema(Schema schema) {
fields.add(Schema.Field.of("status", Schema.FieldType.STRING));
fields.add(Schema.Field.of("offset", Schema.FieldType.INT32));
fields.add(Schema.Field.of("semgroups", Schema.FieldType.STRING).withNullable(true));
fields.add(Schema.Field.of("sentid", Schema.FieldType.STRING).withNullable(true));
this.outputSchema = Schema.of(fields.toArray(new Schema.Field[0]));
return this.outputSchema;
}
Expand Down Expand Up @@ -287,6 +288,7 @@ private static List<Object> toRowObjects(
ret.add(cm.getStatus());
ret.add(cm.getBegin());
ret.add(cm.getSemGroup());
ret.add(cm.getSentence().getId());
return ret;
}
}
Expand Down

0 comments on commit 05d00dd

Please sign in to comment.