-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuric-template.xml
61 lines (61 loc) · 2.09 KB
/
huric-template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<huricExample id="{{ id }}">
<commands>
<command>
<sentence>{{ prompt }}</sentence>
<tokens>
{% for token in tokens %}
<token id="{{ token.id }}" lemma="{{ token.lemma }}" pos="{{ token.pos }}" surface="{{ token.surface }}"/>
{% endfor %}
</tokens>
<dependencies>
{% for dep in dependencies %}
<dep from="{{ dep.from }}" to="{{ dep.to }}" type="{{ dep.type }}"/>
{% endfor %}
</dependencies>
<semantics>
<frames>
{% for frame in semantics_frames %}
<frame name="{% frame.name %}">
<lexicalUnit>
<token id="{% frame.token_id %}"/>
</lexicalUnit>
<frameElements>
{% for frame_element in frame.elements %}
<frameElement type="{{ frame_element.type }}" semanticHead="{{ frame_element.semantic_head_id }}">
{% for token_id in frame_element.tokens_id %}
<token id="{{ token_id }}"/>
{% endfor %}
</frameElement>
{% endfor %}
</frameElements>
</frame>
{% endfor %}
</frames>
</semantics>
</command>
</commands>
<semanticMap>
<entities>
{% for entity in entities %}
<entity atom="{{ entity.atom }}" type="{{ entity.type }}">
<attributes>
{% for attribute in entity.attributes %}
<attribute name="{{ attribute.name }}">
<value>{{ attribute.value }}</value>
</attribute>
{% endfor %}
</attributes>
{% if entity.coordinate %}
<coordinate angle="{{ entity.coordinate.angle }}" x="{{ entity.coordinate.x }}" y="{{ entity.coordinate.y }}" z="{{ entity.coordinate.z }}"/>
{% endif %}
</entity>
{% endfor %}
</entities>
</semanticMap>
<lexicalGroundings>
{% for lexical_grounding in lexical_groundings %}
<lexicalGrounding atom="{{ lexical_grounding.atom }}" tokenId="{{ lexical_grounding.tokenId }}"/>
{% endfor %}
</lexicalGroundings>
</huricExample>