Skip to content

Commit 25c54eb

Browse files
committed
Bugfix: define inputcolumn source tag metadata
1 parent be085ec commit 25c54eb

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.ohnlp.medtagger</groupId>
88
<artifactId>medtagger</artifactId>
9-
<version>1.0.81</version>
9+
<version>1.0.82</version>
1010
<description>The MedTagger biomedical information extraction pipeline</description>
1111

1212

src/main/java/org/ohnlp/medtagger/backbone/MedtatorOutputTransform.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.checkerframework.checker.nullness.qual.UnknownKeyFor;
1515
import org.ohnlp.backbone.api.annotations.ComponentDescription;
1616
import org.ohnlp.backbone.api.annotations.ConfigurationProperty;
17+
import org.ohnlp.backbone.api.annotations.InputColumnProperty;
1718
import org.ohnlp.backbone.api.components.LoadFromMany;
1819
import org.ohnlp.backbone.api.config.InputColumn;
1920
import org.ohnlp.backbone.api.exceptions.ComponentInitializationException;
@@ -55,30 +56,45 @@ public class MedtatorOutputTransform extends LoadFromMany {
5556
path = "note_id_raw_col",
5657
desc = "The input column to use containing the note identifier from the raw text collection"
5758
)
59+
@InputColumnProperty(
60+
sourceTags = {"Raw Text"}
61+
)
5862
private InputColumn note_identifer_raw_col;
5963

6064
@ConfigurationProperty(
6165
path = "note_text_raw_col",
6266
desc = "The input column to use containing the note text from the annotated entities"
6367
)
68+
@InputColumnProperty(
69+
sourceTags = {"Entity Annotations"}
70+
)
6471
private InputColumn note_text_raw_col;
6572

6673
@ConfigurationProperty(
6774
path = "note_id_ann_col",
6875
desc = "The input column to use containing the note identifier from the annotated entities"
6976
)
77+
@InputColumnProperty(
78+
sourceTags = {"Entity Annotations"}
79+
)
7080
private InputColumn note_identifer_ann_col;
7181

7282
@ConfigurationProperty(
7383
path = "note_ann_start_col",
7484
desc = "The input column to use containing the annotation start index from the annotated entities"
7585
)
86+
@InputColumnProperty(
87+
sourceTags = {"Entity Annotations"}
88+
)
7689
private InputColumn ann_start_ann_col;
7790

7891
@ConfigurationProperty(
7992
path = "note_ann_end_col",
8093
desc = "The input column to use containing the annotation end index from the annotated entities"
8194
)
95+
@InputColumnProperty(
96+
sourceTags = {"Entity Annotations"}
97+
)
8298
private InputColumn ann_end_ann_col;
8399

84100
@ConfigurationProperty(
@@ -87,6 +103,9 @@ public class MedtatorOutputTransform extends LoadFromMany {
87103
"Defaults to \"ConceptMention\" if left blank",
88104
required = false
89105
)
106+
@InputColumnProperty(
107+
sourceTags = {"Entity Annotations"}
108+
)
90109
private InputColumn ann_type_col;
91110

92111
@Override

0 commit comments

Comments
 (0)