BioNLPSTReader
Synopsis
Reads documents and annotations in the BioNLP-ST 2013 a1/a2 format .
Description
BioNLPSTReader reads text files in the directory specified by textDir as documents, then imports annotations in the corresponding files in the directories specified by a1Dir and a2Dir .
Snippet
<bionlpstreader class="BioNLPSTReader">
<textDir></textDir>
</bionlpstreader>
Mandatory parameters
textDir
Path to the directory containing .txt
files.
Optional parameters
a1Dir
Path to the directory containing .a1
files. If this parameter is not set, then BioNLPSTReader does not read a1
files. This directory must contain one .a1
file for each .txt
file found in textDir .
<a1Dir>/path/to/a1/</a1Dir>
a2Dir
Path to the directory containing .a2
files. If this parameter is not set, then BioNLPSTReader does not read a2
files. This directory must contain one .a2
file for each .txt
file found in textDir .
constantAnnotationFeatures
Constant features to add to each annotation created by this module.
constantDocumentFeatures
Constant features to add to each document created by this module.
constantRelationFeatures
Constant features to add to each relation created by this module.
constantSectionFeatures
Constant features to add to each section created by this module.
constantTupleFeatures
Constant features to add to each tuple created by this module.
schema
Annotation schema against which the annotations are checked. BioNLPSTReader aborts if the annotations do not check. If not set, the annotations are not checked.
<schema>
<text-bound type="Title"/>
<text-bound type="Paragraph"/>
<text-bound type="Microorganism"/>
<text-bound type="Habitat"/>
<text-bound type="Phenotype"/>
<text-bound type="Geographical"/>
<relation type="Lives_In">
<roles>Microorganism,Location</roles>
<mandatory-arguments>Microorganism,Location</mandatory-arguments>
<argument-types role="Microorganism">Microorganism</argument-types>
<argument-types role="Location">Habitat,Geographical,Microorganism</argument-types>
</relation>
<relation type="Exhibits">
<roles>Microorganism,Property</roles>
<mandatory-arguments>Microorganism,Property</mandatory-arguments>
<argument-types role="Microorganism">Microorganism</argument-types>
<argument-types role="Property">Phenotype </argument-types>
</relation>
</schema>
charset
Character encoding of all imported files.
<charset>UTF-8</charset>
equivalenceItemPrefix
Prefix of the role of arguments that represent group elements.
<equivalenceItemPrefix>item</equivalenceItemPrefix>
equivalenceRelation
Name of the relation whose tuples represent equivalences.
<equivalenceRelation>equiv</equivalenceRelation>
eventKind
Kind value for event annotations.
<eventKind>event</eventKind>
fragmentCountFeature
Feature where to store the number of merged fragments. This feature is only set if textBoundAsAnnotations is true
.
<fragmentCountFeature>fragments</fragmentCountFeature>
idFeature
Feature where to store the annotation identifier.
<idFeature>id</idFeature>
kindFeature
Feature of relations contatining the annotation kind.
<kindFeature>kind</kindFeature>
relationKind
Kind value for relation annotations.
<relationKind>relation</relationKind>
section
Name of the unique section contating all the text.
<section>text</section>
textBoundAsAnnotations
If true
, BioNLPSTReader imports text-bound annotations as annotations instead of tuples. Multiple fragments text-bound annotations are merged.
<textBoundAsAnnotations/>
textBoundFragmentRolePrefix
Prefix of the role of arguments that represent text-bound fragments.
<textBoundFragmentRolePrefix>frag</textBoundFragmentRolePrefix>
textKind
Kind value for text annotations.
<textKind>text-bound</textKind>
triggerRole
Role of the argument that represent an event trigger.
typeFeature
Feature where to store the type of the annotation.
<typeFeature>type</typeFeature>
Deprecated parameters
equivalenceRelationName
Deprecated alias for equivalenceRelation .
fragmentCountFeatureName
Deprecated alias for fragmentCountFeature .
idFeatureName
Deprecated alias for idFeature .
kindFeatureName
Deprecated alias for kindFeature .
sectionName
Deprecated alias for section .
typeFeatureName
Deprecated alias for typeFeature .