José Villanueva
José Villanueva

Reputation: 37

GATE manual annotation : more features for one type

I'm doing a manual annotation of a corpus in GATE. So I have created my annotation schema in xml:

<element name="extragraphique">
    <complexType>
      <attribute name="kind" use="optional" value="other" >
        <simpleType>
          <restriction base="string">
            <enumeration value="confusion_voyelle"/>
            <enumeration value="confusion_consonne"/>
          </restriction>
        </simpleType>   
      </attribute>
    </complexType>
  </element>
</schema>

The result annotations look like this:

Gate annotation

But I would like to annotate more features (values) for one annotation type (element). Is this possible? Declaring one more value is not an option because GATE will only let me choose one feature value:

Annotation tool

Upvotes: 1

Views: 173

Answers (1)

dedek
dedek

Reputation: 8301

I think you need to add a second attribute to the schema:

<?xml version="1.0"?> 
<schema xmlns="http://www.w3.org/2000/10/XMLSchema">  
  <element name="extragraphique">
    <complexType>
      <attribute name="kind" use="optional" value="other" >
        <simpleType>
          <restriction base="string">
            <enumeration value="confusion_voyelle"/>
            <enumeration value="confusion_consonne"/>
          </restriction>
        </simpleType>   
      </attribute>
      <attribute name="confidence" use="optional" value="other" >
        <simpleType>
          <restriction base="string">
            <enumeration value="low"/>
            <enumeration value="high"/>
          </restriction>
        </simpleType> 
      </attribute>
    </complexType>
  </element>
</schema>

Screenshot form GATE:

GATE screenshot

Additional info from the GATE docs:

Upvotes: 1

Related Questions