-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.xml
166 lines (164 loc) · 10.1 KB
/
example.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE LexicalResource SYSTEM "http://globalwordnet.github.io/schemas/WN-LMF-1.3.dtd">
<LexicalResource xmlns:dc="http://purl.org/dc/elements/1.1/">
<!-- The first three lines must always be as above -->
<!-- A file may contain multiple WordNets in different languages:
The following information is required:
id: A short name for the resource
label: The full name for the resources
language: Please follow BCP-47, i.e., use a two-letter code if
available else a three-letter code
email: Please give a contact email address
license: The license of your resource (please provide URL)
version: A string identifying this version (preferably follow
major.minor format)
url: A URL for your project homepage
citation: The paper to cite for this resource
Extra properties may be included from Dublin core and in addition
status: The status of the resource, e.g., "valid", "checked", "unchecked"
confidenceScore: A numeric value between 0 and 1 giving the
confidence in the correctness of the element.
-->
<Lexicon id="example-en"
label="Example wordnet (English)"
language="en"
email="[email protected]"
license="https://creativecommons.org/publicdomain/zero/1.0/"
version="1.0"
citation="CILI: the Collaborative Interlingual Index. Francis Bond, Piek Vossen, John P. McCrae and Christiane Fellbaum, Proceedings of the Global WordNet Conference 2016, (2016)."
url="http://globalwordnet.github.io/schemas/"
dc:publisher="Global Wordnet Association">
<!-- The list of lexical entries (words) in your wordnet -->
<LexicalEntry id="w1">
<!-- The part of speech values are as follows:
n: Noun
v: Verb
a: Adjective
r: Adverb
s: Adjective Satellite
z: Multiword expression (inc. phrase, idiom)
c: Conjunction
p: Adposition (Preposition, postposition, etc.)
x: Other (inc. particle, classifier, bound morpheme, determiner)
u: Unknown -->
<Lemma writtenForm="grandfather" partOfSpeech="n"/>
<Sense id="example-en-10161911-n-1" synset="example-en-10161911-n">
</Sense>
</LexicalEntry>
<LexicalEntry id="w2">
<Lemma writtenForm="paternal grandfather" partOfSpeech="n"/>
<Sense id="example-en-1-n-1" synset="example-en-1-n">
<!-- The set of relations between senses is limited to the following
antonym: An opposite and inherently incompatible word
also: See also, a reference of weak meaning
participle: An adjective that is a participle form a verb
pertainym: A relational adjective. Adjectives that are pertainyms are usually defined by such phrases as "of or pertaining to" and do not have antonyms. A pertainym can point to a noun or another pertainym
derivation: A word that is derived from some other word
domain_category: Indicates the category of this word
domain_member_category: Indicates a word involved in this category described by this word
domain_region: Indicates the region of this word
domain_member_region: Indicates a word involved in the region described by this word
exemplifies: Indicates the usage of this word
is_exemplified_by: Indicates a word involved in the usage described by this word
-->
<SenseRelation relType="derivation" target="example-en-10161911-n-1"/>
</Sense>
</LexicalEntry>
<LexicalEntry id="w3">
<Lemma writtenForm="pay" partOfSpeech="v"/>
<!-- Syntactic Behaviour is given as in Princeton WordNet -->
<SyntacticBehaviour subcategorizationFrame="Somebody ----s" id="intransitive"/>
<SyntacticBehaviour subcategorizationFrame="Somebody ----s somebody" id="transitive"/>
</LexicalEntry>
<!-- If a synset is already mapped to the ILI please give the ID here -->
<Synset id="example-en-10161911-n" ili="i90287" partOfSpeech="n"
members="example-en-10161911-n-1 example-en-1-n-1">
<Definition>the father of your father or mother</Definition>
<!-- The set of relations between synsets is limited to the following:
hypernym: A concept with a broader meaning
hyponym: A concept with a narrower meaning
instance_hypernym: The class of objects to which this instance belongs
instance_hyponym: An individual instance of this class
part_holonym: A larger whole that this concept is part of
part_meronym: A part of this concept
member_holonym: A group that this concept is a member of
member_meronym: A member of this concept
substance_holonym: Something where a constituent material is this concept
substance_meronym: A constituent material of this concept
entail: A verb X entails Y if X cannot be done unless Y is, or has been, done.
cause: A verb that causes another
similar: Similar, though not necessarily interchangeable
also: See also, a reference of weak meaning
attribute: A noun for which adjectives express values. The noun weight is an attribute, for which the adjectives light and heavy express values.
domain_category: Indicates the category of this word
domain_member_category: Indicates a word involved in this category described by this word
domain_region: Indicates the region of this word
domain_member_region: Indicates a word involved in the region described by this word
exemplifies: Indicates the usage of this word
is_exemplified_by: Indicates a word involved in the usage described by this word
-->
<SynsetRelation relType="hypernym" target="example-en-10162692-n"/>
</Synset>
<!-- If you wish to define a new concept call the concept "in" (ILI New) -->
<Synset id="example-en-1-n" ili="in" partOfSpeech="n">
<Definition>A father's father; a paternal grandfather</Definition>
<!-- You can include metadata (such as source) at many points -->
<!-- The ILI Definition must be at least 20 characters or five words -->
<ILIDefinition dc:source="https://en.wiktionary.org/wiki/farfar">A father's father; a paternal grandfather</ILIDefinition>
</Synset>
<!-- You must include all targets of relations -->
<Synset id="example-en-10162692-n" ili="i90292" partOfSpeech="n">
</Synset>
</Lexicon>
<Lexicon id="example_sv"
label="Example wordnet (Swedish)"
language="sv"
email="[email protected]"
license="https://creativecommons.org/publicdomain/zero/1.0/"
version="1.0"
citation="CILI: the Collaborative Interlingual Index. Francis Bond, Piek Vossen, John P. McCrae and Christiane Fellbaum, Proceedings of the Global WordNet Conference 2016, (2016)."
url="http://globalwordnet.github.io/schemas/"
dc:publisher="Global Wordnet Association">
<!-- The list of lexical entries (words) in your wordnet -->
<LexicalEntry id="w4">
<Lemma writtenForm="farfar" partOfSpeech="n"/>
<Form writtenForm="farfäder">
<Tag category="penn">NNS</Tag>
</Form>
<!-- Synsets need not be language-specific but senses must be -->
<Sense id="example-sv-2-n-1" synset="example-en-1-n">
<Example dc:source="Europarl Corpus">Jag vill berätta för er att min farfar var svensk beredskapssoldat vid norska gränsen under andra världskriget, ett krig som Sverige stod utanför</Example>
</Sense>
</LexicalEntry>
</Lexicon>
<!-- LexiconExtensions build on top of some external wordnet. The
external lexicon must not be in the same document as the
extension, for technical reasons, and therefore any referenced
LexicalEntry, Sense, or Synset ids must be present as special
"external" entities. This example adds a new sense of "process"
(for a computer process) and a synset. In order to link it to
the external lexicon, the LexicalEntry for "process" and the
hypernym of the introduced synset are external entities. -->
<LexiconExtension id="ewn-cs-example"
label="English WordNet Computer Science Terms (example)"
language="en"
email="[email protected]"
license="https://creativecommons.org/publicdomain/zero/1.0/"
version="1.0">
<Extends id="ewn" version="2020" />
<!-- The ExternalLexicalEntry id should exist in ewn-2020 -->
<ExternalLexicalEntry id="ewn-process-n">
<!-- Add a new sense to the external entry -->
<Sense id="ewn-process-n-20000123" synset="ewn-20000123-n" />
</ExternalLexicalEntry>
<!-- External for "computer program" synset; it is only
introduced so its id can be referenced in the
SynsetRelation below -->
<ExternalSynset id="ewn-06581154-n" />
<!-- Add a new synset -->
<Synset id="ewn-20000123-n" ili="" partOfSpeech="n">
<Definition>a running instance of a computer program</Definition>
<SynsetRelation relType="hypernym" target="ewn-06581154-n" />
</Synset>
</LexiconExtension>
</LexicalResource>