Debian Codegraph @

docs/api/wn.constants.rst

raw
1 wn.constants
2 ============
3
4 .. automodule:: wn.constants
5
6 Synset Relations
7 ----------------
8
9 .. data:: SYNSET_RELATIONS
10
11 - ``agent``
12 - ``also``
13 - ``attribute``
14 - ``be_in_state``
15 - ``causes``
16 - ``classified_by``
17 - ``classifies``
18 - ``co_agent_instrument``
19 - ``co_agent_patient``
20 - ``co_agent_result``
21 - ``co_instrument_agent``
22 - ``co_instrument_patient``
23 - ``co_instrument_result``
24 - ``co_patient_agent``
25 - ``co_patient_instrument``
26 - ``co_result_agent``
27 - ``co_result_instrument``
28 - ``co_role``
29 - ``direction``
30 - ``domain_region``
31 - ``domain_topic``
32 - ``exemplifies``
33 - ``entails``
34 - ``eq_synonym``
35 - ``has_domain_region``
36 - ``has_domain_topic``
37 - ``is_exemplified_by``
38 - ``holo_location``
39 - ``holo_member``
40 - ``holo_part``
41 - ``holo_portion``
42 - ``holo_substance``
43 - ``holonym``
44 - ``hypernym``
45 - ``hyponym``
46 - ``in_manner``
47 - ``instance_hypernym``
48 - ``instance_hyponym``
49 - ``instrument``
50 - ``involved``
51 - ``involved_agent``
52 - ``involved_direction``
53 - ``involved_instrument``
54 - ``involved_location``
55 - ``involved_patient``
56 - ``involved_result``
57 - ``involved_source_direction``
58 - ``involved_target_direction``
59 - ``is_caused_by``
60 - ``is_entailed_by``
61 - ``location``
62 - ``manner_of``
63 - ``mero_location``
64 - ``mero_member``
65 - ``mero_part``
66 - ``mero_portion``
67 - ``mero_substance``
68 - ``meronym``
69 - ``similar``
70 - ``other``
71 - ``patient``
72 - ``restricted_by``
73 - ``restricts``
74 - ``result``
75 - ``role``
76 - ``source_direction``
77 - ``state_of``
78 - ``target_direction``
79 - ``subevent``
80 - ``is_subevent_of``
81 - ``antonym``
82 - ``feminine``
83 - ``has_feminine``
84 - ``masculine``
85 - ``has_masculine``
86 - ``young``
87 - ``has_young``
88 - ``diminutive``
89 - ``has_diminutive``
90 - ``augmentative``
91 - ``has_augmentative``
92 - ``anto_gradable``
93 - ``anto_simple``
94 - ``anto_converse``
95 - ``ir_synonym``
96
97
98 Sense Relations
99 ---------------
100
101 .. data:: SENSE_RELATIONS
102
103 - ``antonym``
104 - ``also``
105 - ``participle``
106 - ``pertainym``
107 - ``derivation``
108 - ``domain_topic``
109 - ``has_domain_topic``
110 - ``domain_region``
111 - ``has_domain_region``
112 - ``exemplifies``
113 - ``is_exemplified_by``
114 - ``similar``
115 - ``other``
116 - ``feminine``
117 - ``has_feminine``
118 - ``masculine``
119 - ``has_masculine``
120 - ``young``
121 - ``has_young``
122 - ``diminutive``
123 - ``has_diminutive``
124 - ``augmentative``
125 - ``has_augmentative``
126 - ``anto_gradable``
127 - ``anto_simple``
128 - ``anto_converse``
129 - ``simple_aspect_ip``
130 - ``secondary_aspect_ip``
131 - ``simple_aspect_pi``
132 - ``secondary_aspect_pi``
133
134
135 .. data:: SENSE_SYNSET_RELATIONS
136
137 - ``domain_topic``
138 - ``domain_region``
139 - ``exemplifies``
140 - ``other``
141
142
143 .. data:: REVERSE_RELATIONS
144
145 .. code-block:: python
146
147 {
148 'hypernym': 'hyponym',
149 'hyponym': 'hypernym',
150 'instance_hypernym': 'instance_hyponym',
151 'instance_hyponym': 'instance_hypernym',
152 'antonym': 'antonym',
153 'eq_synonym': 'eq_synonym',
154 'similar': 'similar',
155 'meronym': 'holonym',
156 'holonym': 'meronym',
157 'mero_location': 'holo_location',
158 'holo_location': 'mero_location',
159 'mero_member': 'holo_member',
160 'holo_member': 'mero_member',
161 'mero_part': 'holo_part',
162 'holo_part': 'mero_part',
163 'mero_portion': 'holo_portion',
164 'holo_portion': 'mero_portion',
165 'mero_substance': 'holo_substance',
166 'holo_substance': 'mero_substance',
167 'also': 'also',
168 'state_of': 'be_in_state',
169 'be_in_state': 'state_of',
170 'causes': 'is_caused_by',
171 'is_caused_by': 'causes',
172 'subevent': 'is_subevent_of',
173 'is_subevent_of': 'subevent',
174 'manner_of': 'in_manner',
175 'in_manner': 'manner_of',
176 'attribute': 'attribute',
177 'restricts': 'restricted_by',
178 'restricted_by': 'restricts',
179 'classifies': 'classified_by',
180 'classified_by': 'classifies',
181 'entails': 'is_entailed_by',
182 'is_entailed_by': 'entails',
183 'domain_topic': 'has_domain_topic',
184 'has_domain_topic': 'domain_topic',
185 'domain_region': 'has_domain_region',
186 'has_domain_region': 'domain_region',
187 'exemplifies': 'is_exemplified_by',
188 'is_exemplified_by': 'exemplifies',
189 'role': 'involved',
190 'involved': 'role',
191 'agent': 'involved_agent',
192 'involved_agent': 'agent',
193 'patient': 'involved_patient',
194 'involved_patient': 'patient',
195 'result': 'involved_result',
196 'involved_result': 'result',
197 'instrument': 'involved_instrument',
198 'involved_instrument': 'instrument',
199 'location': 'involved_location',
200 'involved_location': 'location',
201 'direction': 'involved_direction',
202 'involved_direction': 'direction',
203 'target_direction': 'involved_target_direction',
204 'involved_target_direction': 'target_direction',
205 'source_direction': 'involved_source_direction',
206 'involved_source_direction': 'source_direction',
207 'co_role': 'co_role',
208 'co_agent_patient': 'co_patient_agent',
209 'co_patient_agent': 'co_agent_patient',
210 'co_agent_instrument': 'co_instrument_agent',
211 'co_instrument_agent': 'co_agent_instrument',
212 'co_agent_result': 'co_result_agent',
213 'co_result_agent': 'co_agent_result',
214 'co_patient_instrument': 'co_instrument_patient',
215 'co_instrument_patient': 'co_patient_instrument',
216 'co_result_instrument': 'co_instrument_result',
217 'co_instrument_result': 'co_result_instrument',
218 'pertainym': 'pertainym',
219 'derivation': 'derivation',
220 'simple_aspect_ip': 'simple_aspect_pi',
221 'simple_aspect_pi': 'simple_aspect_ip',
222 'secondary_aspect_ip': 'secondary_aspect_pi',
223 'secondary_aspect_pi': 'secondary_aspect_ip',
224 'feminine': 'has_feminine',
225 'has_feminine': 'feminine',
226 'masculine': 'has_masculine',
227 'has_masculine': 'masculine',
228 'young': 'has_young',
229 'has_young': 'young',
230 'diminutive': 'has_diminutive',
231 'has_diminutive': 'diminutive',
232 'augmentative': 'has_augmentative',
233 'has_augmentative': 'augmentative',
234 'anto_gradable': 'anto_gradable',
235 'anto_simple': 'anto_simple',
236 'anto_converse': 'anto_converse',
237 'ir_synonym': 'ir_synonym',
238 }
239
240 .. _parts-of-speech:
241
242 Parts of Speech
243 ---------------
244
245 .. data:: PARTS_OF_SPEECH
246
247 - ``n`` -- Noun
248 - ``v`` -- Verb
249 - ``a`` -- Adjective
250 - ``r`` -- Adverb
251 - ``s`` -- Adjective Satellite
252 - ``t`` -- Phrase
253 - ``c`` -- Conjunction
254 - ``p`` -- Adposition
255 - ``x`` -- Other
256 - ``u`` -- Unknown
257
258 .. autodata:: NOUN
259 .. autodata:: VERB
260 .. autodata:: ADJECTIVE
261 .. data:: ADJ
262
263 Alias of :py:data:`ADJECTIVE`
264
265 .. autodata:: ADJECTIVE_SATELLITE
266 .. data:: ADJ_SAT
267
268 Alias of :py:data:`ADJECTIVE_SATELLITE`
269
270 .. autodata:: PHRASE
271 .. autodata:: CONJUNCTION
272 .. data:: CONJ
273
274 Alias of :py:data:`CONJUNCTION`
275
276 .. autodata:: ADPOSITION
277 .. autodata:: ADP
278
279 Alias of :py:data:`ADPOSITION`
280
281 .. autodata:: OTHER
282 .. autodata:: UNKNOWN
283
284
285 Adjective Positions
286 -------------------
287
288 .. data:: ADJPOSITIONS
289
290 - ``a`` -- Attributive
291 - ``ip`` -- Immediate Postnominal
292 - ``p`` -- Predicative
293
294
295 Lexicographer Files
296 -------------------
297
298 .. data:: LEXICOGRAPHER_FILES
299
300 .. code-block:: python
301
302 {
303 'adj.all': 0,
304 'adj.pert': 1,
305 'adv.all': 2,
306 'noun.Tops': 3,
307 'noun.act': 4,
308 'noun.animal': 5,
309 'noun.artifact': 6,
310 'noun.attribute': 7,
311 'noun.body': 8,
312 'noun.cognition': 9,
313 'noun.communication': 10,
314 'noun.event': 11,
315 'noun.feeling': 12,
316 'noun.food': 13,
317 'noun.group': 14,
318 'noun.location': 15,
319 'noun.motive': 16,
320 'noun.object': 17,
321 'noun.person': 18,
322 'noun.phenomenon': 19,
323 'noun.plant': 20,
324 'noun.possession': 21,
325 'noun.process': 22,
326 'noun.quantity': 23,
327 'noun.relation': 24,
328 'noun.shape': 25,
329 'noun.state': 26,
330 'noun.substance': 27,
331 'noun.time': 28,
332 'verb.body': 29,
333 'verb.change': 30,
334 'verb.cognition': 31,
335 'verb.communication': 32,
336 'verb.competition': 33,
337 'verb.consumption': 34,
338 'verb.contact': 35,
339 'verb.creation': 36,
340 'verb.emotion': 37,
341 'verb.motion': 38,
342 'verb.perception': 39,
343 'verb.possession': 40,
344 'verb.social': 41,
345 'verb.stative': 42,
346 'verb.weather': 43,
347 'adj.ppl': 44,
348 }