Nicolas Garneau commited on
Commit
c5bdbf8
·
1 Parent(s): 390b385

New set of queries

Browse files
P101.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P103.jsonl → P103.jsonl RENAMED
File without changes
queries/P1037.jsonl → P1037.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P108.jsonl → P108.jsonl RENAMED
File without changes
P1303.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P1308.jsonl → P1308.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P136.jsonl → P136.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P138.jsonl → P138.jsonl RENAMED
File without changes
queries/P140.jsonl → P140.jsonl RENAMED
File without changes
P1412.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P159.jsonl → P159.jsonl RENAMED
File without changes
P166.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P19.jsonl → P19.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
P190.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P20.jsonl → P20.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P210.jsonl → P210.jsonl RENAMED
File without changes
queries/P264.jsonl → P264.jsonl RENAMED
File without changes
P27.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P286.jsonl → P286.jsonl RENAMED
File without changes
queries/P30.jsonl → P30.jsonl RENAMED
File without changes
queries/P36.jsonl → P36.jsonl RENAMED
File without changes
queries/P364.jsonl → P364.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P39.jsonl → P39.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
queries/P449.jsonl → P449.jsonl RENAMED
File without changes
queries/P451.jsonl → P451.jsonl RENAMED
File without changes
queries/P47.jsonl → P47.jsonl RENAMED
File without changes
queries/P488.jsonl → P488.jsonl RENAMED
File without changes
P495.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
P530.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P54.jsonl → P54.jsonl RENAMED
File without changes
queries/P551.jsonl → P551.jsonl RENAMED
File without changes
queries/P6.jsonl → P6.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
P69.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
P740.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
queries/P937.jsonl → P937.jsonl RENAMED
The diff for this file is too large to render. See raw diff
 
aliases.json DELETED
The diff for this file is too large to render. See raw diff
 
fm_queries.py DELETED
@@ -1,75 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Fact Mutability Queries Data."""
16
-
17
- import os
18
- import datasets
19
-
20
-
21
- MAIN_CITATION = """ TBD """
22
-
23
- _DESCRIPTION = """Fact Mutability Queries Data."""
24
- MAIN_PATH = 'https://huggingface.co/datasets/coastalcph/fm_queries/tree/main'
25
-
26
-
27
- class FMQueriesConfig(datasets.BuilderConfig):
28
- """BuilderConfig """
29
-
30
- def __init__(
31
- self,
32
- data_url,
33
- **kwargs,
34
- ):
35
- """BuilderConfig for FMQueries.
36
-
37
- Args:
38
- data_url: `string`, url to download the zip file from
39
- **kwargs: keyword arguments forwarded to super.
40
- """
41
- super(FMQueriesConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
42
- self.data_url = data_url
43
-
44
-
45
- class FMQueries(datasets.GeneratorBasedBuilder):
46
- """FMQueries: Data to probe LMs on fact mutability. Version 1.0"""
47
-
48
- BUILDER_CONFIGS = [
49
- datasets.BuilderConfig(
50
- name="queries",
51
- data_dir=os.path.join(MAIN_PATH, "queries"),
52
- ),
53
- FMQueriesConfig(
54
- name="templates",
55
- data_url=os.path.join(MAIN_PATH, "templates.json"),
56
- ),
57
- FMQueriesConfig(
58
- name="aliases",
59
- data_url=os.path.join(MAIN_PATH, "aliases.json"),
60
- ),
61
- ]
62
-
63
- def _info(self):
64
- features = {
65
- "id": datasets.Value("string"),
66
- "query": datasets.Value("string"),
67
- "relation": datasets.Value("string"),
68
- "type": datasets.Value("string")
69
- }
70
- return datasets.DatasetInfo(
71
- description=self.config.description,
72
- features=datasets.Features(features),
73
- homepage="https://huggingface.co/datasets/coastalcph/fm_queries",
74
- citation=MAIN_CITATION,
75
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
queries/P495.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
queries/P740.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
templates.json DELETED
@@ -1,352 +0,0 @@
1
- {
2
- "P190": {
3
- "templates": [
4
- "[X] is a twin city of [Y].",
5
- "[X] is twinned with [Y].",
6
- "[X] is twinned with its partner municipality, [Y].",
7
- "[X] has established a twin municipality partnership with [Y].",
8
- "[X] maintains a twin city connection with [Y]."
9
- ],
10
- "description": "twin towns, sister cities, twinned municipalities and other localities that have a partnership or cooperative agreement, either legally or informally acknowledged by their governments"
11
- },
12
- "P1303": {
13
- "templates": [
14
- "[X] plays the instrument the [Y].",
15
- "[X] is skilled at playing the [Y].",
16
- "[X] is a master at playing the [Y].",
17
- "[X] excels at playing the [Y].",
18
- "[X] is a virtuoso on the [Y]."
19
- ],
20
- "description": "musical instrument that a person plays"
21
- },
22
- "P1412": {
23
- "templates": [
24
- "[X] used to communicate in [Y].",
25
- "The language that [X] communicates in is [Y].",
26
- "The language that [X] would normally communicate in is [Y].",
27
- "The language that [X] speaks is [Y].",
28
- "The language that [X] speaks and writes is [Y]."
29
- ],
30
- "description": "language(s) that a person speaks or writes, including the native language(s)"
31
- },
32
- "P27": {
33
- "templates": [
34
- "[X] is a citizen of [Y].",
35
- "[X], a citizen of [Y].",
36
- "[X], who is a citizen of [Y].",
37
- "[X] holds a citizenship of [Y].",
38
- "[X] has a citizenship of [Y]."
39
- ],
40
- "description": "the object is a country that recognizes the subject as its citizen"
41
- },
42
- "P530": {
43
- "templates": [
44
- "[X] maintains diplomatic relations with [Y].",
45
- "[X] ties diplomatic relations with [Y].",
46
- "[X] has diplomatic relations with [Y].",
47
- "[X], which has diplomatic relations with [Y].",
48
- "[X] has an official diplomatic relationship with [Y]."
49
- ],
50
- "description": "diplomatic relations of the country"
51
- },
52
- "P101": {
53
- "templates": [
54
- "[X] works in the field of [Y].",
55
- "[X] specializes in [Y].",
56
- "The expertise of [X] is [Y].",
57
- "The domain of work of [X] is [Y].",
58
- "[X]'s area of work is [Y]."
59
- ],
60
- "description": "specialization of a person or organization; see P106 for the occupation"
61
- },
62
- "P69": {
63
- "templates": [
64
- "[X] was educated at [Y].",
65
- "[X] attended the educational establishment [Y].",
66
- "[X] completed their studies at [Y].",
67
- "[X] earned an educational degree from [Y].",
68
- "[X] acquired their education at [Y]."
69
- ],
70
- "description": "educational institution attended by subject"
71
- },
72
- "P166": {
73
- "templates": [
74
- "[X] was awarded the [Y].",
75
- "[X] earned the award of [Y].",
76
- "[X] was recognized with the distinction [Y].",
77
- "[X] was bestowed with the [Y].",
78
- "[X] was given the award [Y]."
79
- ],
80
- "description": "award or recognition received by a person, organisation or creative work"
81
- },
82
- "P740": {
83
- "templates": [
84
- "[X] was founded in the location of [Y].",
85
- "[X] was created in the location of [Y].",
86
- "[X] was formed in the location of [Y].",
87
- "[X] was established in the location of [Y].",
88
- "[X] originated in the location of [Y]."
89
- ],
90
- "description": "location where a group or organization was formed"
91
- },
92
- "P103": {
93
- "templates": [
94
- "The native language of [X] is [Y].",
95
- "The mother tongue of [X] is [Y].",
96
- "[X] natively speaks [Y].",
97
- "The primary language of [X] is [Y].",
98
- "[X] is a native speaker of [Y]."
99
- ],
100
- "description": "language or languages a person has learned from early childhood"
101
- },
102
- "P19": {
103
- "templates": [
104
- "[X] was born in the location of [Y].",
105
- "[X] is originally from [Y].",
106
- "[X] is native to [Y].",
107
- "[X] originated in the location of [Y].",
108
- "[X] entered this world in the location of [Y]."
109
- ],
110
- "description": "most specific known (e.g. city instead of country, or hospital instead of city) birth location of a person, animal or fictional character"
111
- },
112
- "P20": {
113
- "templates": [
114
- "[X] died in the location of [Y].",
115
- "[X] passed away in the location of [Y].",
116
- "[X] lost their life at [Y].",
117
- "[X]'s life ended in the location of [Y].",
118
- "[X] succumbed at [Y]."
119
- ],
120
- "description": "most specific known (e.g. city instead of country, or hospital instead of city) death location of a person, animal or fictional character"
121
- },
122
- "P30": {
123
- "templates": [
124
- "[X] is located in the continent [Y].",
125
- "[X] can be found in the continent of [Y].",
126
- "[X] is situated within the continent of [Y].",
127
- "[X] belongs to the continent of [Y].",
128
- "[X] lies on the continent of [Y]."
129
- ],
130
- "description": "continent of which the subject is a part"
131
- },
132
- "P36": {
133
- "templates": [
134
- "The capital city of [X] is [Y].",
135
- "[X]'s capital city is [Y].",
136
- "[X], whose the capital city is [Y].",
137
- "[X] is governed from the capital city of [Y].",
138
- "[X] with capital city in [Y]."
139
- ],
140
- "description": "primary city of a country, state or other type of administrative territorial entity"
141
- },
142
- "P159": {
143
- "templates": [
144
- "The headquarters of [X] is in [Y] .",
145
- "[X]'s main office is located in [Y].",
146
- "The central office for [X] is situated in [Y].",
147
- "The headquarters of [X] is located in [Y] .",
148
- "[X] has its headquarters in [Y]."
149
- ],
150
- "description": "specific location where an organization's headquarters is or has been situated. Inverse property of \"occupant\" (P466)."
151
- },
152
- "P449": {
153
- "templates": [
154
- "[X] premiered on [Y].",
155
- "[X] was originally aired on [Y].",
156
- "[X] had its inaugural broadcast on [Y].",
157
- "[X] was first broadcast on [Y].",
158
- "[X] first aired on [Y]."
159
- ],
160
- "description": "network(s) the radio or television show was originally aired on, including"
161
- },
162
- "P364": {
163
- "templates": [
164
- "The original language of work of [X] is [Y].",
165
- "[X] was originally written in [Y].",
166
- "The language of [X] is [Y].",
167
- "[X] was originally drafted in the language of [Y].",
168
- "[X] was originally crafted in the language of [Y]."
169
- ],
170
- "description": "language in which a film or a performance work was originally created. Deprecated for written works; use P407 (\"language of work or name\") instead."
171
- },
172
- "P495": {
173
- "templates": [
174
- "[X] was created in the country named [Y].",
175
- "[X] originated in the country named [Y].",
176
- "[X] was developed in the country named [Y].",
177
- "[X] comes from the country named [Y].",
178
- "[X] was developed in the country named [Y]."
179
- ],
180
- "description": "country of origin of this item (creative work, food, phrase, product, etc.)"
181
- },
182
- "P140": {
183
- "templates": [
184
- "[X]'s religious affiliation is [Y].",
185
- "[X] adheres to the belief system of [Y].",
186
- "[X] follows the faith of [Y].",
187
- "[X] is affiliated with the religious tradition of [Y].",
188
- "[X] is a follower of [Y]."
189
- ],
190
- "description": "religion of a person, organization or religious building, or associated with this subject"
191
- },
192
- "P138": {
193
- "templates": [
194
- "[X] is named after [Y].",
195
- "[X]'s name is inspired by [Y].",
196
- "[X] derives its name from [Y].",
197
- "[X] is named in honor of [Y].",
198
- "[X] is called after [Y]."
199
- ],
200
- "description": "entity or event that inspired the subject's name, or namesake (in at least one language)"
201
- },
202
- "P47": {
203
- "templates": [
204
- "[X] shares border with [Y].",
205
- "[X] shares a common border with [Y].",
206
- "[X] borders with [Y].",
207
- "[X] is on the border of [Y].",
208
- "[X] is neighboring [Y]."
209
- ],
210
- "description": "countries or administrative subdivisions, of equal level, that this item borders, either by land or water"
211
- },
212
- "P136": {
213
- "templates": [
214
- "The creative work's genre of [X] is [Y].",
215
- "[X] falls into the artistic genre of [Y].",
216
- "The artistic genre of [X] is [Y].",
217
- "The creative piece [X] belongs to the genre of [Y].",
218
- "For [X], the artistic genre can be described as [Y]."
219
- ],
220
- "description": "creative work's genre or an artist's field of work (P101). Use main subject (P921) to relate creative works to their topic"
221
- },
222
- "P937": {
223
- "templates": [
224
- "[X] used to work in the location of [Y].",
225
- "[X]'s work location was in [Y].",
226
- "[X] found employment located in [Y].",
227
- "[X] was employed in the location of [Y].",
228
- "[X] took up work located in [Y]."
229
- ],
230
- "description": "location where persons were active"
231
- },
232
- "P108": {
233
- "templates": [
234
- "[X] works for [Y].",
235
- "[X] is employed by [Y].",
236
- "[X] is on the payroll of [Y].",
237
- "[X] works at [Y].",
238
- "[X] holds a position at [Y]."
239
- ],
240
- "description": "person or organization for which the subject works or worked"
241
- },
242
- "P488": {
243
- "templates": [
244
- "The presiding member of [X] is [Y].",
245
- "The chairperson of [X] is [Y].",
246
- "The person who serves as the head of [X] is [Y].",
247
- "The leader of [X] is [Y].",
248
- "The person who presides over [X] is [Y]."
249
- ],
250
- "description": "presiding member of an organization, group or body "
251
- },
252
- "P286": {
253
- "templates": [
254
- "The head coach of [X] is [Y].",
255
- "The chief coach of [X] is [Y].",
256
- "The person who serves as the head coach for [X] is [Y].",
257
- "The person who assumes the role of head coach for [X] is [Y].",
258
- "The person who holds the position of head coach of [X] is [Y]."
259
- ],
260
- "description": "on-field manager or head coach of a sports club (not to be confused with a general manager P505, which is not a coaching position) or person"
261
- },
262
- "P6": {
263
- "templates": [
264
- "The person at the head of the government of [X] is [Y].",
265
- "The person known as the leader of the government of [X] is [Y].",
266
- "The person in charge of the government of [X] is [Y].",
267
- "The person who presides over the government of [X] is [Y].",
268
- "The person who governs [X] is [Y]."
269
- ],
270
- "description": "head of the executive power of this town, city, municipality, state, country, or other governmental body"
271
- },
272
- "P39": {
273
- "templates": [
274
- "[X] has the position of [Y].",
275
- "[X] occupies the role of [Y].",
276
- "[X] holds the position of [Y].",
277
- "[X] works as a [Y].",
278
- "[X] has the job title of [Y]."
279
- ],
280
- "description": "subject currently or formerly holds the object position or public office"
281
- },
282
- "P54": {
283
- "templates": [
284
- "[X] plays with [Y].",
285
- "[X] is a sport team member of [Y].",
286
- "[X] is part of the sports roster for [Y].",
287
- "[X] competes in sports for [Y].",
288
- "[X] is a team member representing [Y]."
289
- ],
290
- "description": "sports teams or clubs that the subject currently represents or formerly represented"
291
- },
292
- "P264": {
293
- "templates": [
294
- "[X] is represented by the music label [Y].",
295
- "[X]'s record label is [Y].",
296
- "[X]'s music label is [Y].",
297
- "[X] as their record label represented by [Y].",
298
- "[X] has signed with as their record label [Y]."
299
- ],
300
- "description": "brand and trademark associated with the marketing of subject music recordings and music videos"
301
- },
302
- "P551": {
303
- "templates": [
304
- "[X] place of residence is located in [Y].",
305
- "[X] resides in [Y].",
306
- "[X] makes its residence in [Y].",
307
- "[X] takes up residence in [Y].",
308
- "[X] lives in [Y]."
309
- ],
310
- "description": "the place where the person is or has been, resident"
311
- },
312
- "P451": {
313
- "templates": [
314
- "[X] is in a relationship with [Y].",
315
- "[X] is romantically involved with [Y].",
316
- "[X] is dating with [Y].",
317
- "[X] is in a romantic relationship with [Y].",
318
- "[X] is romantically intertwined with [Y]."
319
- ],
320
- "description": "someone with whom the person is in a relationship without being married. Use 'spouse' (P26) for married couples"
321
- },
322
- "P1308": {
323
- "templates": [
324
- "[X] is held by [Y].",
325
- "[X] is under the control of the person named [Y].",
326
- "[X] is subject to the command of the person named [Y].",
327
- "[X] complies with the instructions of the person named [Y].",
328
- "[X] is subordinate to the person named [Y]."
329
- ],
330
- "description": "persons who hold and/or held an office or noble title"
331
- },
332
- "P210": {
333
- "templates": [
334
- "The party chief of [X] is [Y].",
335
- "[X]'s party is headed by [Y].",
336
- "The chief representative of [X] is [Y].",
337
- "The chief ambassador of [X] is [Y].",
338
- "The leading advocate for [X] is [Y]."
339
- ],
340
- "description": "chief representative of a party in an institution or an administrative unit (use qualifier to identify the party)"
341
- },
342
- "P1037": {
343
- "templates": [
344
- "The director of [X] is [Y].",
345
- "The manager of [X] is [Y].",
346
- "[X] is managed by the person named [Y].",
347
- "[X] is lead by the person named [Y].",
348
- "The position of manager for [X] is held by [Y]."
349
- ],
350
- "description": "person who manages any kind of group"
351
- }
352
- }