xml - GATE 手动注释:一种类型的更多功能
问题描述
我正在对 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 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 文档的附加信息:
推荐阅读
- java - Spring Boot mongo审计@version问题
- java - 如何以这种方式匹配字符串?
- javascript - 为什么不能在对象键之后使用 Javascript 扩展运算符?
- java - 如何让BitSet不被简化[JAVA]
- javascript - 如何将 fetch 放入 Promise 中?
- assembly - 如何在 Mips 中将 int 写入字符串
- java - 我的列表轮换出了什么问题?
- python - 将主题模型存储在列表中,同时考虑最大出现次数
- dart - Can´t show snackbar in flutter login
- list - 如何从链表末尾删除第 N 个节点?