fix readme
Browse files- dataset/test.jsonl +0 -11
- dataset/train.jsonl +0 -8
- dataset/valid.jsonl +0 -5
- process.py +1 -0
dataset/test.jsonl
CHANGED
@@ -81,7 +81,6 @@
|
|
81 |
{"relation": "HasA", "head": "plant", "tail": "leave"}
|
82 |
{"relation": "ReceivesAction", "head": "book", "tail": "read"}
|
83 |
{"relation": "CapableOf", "head": "pilot", "tail": "land plane"}
|
84 |
-
{"relation": "NotCapableOf", "head": "person", "tail": "fly"}
|
85 |
{"relation": "HasProperty", "head": "doctor", "tail": "smart"}
|
86 |
{"relation": "HasPrerequisite", "head": "see exhibit", "tail": "go to museum"}
|
87 |
{"relation": "CapableOf", "head": "cup", "tail": "hold liquid"}
|
@@ -93,7 +92,6 @@
|
|
93 |
{"relation": "HasPrerequisite", "head": "see band", "tail": "buy ticket"}
|
94 |
{"relation": "HasA", "head": "car", "tail": "seat"}
|
95 |
{"relation": "CapableOf", "head": "boy", "tail": "date girl"}
|
96 |
-
{"relation": "NotCapableOf", "head": "penguin", "tail": "fly"}
|
97 |
{"relation": "Causes", "head": "read", "tail": "learn"}
|
98 |
{"relation": "Causes", "head": "do housework", "tail": "have clean house"}
|
99 |
{"relation": "UsedFor", "head": "bed", "tail": "have sex"}
|
@@ -283,7 +281,6 @@
|
|
283 |
{"relation": "IsA", "head": "parakeet", "tail": "bird"}
|
284 |
{"relation": "Causes", "head": "have haircut", "tail": "have short hair"}
|
285 |
{"relation": "HasPrerequisite", "head": "go for drive", "tail": "get into car"}
|
286 |
-
{"relation": "NotCapableOf", "head": "fish", "tail": "live out of water"}
|
287 |
{"relation": "CapableOf", "head": "dog", "tail": "be pet"}
|
288 |
{"relation": "AtLocation", "head": "pickle", "tail": "jar"}
|
289 |
{"relation": "AtLocation", "head": "opera singer", "tail": "opera"}
|
@@ -384,9 +381,7 @@
|
|
384 |
{"relation": "AtLocation", "head": "bowl", "tail": "cupboard"}
|
385 |
{"relation": "HasPrerequisite", "head": "contemplate", "tail": "think"}
|
386 |
{"relation": "AtLocation", "head": "coffee cup", "tail": "desk"}
|
387 |
-
{"relation": "NotCapableOf", "head": "dog", "tail": "fly"}
|
388 |
{"relation": "CapableOf", "head": "paint", "tail": "coat wall"}
|
389 |
-
{"relation": "NotCapableOf", "head": "vegetarian", "tail": "eat meat"}
|
390 |
{"relation": "UsedFor", "head": "school", "tail": "learn"}
|
391 |
{"relation": "UsedFor", "head": "wine", "tail": "drink"}
|
392 |
{"relation": "AtLocation", "head": "peanut butter", "tail": "jar"}
|
@@ -465,7 +460,6 @@
|
|
465 |
{"relation": "IsA", "head": "bottle", "tail": "container"}
|
466 |
{"relation": "AtLocation", "head": "slide", "tail": "park"}
|
467 |
{"relation": "HasSubevent", "head": "play game", "tail": "fun"}
|
468 |
-
{"relation": "NotCapableOf", "head": "water and oil", "tail": "mix"}
|
469 |
{"relation": "HasA", "head": "guitar", "tail": "6 string"}
|
470 |
{"relation": "HasPrerequisite", "head": "sleep", "tail": "close eye"}
|
471 |
{"relation": "HasProperty", "head": "basketball", "tail": "round"}
|
@@ -733,7 +727,6 @@
|
|
733 |
{"relation": "NotHasProperty", "head": "work", "tail": "fun"}
|
734 |
{"relation": "UsedFor", "head": "bicycle", "tail": "transportation"}
|
735 |
{"relation": "UsedFor", "head": "shoe", "tail": "protect foot"}
|
736 |
-
{"relation": "NotCapableOf", "head": "dog", "tail": "talk"}
|
737 |
{"relation": "MotivatedByGoal", "head": "have rest", "tail": "you be very tire"}
|
738 |
{"relation": "HasA", "head": "most pizza", "tail": "cheese on it"}
|
739 |
{"relation": "UsedFor", "head": "paper", "tail": "make paper airplane"}
|
@@ -909,7 +902,6 @@
|
|
909 |
{"relation": "MotivatedByGoal", "head": "propose to woman", "tail": "you love her"}
|
910 |
{"relation": "HasSubevent", "head": "have sex", "tail": "sweat"}
|
911 |
{"relation": "HasA", "head": "house", "tail": "room"}
|
912 |
-
{"relation": "NotCapableOf", "head": "pig", "tail": "fly"}
|
913 |
{"relation": "AtLocation", "head": "clothe", "tail": "drawer"}
|
914 |
{"relation": "IsA", "head": "sushi", "tail": "raw fish"}
|
915 |
{"relation": "AtLocation", "head": "sock", "tail": "drawer"}
|
@@ -954,7 +946,6 @@
|
|
954 |
{"relation": "AtLocation", "head": "movie", "tail": "theater"}
|
955 |
{"relation": "HasSubevent", "head": "have nervous breakdown", "tail": "cry"}
|
956 |
{"relation": "HasPrerequisite", "head": "get some money from someone", "tail": "ask"}
|
957 |
-
{"relation": "NotCapableOf", "head": "deaf person", "tail": "hear"}
|
958 |
{"relation": "UsedFor", "head": "floor", "tail": "walk"}
|
959 |
{"relation": "CapableOf", "head": "woman", "tail": "mother child"}
|
960 |
{"relation": "HasSubevent", "head": "go for swim", "tail": "drown"}
|
@@ -1106,12 +1097,10 @@
|
|
1106 |
{"relation": "Causes", "head": "sex", "tail": "orgasm"}
|
1107 |
{"relation": "AtLocation", "head": "fish", "tail": "aquarium"}
|
1108 |
{"relation": "Desires", "head": "dog", "tail": "chew on bone"}
|
1109 |
-
{"relation": "NotCapableOf", "head": "dog", "tail": "sweat"}
|
1110 |
{"relation": "IsA", "head": "cat", "tail": "carnivore"}
|
1111 |
{"relation": "HasPrerequisite", "head": "buy present for others", "tail": "have money"}
|
1112 |
{"relation": "AtLocation", "head": "twenty four hour", "tail": "day"}
|
1113 |
{"relation": "AtLocation", "head": "phone", "tail": "your desk"}
|
1114 |
-
{"relation": "NotCapableOf", "head": "atheist", "tail": "believe in god"}
|
1115 |
{"relation": "UsedFor", "head": "dog", "tail": "companionship"}
|
1116 |
{"relation": "AtLocation", "head": "college", "tail": "city"}
|
1117 |
{"relation": "AtLocation", "head": "feather", "tail": "bird"}
|
|
|
81 |
{"relation": "HasA", "head": "plant", "tail": "leave"}
|
82 |
{"relation": "ReceivesAction", "head": "book", "tail": "read"}
|
83 |
{"relation": "CapableOf", "head": "pilot", "tail": "land plane"}
|
|
|
84 |
{"relation": "HasProperty", "head": "doctor", "tail": "smart"}
|
85 |
{"relation": "HasPrerequisite", "head": "see exhibit", "tail": "go to museum"}
|
86 |
{"relation": "CapableOf", "head": "cup", "tail": "hold liquid"}
|
|
|
92 |
{"relation": "HasPrerequisite", "head": "see band", "tail": "buy ticket"}
|
93 |
{"relation": "HasA", "head": "car", "tail": "seat"}
|
94 |
{"relation": "CapableOf", "head": "boy", "tail": "date girl"}
|
|
|
95 |
{"relation": "Causes", "head": "read", "tail": "learn"}
|
96 |
{"relation": "Causes", "head": "do housework", "tail": "have clean house"}
|
97 |
{"relation": "UsedFor", "head": "bed", "tail": "have sex"}
|
|
|
281 |
{"relation": "IsA", "head": "parakeet", "tail": "bird"}
|
282 |
{"relation": "Causes", "head": "have haircut", "tail": "have short hair"}
|
283 |
{"relation": "HasPrerequisite", "head": "go for drive", "tail": "get into car"}
|
|
|
284 |
{"relation": "CapableOf", "head": "dog", "tail": "be pet"}
|
285 |
{"relation": "AtLocation", "head": "pickle", "tail": "jar"}
|
286 |
{"relation": "AtLocation", "head": "opera singer", "tail": "opera"}
|
|
|
381 |
{"relation": "AtLocation", "head": "bowl", "tail": "cupboard"}
|
382 |
{"relation": "HasPrerequisite", "head": "contemplate", "tail": "think"}
|
383 |
{"relation": "AtLocation", "head": "coffee cup", "tail": "desk"}
|
|
|
384 |
{"relation": "CapableOf", "head": "paint", "tail": "coat wall"}
|
|
|
385 |
{"relation": "UsedFor", "head": "school", "tail": "learn"}
|
386 |
{"relation": "UsedFor", "head": "wine", "tail": "drink"}
|
387 |
{"relation": "AtLocation", "head": "peanut butter", "tail": "jar"}
|
|
|
460 |
{"relation": "IsA", "head": "bottle", "tail": "container"}
|
461 |
{"relation": "AtLocation", "head": "slide", "tail": "park"}
|
462 |
{"relation": "HasSubevent", "head": "play game", "tail": "fun"}
|
|
|
463 |
{"relation": "HasA", "head": "guitar", "tail": "6 string"}
|
464 |
{"relation": "HasPrerequisite", "head": "sleep", "tail": "close eye"}
|
465 |
{"relation": "HasProperty", "head": "basketball", "tail": "round"}
|
|
|
727 |
{"relation": "NotHasProperty", "head": "work", "tail": "fun"}
|
728 |
{"relation": "UsedFor", "head": "bicycle", "tail": "transportation"}
|
729 |
{"relation": "UsedFor", "head": "shoe", "tail": "protect foot"}
|
|
|
730 |
{"relation": "MotivatedByGoal", "head": "have rest", "tail": "you be very tire"}
|
731 |
{"relation": "HasA", "head": "most pizza", "tail": "cheese on it"}
|
732 |
{"relation": "UsedFor", "head": "paper", "tail": "make paper airplane"}
|
|
|
902 |
{"relation": "MotivatedByGoal", "head": "propose to woman", "tail": "you love her"}
|
903 |
{"relation": "HasSubevent", "head": "have sex", "tail": "sweat"}
|
904 |
{"relation": "HasA", "head": "house", "tail": "room"}
|
|
|
905 |
{"relation": "AtLocation", "head": "clothe", "tail": "drawer"}
|
906 |
{"relation": "IsA", "head": "sushi", "tail": "raw fish"}
|
907 |
{"relation": "AtLocation", "head": "sock", "tail": "drawer"}
|
|
|
946 |
{"relation": "AtLocation", "head": "movie", "tail": "theater"}
|
947 |
{"relation": "HasSubevent", "head": "have nervous breakdown", "tail": "cry"}
|
948 |
{"relation": "HasPrerequisite", "head": "get some money from someone", "tail": "ask"}
|
|
|
949 |
{"relation": "UsedFor", "head": "floor", "tail": "walk"}
|
950 |
{"relation": "CapableOf", "head": "woman", "tail": "mother child"}
|
951 |
{"relation": "HasSubevent", "head": "go for swim", "tail": "drown"}
|
|
|
1097 |
{"relation": "Causes", "head": "sex", "tail": "orgasm"}
|
1098 |
{"relation": "AtLocation", "head": "fish", "tail": "aquarium"}
|
1099 |
{"relation": "Desires", "head": "dog", "tail": "chew on bone"}
|
|
|
1100 |
{"relation": "IsA", "head": "cat", "tail": "carnivore"}
|
1101 |
{"relation": "HasPrerequisite", "head": "buy present for others", "tail": "have money"}
|
1102 |
{"relation": "AtLocation", "head": "twenty four hour", "tail": "day"}
|
1103 |
{"relation": "AtLocation", "head": "phone", "tail": "your desk"}
|
|
|
1104 |
{"relation": "UsedFor", "head": "dog", "tail": "companionship"}
|
1105 |
{"relation": "AtLocation", "head": "college", "tail": "city"}
|
1106 |
{"relation": "AtLocation", "head": "feather", "tail": "bird"}
|
dataset/train.jsonl
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
{"relation": "HasPrerequisite", "head": "get onto web", "tail": "turn on your computer"}
|
4 |
{"relation": "IsA", "head": "helium", "tail": "gas"}
|
5 |
{"relation": "HasProperty", "head": "most rock", "tail": "hard"}
|
6 |
-
{"relation": "NotCapableOf", "head": "person", "tail": "walk on water"}
|
7 |
{"relation": "ReceivesAction", "head": "necklace", "tail": "wear around neck"}
|
8 |
{"relation": "HasA", "head": "human", "tail": "two leg"}
|
9 |
{"relation": "UsedFor", "head": "go to pub", "tail": "have drink"}
|
@@ -240,7 +239,6 @@
|
|
240 |
{"relation": "UsedFor", "head": "woodwind", "tail": "make music"}
|
241 |
{"relation": "UsedFor", "head": "denim", "tail": "make jean"}
|
242 |
{"relation": "CapableOf", "head": "fire", "tail": "hurt person"}
|
243 |
-
{"relation": "NotDesires", "head": "person", "tail": "break leg"}
|
244 |
{"relation": "UsedFor", "head": "bell", "tail": "make noise"}
|
245 |
{"relation": "UsedFor", "head": "take bus", "tail": "travel"}
|
246 |
{"relation": "UsedFor", "head": "write", "tail": "communicate"}
|
@@ -288,7 +286,6 @@
|
|
288 |
{"relation": "UsedFor", "head": "accordion", "tail": "make music"}
|
289 |
{"relation": "CapableOf", "head": "person", "tail": "milk cow"}
|
290 |
{"relation": "HasPrerequisite", "head": "drive to work", "tail": "start car"}
|
291 |
-
{"relation": "NotDesires", "head": "cat", "tail": "get wet"}
|
292 |
{"relation": "UsedFor", "head": "towel rack", "tail": "hang towel"}
|
293 |
{"relation": "HasPrerequisite", "head": "lose weight", "tail": "eat less"}
|
294 |
{"relation": "UsedFor", "head": "boat", "tail": "sail"}
|
@@ -340,7 +337,6 @@
|
|
340 |
{"relation": "HasLastSubevent", "head": "live", "tail": "die"}
|
341 |
{"relation": "AtLocation", "head": "pen", "tail": "college"}
|
342 |
{"relation": "CapableOf", "head": "human", "tail": "make mistake"}
|
343 |
-
{"relation": "NotDesires", "head": "actor", "tail": "bad review"}
|
344 |
{"relation": "IsA", "head": "beagle", "tail": "dog"}
|
345 |
{"relation": "PartOf", "head": "father", "tail": "family"}
|
346 |
{"relation": "MadeOf", "head": "money", "tail": "paper"}
|
@@ -439,7 +435,6 @@
|
|
439 |
{"relation": "IsA", "head": "happiness", "tail": "emotion"}
|
440 |
{"relation": "HasA", "head": "coffee", "tail": "caffeine"}
|
441 |
{"relation": "HasA", "head": "ear", "tail": "wax"}
|
442 |
-
{"relation": "NotCapableOf", "head": "sound", "tail": "travel in space"}
|
443 |
{"relation": "HasProperty", "head": "some men", "tail": "gay"}
|
444 |
{"relation": "CapableOf", "head": "horse", "tail": "jump high"}
|
445 |
{"relation": "CapableOf", "head": "dog", "tail": "smell drug"}
|
@@ -447,7 +442,6 @@
|
|
447 |
{"relation": "CapableOf", "head": "male", "tail": "father child"}
|
448 |
{"relation": "CapableOf", "head": "teacher", "tail": "fail student"}
|
449 |
{"relation": "IsA", "head": "ice", "tail": "solid"}
|
450 |
-
{"relation": "NotDesires", "head": "person", "tail": "lose his friend"}
|
451 |
{"relation": "AtLocation", "head": "drunk", "tail": "bar"}
|
452 |
{"relation": "HasPrerequisite", "head": "drive car", "tail": "get license"}
|
453 |
{"relation": "HasSubevent", "head": "meet friend", "tail": "have sex"}
|
@@ -533,7 +527,6 @@
|
|
533 |
{"relation": "AtLocation", "head": "mouse", "tail": "trap"}
|
534 |
{"relation": "AtLocation", "head": "barbie", "tail": "toy store"}
|
535 |
{"relation": "AtLocation", "head": "cheese", "tail": "refrigerator"}
|
536 |
-
{"relation": "NotCapableOf", "head": "cat", "tail": "talk"}
|
537 |
{"relation": "Causes", "head": "play game", "tail": "happiness"}
|
538 |
{"relation": "CapableOf", "head": "farmer", "tail": "farm corn"}
|
539 |
{"relation": "AtLocation", "head": "bird", "tail": "nest"}
|
@@ -549,7 +542,6 @@
|
|
549 |
{"relation": "Causes", "head": "socialise", "tail": "make friend"}
|
550 |
{"relation": "Causes", "head": "have rest", "tail": "sleep"}
|
551 |
{"relation": "AtLocation", "head": "speaker", "tail": "drive-in movie"}
|
552 |
-
{"relation": "NotCapableOf", "head": "oil and water", "tail": "mix"}
|
553 |
{"relation": "HasA", "head": "cow", "tail": "four stomach"}
|
554 |
{"relation": "CapableOf", "head": "person", "tail": "reply to e-mail"}
|
555 |
{"relation": "AtLocation", "head": "post-it note", "tail": "your desk"}
|
|
|
3 |
{"relation": "HasPrerequisite", "head": "get onto web", "tail": "turn on your computer"}
|
4 |
{"relation": "IsA", "head": "helium", "tail": "gas"}
|
5 |
{"relation": "HasProperty", "head": "most rock", "tail": "hard"}
|
|
|
6 |
{"relation": "ReceivesAction", "head": "necklace", "tail": "wear around neck"}
|
7 |
{"relation": "HasA", "head": "human", "tail": "two leg"}
|
8 |
{"relation": "UsedFor", "head": "go to pub", "tail": "have drink"}
|
|
|
239 |
{"relation": "UsedFor", "head": "woodwind", "tail": "make music"}
|
240 |
{"relation": "UsedFor", "head": "denim", "tail": "make jean"}
|
241 |
{"relation": "CapableOf", "head": "fire", "tail": "hurt person"}
|
|
|
242 |
{"relation": "UsedFor", "head": "bell", "tail": "make noise"}
|
243 |
{"relation": "UsedFor", "head": "take bus", "tail": "travel"}
|
244 |
{"relation": "UsedFor", "head": "write", "tail": "communicate"}
|
|
|
286 |
{"relation": "UsedFor", "head": "accordion", "tail": "make music"}
|
287 |
{"relation": "CapableOf", "head": "person", "tail": "milk cow"}
|
288 |
{"relation": "HasPrerequisite", "head": "drive to work", "tail": "start car"}
|
|
|
289 |
{"relation": "UsedFor", "head": "towel rack", "tail": "hang towel"}
|
290 |
{"relation": "HasPrerequisite", "head": "lose weight", "tail": "eat less"}
|
291 |
{"relation": "UsedFor", "head": "boat", "tail": "sail"}
|
|
|
337 |
{"relation": "HasLastSubevent", "head": "live", "tail": "die"}
|
338 |
{"relation": "AtLocation", "head": "pen", "tail": "college"}
|
339 |
{"relation": "CapableOf", "head": "human", "tail": "make mistake"}
|
|
|
340 |
{"relation": "IsA", "head": "beagle", "tail": "dog"}
|
341 |
{"relation": "PartOf", "head": "father", "tail": "family"}
|
342 |
{"relation": "MadeOf", "head": "money", "tail": "paper"}
|
|
|
435 |
{"relation": "IsA", "head": "happiness", "tail": "emotion"}
|
436 |
{"relation": "HasA", "head": "coffee", "tail": "caffeine"}
|
437 |
{"relation": "HasA", "head": "ear", "tail": "wax"}
|
|
|
438 |
{"relation": "HasProperty", "head": "some men", "tail": "gay"}
|
439 |
{"relation": "CapableOf", "head": "horse", "tail": "jump high"}
|
440 |
{"relation": "CapableOf", "head": "dog", "tail": "smell drug"}
|
|
|
442 |
{"relation": "CapableOf", "head": "male", "tail": "father child"}
|
443 |
{"relation": "CapableOf", "head": "teacher", "tail": "fail student"}
|
444 |
{"relation": "IsA", "head": "ice", "tail": "solid"}
|
|
|
445 |
{"relation": "AtLocation", "head": "drunk", "tail": "bar"}
|
446 |
{"relation": "HasPrerequisite", "head": "drive car", "tail": "get license"}
|
447 |
{"relation": "HasSubevent", "head": "meet friend", "tail": "have sex"}
|
|
|
527 |
{"relation": "AtLocation", "head": "mouse", "tail": "trap"}
|
528 |
{"relation": "AtLocation", "head": "barbie", "tail": "toy store"}
|
529 |
{"relation": "AtLocation", "head": "cheese", "tail": "refrigerator"}
|
|
|
530 |
{"relation": "Causes", "head": "play game", "tail": "happiness"}
|
531 |
{"relation": "CapableOf", "head": "farmer", "tail": "farm corn"}
|
532 |
{"relation": "AtLocation", "head": "bird", "tail": "nest"}
|
|
|
542 |
{"relation": "Causes", "head": "socialise", "tail": "make friend"}
|
543 |
{"relation": "Causes", "head": "have rest", "tail": "sleep"}
|
544 |
{"relation": "AtLocation", "head": "speaker", "tail": "drive-in movie"}
|
|
|
545 |
{"relation": "HasA", "head": "cow", "tail": "four stomach"}
|
546 |
{"relation": "CapableOf", "head": "person", "tail": "reply to e-mail"}
|
547 |
{"relation": "AtLocation", "head": "post-it note", "tail": "your desk"}
|
dataset/valid.jsonl
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
{"relation": "NotCapableOf", "head": "god", "tail": "exist"}
|
2 |
{"relation": "HasSubevent", "head": "wake up in morning", "tail": "yawn"}
|
3 |
{"relation": "ReceivesAction", "head": "island", "tail": "surround by water"}
|
4 |
{"relation": "AtLocation", "head": "heat element", "tail": "oven"}
|
@@ -414,7 +413,6 @@
|
|
414 |
{"relation": "UsedFor", "head": "machine", "tail": "work"}
|
415 |
{"relation": "UsedFor", "head": "toothbrush", "tail": "clean tooth"}
|
416 |
{"relation": "IsA", "head": "space", "tail": "area"}
|
417 |
-
{"relation": "NotDesires", "head": "person", "tail": "make mistake"}
|
418 |
{"relation": "IsA", "head": "boat", "tail": "form of transportation"}
|
419 |
{"relation": "IsA", "head": "rhode island", "tail": "state"}
|
420 |
{"relation": "UsedFor", "head": "clipboard", "tail": "hold paper"}
|
@@ -465,7 +463,6 @@
|
|
465 |
{"relation": "Causes", "head": "cash in", "tail": "get money"}
|
466 |
{"relation": "HasProperty", "head": "gun", "tail": "dangerous"}
|
467 |
{"relation": "CapableOf", "head": "chef", "tail": "prepare food"}
|
468 |
-
{"relation": "NotDesires", "head": "person", "tail": "be burn"}
|
469 |
{"relation": "MotivatedByGoal", "head": "sit down", "tail": "rest"}
|
470 |
{"relation": "MotivatedByGoal", "head": "remember phone number", "tail": "call someone"}
|
471 |
{"relation": "AtLocation", "head": "cake", "tail": "bakery"}
|
@@ -521,7 +518,6 @@
|
|
521 |
{"relation": "PartOf", "head": "head", "tail": "body"}
|
522 |
{"relation": "UsedFor", "head": "refrigerator", "tail": "store food"}
|
523 |
{"relation": "HasProperty", "head": "salt", "tail": "salty"}
|
524 |
-
{"relation": "NotDesires", "head": "person", "tail": "burn"}
|
525 |
{"relation": "IsA", "head": "dictionary", "tail": "book"}
|
526 |
{"relation": "IsA", "head": "woman", "tail": "human"}
|
527 |
{"relation": "Causes", "head": "get job", "tail": "earn money"}
|
@@ -561,7 +557,6 @@
|
|
561 |
{"relation": "UsedFor", "head": "pipe", "tail": "smoke"}
|
562 |
{"relation": "HasProperty", "head": "floppy disk", "tail": "obsolete"}
|
563 |
{"relation": "HasSubevent", "head": "agree with someone", "tail": "nod of head"}
|
564 |
-
{"relation": "NotDesires", "head": "person", "tail": "be diseased"}
|
565 |
{"relation": "HasFirstSubevent", "head": "skate", "tail": "put skate on"}
|
566 |
{"relation": "AtLocation", "head": "god", "tail": "heaven"}
|
567 |
{"relation": "IsA", "head": "u2", "tail": "band"}
|
|
|
|
|
1 |
{"relation": "HasSubevent", "head": "wake up in morning", "tail": "yawn"}
|
2 |
{"relation": "ReceivesAction", "head": "island", "tail": "surround by water"}
|
3 |
{"relation": "AtLocation", "head": "heat element", "tail": "oven"}
|
|
|
413 |
{"relation": "UsedFor", "head": "machine", "tail": "work"}
|
414 |
{"relation": "UsedFor", "head": "toothbrush", "tail": "clean tooth"}
|
415 |
{"relation": "IsA", "head": "space", "tail": "area"}
|
|
|
416 |
{"relation": "IsA", "head": "boat", "tail": "form of transportation"}
|
417 |
{"relation": "IsA", "head": "rhode island", "tail": "state"}
|
418 |
{"relation": "UsedFor", "head": "clipboard", "tail": "hold paper"}
|
|
|
463 |
{"relation": "Causes", "head": "cash in", "tail": "get money"}
|
464 |
{"relation": "HasProperty", "head": "gun", "tail": "dangerous"}
|
465 |
{"relation": "CapableOf", "head": "chef", "tail": "prepare food"}
|
|
|
466 |
{"relation": "MotivatedByGoal", "head": "sit down", "tail": "rest"}
|
467 |
{"relation": "MotivatedByGoal", "head": "remember phone number", "tail": "call someone"}
|
468 |
{"relation": "AtLocation", "head": "cake", "tail": "bakery"}
|
|
|
518 |
{"relation": "PartOf", "head": "head", "tail": "body"}
|
519 |
{"relation": "UsedFor", "head": "refrigerator", "tail": "store food"}
|
520 |
{"relation": "HasProperty", "head": "salt", "tail": "salty"}
|
|
|
521 |
{"relation": "IsA", "head": "dictionary", "tail": "book"}
|
522 |
{"relation": "IsA", "head": "woman", "tail": "human"}
|
523 |
{"relation": "Causes", "head": "get job", "tail": "earn money"}
|
|
|
557 |
{"relation": "UsedFor", "head": "pipe", "tail": "smoke"}
|
558 |
{"relation": "HasProperty", "head": "floppy disk", "tail": "obsolete"}
|
559 |
{"relation": "HasSubevent", "head": "agree with someone", "tail": "nod of head"}
|
|
|
560 |
{"relation": "HasFirstSubevent", "head": "skate", "tail": "put skate on"}
|
561 |
{"relation": "AtLocation", "head": "god", "tail": "heaven"}
|
562 |
{"relation": "IsA", "head": "u2", "tail": "band"}
|
process.py
CHANGED
@@ -36,6 +36,7 @@ def read_file(file_name):
|
|
36 |
columns=['relation', 'head', 'tail', 'flag'])
|
37 |
df_positive = df[df['flag'] == '1']
|
38 |
df_positive.pop('flag')
|
|
|
39 |
return df_positive
|
40 |
|
41 |
|
|
|
36 |
columns=['relation', 'head', 'tail', 'flag'])
|
37 |
df_positive = df[df['flag'] == '1']
|
38 |
df_positive.pop('flag')
|
39 |
+
df_positive = df_positive[[i not in exclude for i in df_positive.relation]]
|
40 |
return df_positive
|
41 |
|
42 |
|