Skip to content

Commit

Permalink
Bugfix: define inputcolumn source tag metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Nov 18, 2024
1 parent be085ec commit 25c54eb
Show file tree
Hide file tree
Showing 2 changed files with 20 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.81</version>
<version>1.0.82</version>
<description>The MedTagger biomedical information extraction pipeline</description>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.checkerframework.checker.nullness.qual.UnknownKeyFor;
import org.ohnlp.backbone.api.annotations.ComponentDescription;
import org.ohnlp.backbone.api.annotations.ConfigurationProperty;
import org.ohnlp.backbone.api.annotations.InputColumnProperty;
import org.ohnlp.backbone.api.components.LoadFromMany;
import org.ohnlp.backbone.api.config.InputColumn;
import org.ohnlp.backbone.api.exceptions.ComponentInitializationException;
Expand Down Expand Up @@ -55,30 +56,45 @@ public class MedtatorOutputTransform extends LoadFromMany {
path = "note_id_raw_col",
desc = "The input column to use containing the note identifier from the raw text collection"
)
@InputColumnProperty(
sourceTags = {"Raw Text"}
)
private InputColumn note_identifer_raw_col;

@ConfigurationProperty(
path = "note_text_raw_col",
desc = "The input column to use containing the note text from the annotated entities"
)
@InputColumnProperty(
sourceTags = {"Entity Annotations"}
)
private InputColumn note_text_raw_col;

@ConfigurationProperty(
path = "note_id_ann_col",
desc = "The input column to use containing the note identifier from the annotated entities"
)
@InputColumnProperty(
sourceTags = {"Entity Annotations"}
)
private InputColumn note_identifer_ann_col;

@ConfigurationProperty(
path = "note_ann_start_col",
desc = "The input column to use containing the annotation start index from the annotated entities"
)
@InputColumnProperty(
sourceTags = {"Entity Annotations"}
)
private InputColumn ann_start_ann_col;

@ConfigurationProperty(
path = "note_ann_end_col",
desc = "The input column to use containing the annotation end index from the annotated entities"
)
@InputColumnProperty(
sourceTags = {"Entity Annotations"}
)
private InputColumn ann_end_ann_col;

@ConfigurationProperty(
Expand All @@ -87,6 +103,9 @@ public class MedtatorOutputTransform extends LoadFromMany {
"Defaults to \"ConceptMention\" if left blank",
required = false
)
@InputColumnProperty(
sourceTags = {"Entity Annotations"}
)
private InputColumn ann_type_col;

@Override
Expand Down

0 comments on commit 25c54eb

Please sign in to comment.