Skip to content

Commit

Permalink
Use base values for note_id to not explicitly typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Feb 18, 2022
1 parent 83aedc2 commit 06b71e9
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.28</version>
<version>1.0.29</version>
<description>The MedTagger biomedical information extraction pipeline</description>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void processElement(@Element Row input, OutputReceiver<Row> output) {
List<Schema.Field> fields = new LinkedList<>(input.getSchema().getFields());
fields.add(Schema.Field.of("nlp_output_json", Schema.FieldType.STRING));
Schema schema = Schema.of(fields.toArray(new Schema.Field[0]));
int id = input.getInt32("note_id");
Object id = input.getBaseValue("note_id");
String text = input.getString(this.textField);
cas.reset();
cas.setDocumentText(text);
Expand Down

0 comments on commit 06b71e9

Please sign in to comment.