【问题标题】:GATE manual annotation : more features for one typeGATE 手动注释:一种类型的更多功能
【发布时间】:2018-07-23 08:35:05
【问题描述】:

我正在对 GATE 中的语料库进行手动注释。所以我在 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>

结果注释如下所示:

但我想为一种注释类型(元素)注释更多特征(值)。这可能吗?不能再声明一个值,因为 GATE 只会让我选择一个特征值:

【问题讨论】:

    标签: xml gate


    【解决方案1】:

    我认为您需要在架构中添加第二个属性:

    <?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>
    

    GATE 截图:

    来自 GATE 文档的其他信息:

    【讨论】:

      猜你喜欢
      • 2020-08-03
      • 1970-01-01
      • 2017-10-02
      • 2017-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多