diff --git a/config.properties b/config.properties index 2958d7e..f8896cb 100644 --- a/config.properties +++ b/config.properties @@ -32,5 +32,5 @@ KEYWORDS_TAGS: # Scoring parameters W2V_THRES: 0.3 -WORD2VEC_GOOGLE: true -DEBUG: 5 +WORD2VEC_GOOGLE: false +DEBUG: 2 diff --git a/data/process-rpqa.py b/data/process-rpqa.py deleted file mode 100644 index 719f7cc..0000000 --- a/data/process-rpqa.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python -import glob, os -import json -from pprint import pprint -import codecs - - -f = codecs.open('rpqa-train.json', 'r', 'UTF-8') -data = json.load(f) -output = open("rpqa-train.examples", "w") -#output_json = open("rpqa-train.json", "w") - -#output_json.write("[\n") -for record in data: - print record - if record["type"][0] != 'X': - output.write("(example\n") - output.write("\t(utterance \"" + record["utterance"].encode('utf-8') + "\")\n") - output.write("\t(targetFormula " + record["targetFormula"].encode('utf-8') + ")\n)") - output.write("\n") - #json.dump(record, output_json) - #output_json.write(",\n") - -#output_json.write("\n]") diff --git a/data/rpqa-train-a.json b/data/rpqa-train-a.json deleted file mode 100644 index 6f6acaf..0000000 --- a/data/rpqa-train-a.json +++ /dev/null @@ -1,44 +0,0 @@ -[ -{"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, -{"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, -{"type": "NAME", "utterance": "i am hannah", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF hannah))"}, -{"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, -{"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, -{"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, -{"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, -{"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, -{"type": "FROM", "utterance": "i am from russia", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, -{"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, -{"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, -{"type": "FROM", "utterance": "i was born in poland or russia", "targetFormula": "(triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))"}, -{"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i spend my free time swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, -{"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, -{"type": "LIVE_IN", "utterance": "my current home is warsaw", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, -{"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, -{"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, -{"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, -{"type": "MEMBER_OF", "utterance": "i am a Roboy Team member", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF roboy_team))"}, -{"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, -{"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, -{"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, -{"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, -{"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, -{"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, -{"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, -{"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, -{"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, -{"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"} -] \ No newline at end of file diff --git a/data/rpqa-train-q.json b/data/rpqa-train-q.json deleted file mode 100644 index 0a2f58d..0000000 --- a/data/rpqa-train-q.json +++ /dev/null @@ -1,42 +0,0 @@ -[ -{"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "What is your home countr?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Do you have a friend whom I have met?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "Where do you study?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, -{"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Where do you earn your living?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What is your profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} -] \ No newline at end of file diff --git a/data/rpqa-train.json b/data/rpqa-train.json deleted file mode 100644 index 74d66e1..0000000 --- a/data/rpqa-train.json +++ /dev/null @@ -1,84 +0,0 @@ -[ - {"utterance": "my name is emily", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, - {"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, - {"utterance": "i am hannah", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF hannah))"}, - {"utterance": "call me christina", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, - {"utterance": "people call me sam", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, - {"utterance": "my name is elsa and anna", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, - {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, - {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, - {"utterance": "What is your name?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, - {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, - {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, - {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, - {"utterance": "my home country is ukraine", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, - {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, - {"utterance": "i was born in poland or russia", "type": "FROM", "targetFormula": "(triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))"}, - {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, - {"utterance": "Where were you born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, - {"utterance": "What is your home countr?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, - {"utterance": "Which town do you call your home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, - {"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "my favorite activity is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, - {"utterance": "What is your favorite thing to do?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "What is your favorite thing to do?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "What do you do in your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "What is your hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, - {"utterance": "i currently live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, - {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, - {"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, - {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, - {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, - {"utterance": "Where is your current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, - {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, - {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, - {"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, - {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, - {"utterance": "Who is your best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, - {"utterance": "Have I met any of your friends?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, - {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, - {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, - {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, - {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, - {"utterance": "my alma mater is TUW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, - {"utterance": "Where do you study?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, - {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, - {"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, - {"utterance": "What is your alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, - {"utterance": "i am a Roboy Team member", "type": "MEMBER_OF", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF roboy_team))"}, - {"utterance": "i belong to IAESTE", "type": "MEMBER_OF", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, - {"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, - {"utterance": "Do you belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, - {"utterance": "i work for EY", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, - {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, - {"utterance": "my employer is Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, - {"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, - {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, - {"utterance": "Where do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "For which company do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "Where are you employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, - {"utterance": "my favorite movie is titanic", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, - {"utterance": "i last saw finding nemo", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, - {"utterance": "my favorite tv show is ellen", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, - {"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, - {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, - {"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, - {"utterance": "What is your favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, - {"utterance": "Which comedy do you like the most?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, - {"utterance": "i am a teacher", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, - {"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, - {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, - {"utterance": "What do you do?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, - {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, - {"utterance": "What do you work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, - {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} -] diff --git a/data/rpqa-trained.json b/data/rpqa-trained.json deleted file mode 100644 index cfc23ae..0000000 --- a/data/rpqa-trained.json +++ /dev/null @@ -1,85 +0,0 @@ -[ -{"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, -{"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, -{"type": "NAME", "utterance": "i am hannah", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF hannah))"}, -{"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, -{"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, -{"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, -{"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, -{"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, -{"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, -{"type": "FROM", "utterance": "i am from russia", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, -{"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, -{"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, -{"type": "FROM", "utterance": "i was born in poland or russia", "targetFormula": "(triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))"}, -{"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "What is your home countr?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, -{"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "i spend my free time swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, -{"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, -{"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, -{"type": "LIVE_IN", "utterance": "my current home is warsaw", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, -{"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, -{"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, -{"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Do you have a friend whom I have met?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, -{"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, -{"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, -{"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, -{"type": "QSTUDY_AT", "utterance": "Where do you study?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, -{"type": "MEMBER_OF", "utterance": "i am a Roboy Team member", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF roboy_team))"}, -{"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, -{"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, -{"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, -{"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, -{"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, -{"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, -{"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "QWORK_FOR", "utterance": "Where do you earn your living?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, -{"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, -{"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, -{"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, -{"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, -{"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, -{"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, -{"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, -{"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, -{"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What is your profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, -{"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, - -] \ No newline at end of file diff --git a/data/rpqa/1/test.examples b/data/rpqa/1/test.examples new file mode 100644 index 0000000..092cc94 --- /dev/null +++ b/data/rpqa/1/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) diff --git a/data/rpqa/1/test.json b/data/rpqa/1/test.json new file mode 100644 index 0000000..03b6af4 --- /dev/null +++ b/data/rpqa/1/test.json @@ -0,0 +1,14 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"} +] \ No newline at end of file diff --git a/data/rpqa/1/train.examples b/data/rpqa/1/train.examples new file mode 100644 index 0000000..24ef803 --- /dev/null +++ b/data/rpqa/1/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/1/train.json b/data/rpqa/1/train.json new file mode 100644 index 0000000..e4a639e --- /dev/null +++ b/data/rpqa/1/train.json @@ -0,0 +1,110 @@ +[ + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/10/test.examples b/data/rpqa/10/test.examples new file mode 100644 index 0000000..709ad99 --- /dev/null +++ b/data/rpqa/10/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/10/test.json b/data/rpqa/10/test.json new file mode 100644 index 0000000..b868df7 --- /dev/null +++ b/data/rpqa/10/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/10/train.examples b/data/rpqa/10/train.examples new file mode 100644 index 0000000..155c631 --- /dev/null +++ b/data/rpqa/10/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) diff --git a/data/rpqa/10/train.json b/data/rpqa/10/train.json new file mode 100644 index 0000000..ee59a69 --- /dev/null +++ b/data/rpqa/10/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"} +] \ No newline at end of file diff --git a/data/rpqa/2/test.examples b/data/rpqa/2/test.examples new file mode 100644 index 0000000..3d498e4 --- /dev/null +++ b/data/rpqa/2/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) diff --git a/data/rpqa/2/test.json b/data/rpqa/2/test.json new file mode 100644 index 0000000..3b38b6c --- /dev/null +++ b/data/rpqa/2/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/2/train.examples b/data/rpqa/2/train.examples new file mode 100644 index 0000000..c92613d --- /dev/null +++ b/data/rpqa/2/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/2/train.json b/data/rpqa/2/train.json new file mode 100644 index 0000000..e0f2414 --- /dev/null +++ b/data/rpqa/2/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/3/test.examples b/data/rpqa/3/test.examples new file mode 100644 index 0000000..57a30e7 --- /dev/null +++ b/data/rpqa/3/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) diff --git a/data/rpqa/3/test.json b/data/rpqa/3/test.json new file mode 100644 index 0000000..2179a59 --- /dev/null +++ b/data/rpqa/3/test.json @@ -0,0 +1,14 @@ +[ + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/3/train.examples b/data/rpqa/3/train.examples new file mode 100644 index 0000000..5055e58 --- /dev/null +++ b/data/rpqa/3/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/3/train.json b/data/rpqa/3/train.json new file mode 100644 index 0000000..689bf37 --- /dev/null +++ b/data/rpqa/3/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/4/test.examples b/data/rpqa/4/test.examples new file mode 100644 index 0000000..3d0a465 --- /dev/null +++ b/data/rpqa/4/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) diff --git a/data/rpqa/4/test.json b/data/rpqa/4/test.json new file mode 100644 index 0000000..173a7cd --- /dev/null +++ b/data/rpqa/4/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"} +] \ No newline at end of file diff --git a/data/rpqa/4/train.examples b/data/rpqa/4/train.examples new file mode 100644 index 0000000..2790715 --- /dev/null +++ b/data/rpqa/4/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/4/train.json b/data/rpqa/4/train.json new file mode 100644 index 0000000..32a0edc --- /dev/null +++ b/data/rpqa/4/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/5/test.examples b/data/rpqa/5/test.examples new file mode 100644 index 0000000..2302133 --- /dev/null +++ b/data/rpqa/5/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/5/test.json b/data/rpqa/5/test.json new file mode 100644 index 0000000..0ec2bc4 --- /dev/null +++ b/data/rpqa/5/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa-train.examples b/data/rpqa/5/train.examples similarity index 62% rename from data/rpqa-train.examples rename to data/rpqa/5/train.examples index 5398b39..af7c957 100644 --- a/data/rpqa-train.examples +++ b/data/rpqa/5/train.examples @@ -1,165 +1,41 @@ -(example - (utterance "my name is emily") - (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) -) -(example - (utterance "anna is my name") - (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) -) -(example - (utterance "i am hannah") - (targetFormula (triples (triple rb:active_person rb:NAME_OF hannah))) -) -(example - (utterance "call me christina") - (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) -) -(example - (utterance "people call me sam") - (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) -) -(example - (utterance "my name is elsa and anna") - (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) -) -(example - (utterance "my or your name or hobby is emily and alona") - (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) -) -(example - (utterance "How can I call you?") - (targetFormula (!rb:NAME_OF rb:Roboy)) -) -(example - (utterance "What is your name?") - (targetFormula (!rb:NAME_OF rb:Roboy)) -) -(example - (utterance "Who are you?") - (targetFormula (!rb:NAME_OF rb:Roboy)) -) -(example - (utterance "i come from poland") - (targetFormula (triples (triple rb:active_person rb:FROM poland))) -) -(example - (utterance "i am from russia") - (targetFormula (triples (triple rb:active_person rb:FROM russia))) -) -(example - (utterance "my home country is ukraine") - (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) -) -(example - (utterance "i was born in nicaragua") - (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) -) -(example - (utterance "i was born in poland or russia") - (targetFormula (triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))) -) -(example - (utterance "Where are you from?") - (targetFormula (!rb:FROM rb:Roboy)) -) -(example - (utterance "Where were you born?") - (targetFormula (!rb:FROM rb:Roboy)) -) -(example - (utterance "What is your home countr?") - (targetFormula (!rb:FROM rb:Roboy)) -) -(example - (utterance "Which town do you call your home?") - (targetFormula (!rb:FROM rb:Roboy)) -) -(example - (utterance "my favorite thing to do is swimming") - (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) -) -(example - (utterance "my hobby is swimming") - (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) -) (example (utterance "i like swimming") (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) ) (example - (utterance "i swim in my free time") - (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) ) (example - (utterance "i spend my free time swimming") - (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) -) -(example - (utterance "my favorite activity is swimming") - (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) -) -(example - (utterance "What is your favorite thing to do?") - (targetFormula (!rb:HAS_HOBBY rb:Roboy)) -) -(example - (utterance "What is your favorite thing to do?") - (targetFormula (!rb:HAS_HOBBY rb:Roboy)) -) -(example - (utterance "What do you do in your free time?") - (targetFormula (!rb:HAS_HOBBY rb:Roboy)) + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) ) (example (utterance "What is your hobby?") (targetFormula (!rb:HAS_HOBBY rb:Roboy)) ) -(example - (utterance "How do you spend your free time?") - (targetFormula (!rb:HAS_HOBBY rb:Roboy)) -) (example (utterance "What is your favorite pastime activity?") (targetFormula (!rb:HAS_HOBBY rb:Roboy)) ) -(example - (utterance "i currently live in munich") - (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) -) -(example - (utterance "i live in munich") - (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) -) -(example - (utterance "my current home is warsaw") - (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) -) -(example - (utterance "Where do you live?") - (targetFormula (!rb:LIVE_IN rb:Roboy)) -) -(example - (utterance "Which city do you live in?") - (targetFormula (!rb:LIVE_IN rb:Roboy)) -) -(example - (utterance "Where is your current home?") - (targetFormula (!rb:LIVE_IN rb:Roboy)) -) -(example - (utterance "my best friend is ben") - (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) -) (example (utterance "i am friends with ben") (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) ) (example - (utterance "you met my friend ben") - (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) ) (example - (utterance "my friend is called ben") + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) ) (example @@ -167,128 +43,156 @@ (targetFormula (!rb:FRIEND_OF rb:Roboy)) ) (example - (utterance "Have I met any of your friends?") + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") (targetFormula (!rb:FRIEND_OF rb:Roboy)) ) (example - (utterance "Do you have a friend whom I have met?") - (targetFormula (!rb:FRIEND_OF rb:Roboy)) + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) ) (example - (utterance "Maybe I know some friends of yours. Would you name one?") - (targetFormula (!rb:FRIEND_OF rb:Roboy)) + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) ) (example - (utterance "i study at TUM") - (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) ) (example - (utterance "i go to UW") - (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) ) (example - (utterance "my alma mater is TUW") - (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) ) (example - (utterance "Where do you study?") - (targetFormula (!rb:STUDY_AT rb:Roboy)) + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) ) (example - (utterance "Which university do you go to?") - (targetFormula (!rb:STUDY_AT rb:Roboy)) + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) ) (example - (utterance "Which university do you study at?") - (targetFormula (!rb:STUDY_AT rb:Roboy)) + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) ) (example - (utterance "What is your alma mater?") - (targetFormula (!rb:STUDY_AT rb:Roboy)) + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) ) (example - (utterance "i am a Roboy Team member") - (targetFormula (triples (triple rb:active_person rb:MEMBER_OF roboy_team))) + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) ) (example - (utterance "i belong to IAESTE") - (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) ) (example - (utterance "Are you a member of some cool organization?") - (targetFormula (!rb:MEMBER_OF rb:Roboy)) + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) ) (example - (utterance "Do you belong to any organizations?") - (targetFormula (!rb:MEMBER_OF rb:Roboy)) + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) ) (example (utterance "i work for EY") (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) ) (example - (utterance "i work at Nokia") - (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) ) (example - (utterance "my employer is Samsung") - (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) -) -(example - (utterance "i am employed at Samsung") - (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) -) -(example - (utterance "i earn my living at Samsung") - (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) -) -(example - (utterance "Where do you work?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "For which company do you work?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "Who is your employer?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "Where are you employed?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "Which organization do you work at?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "Where do you earn your living?") - (targetFormula (!rb:WORK_FOR rb:Roboy)) -) -(example - (utterance "my favorite movie is titanic") - (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) -) -(example - (utterance "i last saw finding nemo") - (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) -) -(example - (utterance "my favorite tv show is ellen") - (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) ) (example (utterance "i like pulp fiction the most") (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) ) (example - (utterance "What is your favourite movie?") - (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) ) (example - (utterance "What was the last movie you saw in the cinema?") - (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) ) (example (utterance "What is your favorite TV show?") @@ -299,30 +203,230 @@ (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) ) (example - (utterance "i am a teacher") - (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) ) (example (utterance "i work as a nurse") (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) ) (example - (utterance "my field of expertise is finance") - (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) ) (example - (utterance "What do you do?") - (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) ) (example - (utterance "What is your profession?") - (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) ) (example - (utterance "What do you work as?") - (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) ) (example - (utterance "What is your field of expertise?") - (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) ) diff --git a/data/rpqa/5/train.json b/data/rpqa/5/train.json new file mode 100644 index 0000000..731a81e --- /dev/null +++ b/data/rpqa/5/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/6/test.examples b/data/rpqa/6/test.examples new file mode 100644 index 0000000..0c407f0 --- /dev/null +++ b/data/rpqa/6/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) diff --git a/data/rpqa/6/test.json b/data/rpqa/6/test.json new file mode 100644 index 0000000..8254eac --- /dev/null +++ b/data/rpqa/6/test.json @@ -0,0 +1,14 @@ +[ + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/6/train.examples b/data/rpqa/6/train.examples new file mode 100644 index 0000000..7f0b5da --- /dev/null +++ b/data/rpqa/6/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/6/train.json b/data/rpqa/6/train.json new file mode 100644 index 0000000..399e1a4 --- /dev/null +++ b/data/rpqa/6/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/7/test.examples b/data/rpqa/7/test.examples new file mode 100644 index 0000000..9c757a0 --- /dev/null +++ b/data/rpqa/7/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) diff --git a/data/rpqa/7/test.json b/data/rpqa/7/test.json new file mode 100644 index 0000000..54bea12 --- /dev/null +++ b/data/rpqa/7/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/7/train.examples b/data/rpqa/7/train.examples new file mode 100644 index 0000000..37219c6 --- /dev/null +++ b/data/rpqa/7/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/7/train.json b/data/rpqa/7/train.json new file mode 100644 index 0000000..4f3163a --- /dev/null +++ b/data/rpqa/7/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/8/test.examples b/data/rpqa/8/test.examples new file mode 100644 index 0000000..0117f67 --- /dev/null +++ b/data/rpqa/8/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) diff --git a/data/rpqa/8/test.json b/data/rpqa/8/test.json new file mode 100644 index 0000000..37237d9 --- /dev/null +++ b/data/rpqa/8/test.json @@ -0,0 +1,14 @@ +[ + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/8/train.examples b/data/rpqa/8/train.examples new file mode 100644 index 0000000..8224533 --- /dev/null +++ b/data/rpqa/8/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/8/train.json b/data/rpqa/8/train.json new file mode 100644 index 0000000..0f53e94 --- /dev/null +++ b/data/rpqa/8/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/9/test.examples b/data/rpqa/9/test.examples new file mode 100644 index 0000000..d061a8d --- /dev/null +++ b/data/rpqa/9/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) diff --git a/data/rpqa/9/test.json b/data/rpqa/9/test.json new file mode 100644 index 0000000..dc4925a --- /dev/null +++ b/data/rpqa/9/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"} +] \ No newline at end of file diff --git a/data/rpqa/9/train.examples b/data/rpqa/9/train.examples new file mode 100644 index 0000000..dcfc9be --- /dev/null +++ b/data/rpqa/9/train.examples @@ -0,0 +1,432 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/9/train.json b/data/rpqa/9/train.json new file mode 100644 index 0000000..8d8bd4b --- /dev/null +++ b/data/rpqa/9/train.json @@ -0,0 +1,110 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/1/test.examples b/data/rpqa/A/1/test.examples new file mode 100644 index 0000000..092cc94 --- /dev/null +++ b/data/rpqa/A/1/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) diff --git a/data/rpqa/A/1/test.json b/data/rpqa/A/1/test.json new file mode 100644 index 0000000..03b6af4 --- /dev/null +++ b/data/rpqa/A/1/test.json @@ -0,0 +1,14 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"} +] \ No newline at end of file diff --git a/data/rpqa/A/1/train.examples b/data/rpqa/A/1/train.examples new file mode 100644 index 0000000..2ef75c3 --- /dev/null +++ b/data/rpqa/A/1/train.examples @@ -0,0 +1,160 @@ +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) diff --git a/data/rpqa/A/1/train.json b/data/rpqa/A/1/train.json new file mode 100644 index 0000000..a75ff7f --- /dev/null +++ b/data/rpqa/A/1/train.json @@ -0,0 +1,42 @@ +[ + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, + {"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/2/test.examples b/data/rpqa/A/2/test.examples new file mode 100644 index 0000000..3d498e4 --- /dev/null +++ b/data/rpqa/A/2/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) diff --git a/data/rpqa/A/2/test.json b/data/rpqa/A/2/test.json new file mode 100644 index 0000000..3b38b6c --- /dev/null +++ b/data/rpqa/A/2/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/A/2/train.examples b/data/rpqa/A/2/train.examples new file mode 100644 index 0000000..707c045 --- /dev/null +++ b/data/rpqa/A/2/train.examples @@ -0,0 +1,160 @@ +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) diff --git a/data/rpqa/A/2/train.json b/data/rpqa/A/2/train.json new file mode 100644 index 0000000..5633e62 --- /dev/null +++ b/data/rpqa/A/2/train.json @@ -0,0 +1,42 @@ +[ + {"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, + {"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/3/test.examples b/data/rpqa/A/3/test.examples new file mode 100644 index 0000000..57a30e7 --- /dev/null +++ b/data/rpqa/A/3/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) diff --git a/data/rpqa/A/3/test.json b/data/rpqa/A/3/test.json new file mode 100644 index 0000000..2179a59 --- /dev/null +++ b/data/rpqa/A/3/test.json @@ -0,0 +1,14 @@ +[ + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/A/3/train.examples b/data/rpqa/A/3/train.examples new file mode 100644 index 0000000..315461f --- /dev/null +++ b/data/rpqa/A/3/train.examples @@ -0,0 +1,160 @@ +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) diff --git a/data/rpqa/A/3/train.json b/data/rpqa/A/3/train.json new file mode 100644 index 0000000..2c9e9f3 --- /dev/null +++ b/data/rpqa/A/3/train.json @@ -0,0 +1,42 @@ +[ + {"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, + {"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/4/test.examples b/data/rpqa/A/4/test.examples new file mode 100644 index 0000000..3d0a465 --- /dev/null +++ b/data/rpqa/A/4/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) diff --git a/data/rpqa/A/4/test.json b/data/rpqa/A/4/test.json new file mode 100644 index 0000000..173a7cd --- /dev/null +++ b/data/rpqa/A/4/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"} +] \ No newline at end of file diff --git a/data/rpqa/A/4/train.examples b/data/rpqa/A/4/train.examples new file mode 100644 index 0000000..420b32a --- /dev/null +++ b/data/rpqa/A/4/train.examples @@ -0,0 +1,160 @@ +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) diff --git a/data/rpqa/A/4/train.json b/data/rpqa/A/4/train.json new file mode 100644 index 0000000..f2871f5 --- /dev/null +++ b/data/rpqa/A/4/train.json @@ -0,0 +1,42 @@ +[ + {"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, + {"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/5/test.examples b/data/rpqa/A/5/test.examples new file mode 100644 index 0000000..2302133 --- /dev/null +++ b/data/rpqa/A/5/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/A/5/test.json b/data/rpqa/A/5/test.json new file mode 100644 index 0000000..0ec2bc4 --- /dev/null +++ b/data/rpqa/A/5/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/A/5/train.examples b/data/rpqa/A/5/train.examples new file mode 100644 index 0000000..3d916b5 --- /dev/null +++ b/data/rpqa/A/5/train.examples @@ -0,0 +1,160 @@ +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) diff --git a/data/rpqa/A/5/train.json b/data/rpqa/A/5/train.json new file mode 100644 index 0000000..6d93134 --- /dev/null +++ b/data/rpqa/A/5/train.json @@ -0,0 +1,42 @@ +[ + {"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"} +] \ No newline at end of file diff --git a/data/rpqa/A/Atrain-0.examples b/data/rpqa/A/Atrain-0.examples new file mode 100644 index 0000000..6bd39ed --- /dev/null +++ b/data/rpqa/A/Atrain-0.examples @@ -0,0 +1,40 @@ +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/A/Atrain-0.json b/data/rpqa/A/Atrain-0.json new file mode 100644 index 0000000..d3b3c08 --- /dev/null +++ b/data/rpqa/A/Atrain-0.json @@ -0,0 +1,12 @@ +[ +{"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"type": "HAS_HOBBY", "utterance": "i spend my free time swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, +{"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "FROM", "utterance": "i am from russia", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, +{"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, +{"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, +{"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/Atrain-1.examples b/data/rpqa/A/Atrain-1.examples new file mode 100644 index 0000000..ba6b1f0 --- /dev/null +++ b/data/rpqa/A/Atrain-1.examples @@ -0,0 +1,40 @@ +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) diff --git a/data/rpqa/A/Atrain-1.json b/data/rpqa/A/Atrain-1.json new file mode 100644 index 0000000..3d5183d --- /dev/null +++ b/data/rpqa/A/Atrain-1.json @@ -0,0 +1,12 @@ +[ +{"type": "FROM", "utterance": "i am from russia", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, +{"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, +{"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, +{"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, +{"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, +{"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, +{"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, +{"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, +{"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"} +] \ No newline at end of file diff --git a/data/rpqa/A/Atrain-2.examples b/data/rpqa/A/Atrain-2.examples new file mode 100644 index 0000000..334ed5a --- /dev/null +++ b/data/rpqa/A/Atrain-2.examples @@ -0,0 +1,40 @@ +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) diff --git a/data/rpqa/A/Atrain-2.json b/data/rpqa/A/Atrain-2.json new file mode 100644 index 0000000..33e9008 --- /dev/null +++ b/data/rpqa/A/Atrain-2.json @@ -0,0 +1,12 @@ +[ +{"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, +{"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, +{"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, +{"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, +{"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, +{"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"} +] \ No newline at end of file diff --git a/data/rpqa/A/Atrain-3.examples b/data/rpqa/A/Atrain-3.examples new file mode 100644 index 0000000..d64572c --- /dev/null +++ b/data/rpqa/A/Atrain-3.examples @@ -0,0 +1,40 @@ +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) diff --git a/data/rpqa/A/Atrain-3.json b/data/rpqa/A/Atrain-3.json new file mode 100644 index 0000000..ee3ff5d --- /dev/null +++ b/data/rpqa/A/Atrain-3.json @@ -0,0 +1,12 @@ +[ +{"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, +{"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, +{"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, +{"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"} +] \ No newline at end of file diff --git a/data/rpqa/A/Atrain-4.examples b/data/rpqa/A/Atrain-4.examples new file mode 100644 index 0000000..764235b --- /dev/null +++ b/data/rpqa/A/Atrain-4.examples @@ -0,0 +1,40 @@ +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) diff --git a/data/rpqa/A/Atrain-4.json b/data/rpqa/A/Atrain-4.json new file mode 100644 index 0000000..be6fe50 --- /dev/null +++ b/data/rpqa/A/Atrain-4.json @@ -0,0 +1,12 @@ +[ +{"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, +{"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, +{"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, +{"type": "LIVE_IN", "utterance": "my current home is warsaw", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, +{"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, +{"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, +{"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"} +] \ No newline at end of file diff --git a/data/rpqa/Q/1/test.examples b/data/rpqa/Q/1/test.examples new file mode 100644 index 0000000..092cc94 --- /dev/null +++ b/data/rpqa/Q/1/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) diff --git a/data/rpqa/Q/1/test.json b/data/rpqa/Q/1/test.json new file mode 100644 index 0000000..03b6af4 --- /dev/null +++ b/data/rpqa/Q/1/test.json @@ -0,0 +1,14 @@ +[ + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"} +] \ No newline at end of file diff --git a/data/rpqa/Q/1/train.examples b/data/rpqa/Q/1/train.examples new file mode 100644 index 0000000..d334c28 --- /dev/null +++ b/data/rpqa/Q/1/train.examples @@ -0,0 +1,224 @@ +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/1/train.json b/data/rpqa/Q/1/train.json new file mode 100644 index 0000000..8edad93 --- /dev/null +++ b/data/rpqa/Q/1/train.json @@ -0,0 +1,58 @@ +[ + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/2/test.examples b/data/rpqa/Q/2/test.examples new file mode 100644 index 0000000..3d498e4 --- /dev/null +++ b/data/rpqa/Q/2/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) diff --git a/data/rpqa/Q/2/test.json b/data/rpqa/Q/2/test.json new file mode 100644 index 0000000..3b38b6c --- /dev/null +++ b/data/rpqa/Q/2/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/2/train.examples b/data/rpqa/Q/2/train.examples new file mode 100644 index 0000000..3cb1c76 --- /dev/null +++ b/data/rpqa/Q/2/train.examples @@ -0,0 +1,224 @@ +(example + (utterance "Where do you earn your living?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/2/train.json b/data/rpqa/Q/2/train.json new file mode 100644 index 0000000..4237c9f --- /dev/null +++ b/data/rpqa/Q/2/train.json @@ -0,0 +1,58 @@ +[ + {"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/3/test.examples b/data/rpqa/Q/3/test.examples new file mode 100644 index 0000000..57a30e7 --- /dev/null +++ b/data/rpqa/Q/3/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) diff --git a/data/rpqa/Q/3/test.json b/data/rpqa/Q/3/test.json new file mode 100644 index 0000000..2179a59 --- /dev/null +++ b/data/rpqa/Q/3/test.json @@ -0,0 +1,14 @@ +[ + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/3/train.examples b/data/rpqa/Q/3/train.examples new file mode 100644 index 0000000..76ee33b --- /dev/null +++ b/data/rpqa/Q/3/train.examples @@ -0,0 +1,224 @@ +(example + (utterance "Where do you earn your living?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/3/train.json b/data/rpqa/Q/3/train.json new file mode 100644 index 0000000..c5874bf --- /dev/null +++ b/data/rpqa/Q/3/train.json @@ -0,0 +1,58 @@ +[ + {"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/4/test.examples b/data/rpqa/Q/4/test.examples new file mode 100644 index 0000000..3d0a465 --- /dev/null +++ b/data/rpqa/Q/4/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) diff --git a/data/rpqa/Q/4/test.json b/data/rpqa/Q/4/test.json new file mode 100644 index 0000000..173a7cd --- /dev/null +++ b/data/rpqa/Q/4/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"} +] \ No newline at end of file diff --git a/data/rpqa/Q/4/train.examples b/data/rpqa/Q/4/train.examples new file mode 100644 index 0000000..c58583e --- /dev/null +++ b/data/rpqa/Q/4/train.examples @@ -0,0 +1,224 @@ +(example + (utterance "Where do you earn your living?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/4/train.json b/data/rpqa/Q/4/train.json new file mode 100644 index 0000000..012ef69 --- /dev/null +++ b/data/rpqa/Q/4/train.json @@ -0,0 +1,58 @@ +[ + {"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/5/test.examples b/data/rpqa/Q/5/test.examples new file mode 100644 index 0000000..2302133 --- /dev/null +++ b/data/rpqa/Q/5/test.examples @@ -0,0 +1,48 @@ +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/5/test.json b/data/rpqa/Q/5/test.json new file mode 100644 index 0000000..0ec2bc4 --- /dev/null +++ b/data/rpqa/Q/5/test.json @@ -0,0 +1,14 @@ +[ + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/5/train.examples b/data/rpqa/Q/5/train.examples new file mode 100644 index 0000000..b8d8d85 --- /dev/null +++ b/data/rpqa/Q/5/train.examples @@ -0,0 +1,224 @@ +(example + (utterance "Where do you earn your living?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) diff --git a/data/rpqa/Q/5/train.json b/data/rpqa/Q/5/train.json new file mode 100644 index 0000000..d6896d4 --- /dev/null +++ b/data/rpqa/Q/5/train.json @@ -0,0 +1,58 @@ +[ + {"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/Qtrain-0.examples b/data/rpqa/Q/Qtrain-0.examples new file mode 100644 index 0000000..a91c8b7 --- /dev/null +++ b/data/rpqa/Q/Qtrain-0.examples @@ -0,0 +1,56 @@ +(example + (utterance "Where do you earn your living?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) diff --git a/data/rpqa/Q/Qtrain-0.json b/data/rpqa/Q/Qtrain-0.json new file mode 100644 index 0000000..69ac33b --- /dev/null +++ b/data/rpqa/Q/Qtrain-0.json @@ -0,0 +1,16 @@ +[ +{"type": "QWORK_FOR", "utterance": "Where do you earn your living?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QFRIEND_OF", "utterance": "Do you have a friend whom I have met?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"type": "QFROM", "utterance": "Which town do I call my home?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/Qtrain-1.examples b/data/rpqa/Q/Qtrain-1.examples new file mode 100644 index 0000000..fedacac --- /dev/null +++ b/data/rpqa/Q/Qtrain-1.examples @@ -0,0 +1,56 @@ +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do you have a friend whom I have met?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) diff --git a/data/rpqa/Q/Qtrain-1.json b/data/rpqa/Q/Qtrain-1.json new file mode 100644 index 0000000..68dca78 --- /dev/null +++ b/data/rpqa/Q/Qtrain-1.json @@ -0,0 +1,16 @@ +[ +{"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QFRIEND_OF", "utterance": "Do you have a friend whom I have met?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"type": "QFROM", "utterance": "Which town do I call my home?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/Qtrain-2.examples b/data/rpqa/Q/Qtrain-2.examples new file mode 100644 index 0000000..400e957 --- /dev/null +++ b/data/rpqa/Q/Qtrain-2.examples @@ -0,0 +1,56 @@ +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Maybe I know some friends of yours. Would you name one?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) diff --git a/data/rpqa/Q/Qtrain-2.json b/data/rpqa/Q/Qtrain-2.json new file mode 100644 index 0000000..387400f --- /dev/null +++ b/data/rpqa/Q/Qtrain-2.json @@ -0,0 +1,16 @@ +[ +{"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"type": "QFROM", "utterance": "Which town do I call my home?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"type": "QFROM", "utterance": "Where am I from?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/Qtrain-3.examples b/data/rpqa/Q/Qtrain-3.examples new file mode 100644 index 0000000..39a063a --- /dev/null +++ b/data/rpqa/Q/Qtrain-3.examples @@ -0,0 +1,56 @@ +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) diff --git a/data/rpqa/Q/Qtrain-3.json b/data/rpqa/Q/Qtrain-3.json new file mode 100644 index 0000000..7c7ce39 --- /dev/null +++ b/data/rpqa/Q/Qtrain-3.json @@ -0,0 +1,16 @@ +[ +{"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"type": "QFROM", "utterance": "Where am I from?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What is your profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/Q/Qtrain-4.examples b/data/rpqa/Q/Qtrain-4.examples new file mode 100644 index 0000000..7bd9b62 --- /dev/null +++ b/data/rpqa/Q/Qtrain-4.examples @@ -0,0 +1,56 @@ +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your profession?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/Q/Qtrain-4.json b/data/rpqa/Q/Qtrain-4.json new file mode 100644 index 0000000..a4e3e0d --- /dev/null +++ b/data/rpqa/Q/Qtrain-4.json @@ -0,0 +1,16 @@ +[ +{"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"type": "QFROM", "utterance": "Where am I from?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"type": "QOCCUPIED_AS", "utterance": "What is your profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, +{"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/merge-rpqa.py b/data/rpqa/merge-rpqa.py new file mode 100644 index 0000000..3692baf --- /dev/null +++ b/data/rpqa/merge-rpqa.py @@ -0,0 +1,56 @@ +#!/usr/bin/python +import glob, os +import json +from pprint import pprint +import codecs +import sys +from random import shuffle + +type = raw_input("[q]uestions or [a]nswers or other for all\n") +k = int(raw_input("Choose [k]-fold\n")) +if str(type) == "q": + add = "Q/" + add2 = "Q/Qtrain-" +elif str(type) == "a": + add = "A/" + add2 = "A/Atrain-" +else: + add = "./" + add2 = "train-" + + +for a in range(1,k+1): + train = open(add+str(a)+"/train.examples", "w") + train_json = open(add+str(a)+"/train.json", "w") + test = open(add+str(a)+"/test.examples", "w") + test_json = open(add+str(a)+"/test.json", "w") + train_json.write("[\n") + test_json.write("[\n") + for j in range(k): + if j == a-1: + continue + print add2 + str(j) + ".json" + f = codecs.open(add2 + str(j) + ".json", "r", "UTF-8") + data = json.load(f) + for i in range(len(data)): + train.write("(example\n") + train.write("\t(utterance \"" + data[i]["utterance"].encode('utf-8') + "\")\n") + train.write("\t(targetFormula " + data[i]["targetFormula"].encode('utf-8') + ")\n)") + train.write("\n") + if (j < len(data)-1) and (not i+j == 0 and not (i==0 and j == 1 and a-1 == 0)): + train_json.write(",\n") + train_json.write("\t") + json.dump(data[i], train_json) + train_json.write("\n]") + f = codecs.open("train-" + str(a-1) + ".json", "r", "UTF-8") + data = json.load(f) + for i in range(len(data)): + test.write("(example\n") + test.write("\t(utterance \"" + data[i]["utterance"].encode('utf-8') + "\")\n") + test.write("\t(targetFormula " + data[i]["targetFormula"].encode('utf-8') + ")\n)") + test.write("\n") + if i > 0: + test_json.write(",\n") + test_json.write("\t") + json.dump(data[i], test_json) + test_json.write("\n]") diff --git a/data/rpqa/process-rpqa.py b/data/rpqa/process-rpqa.py new file mode 100644 index 0000000..fffc4fe --- /dev/null +++ b/data/rpqa/process-rpqa.py @@ -0,0 +1,51 @@ +#!/usr/bin/python +import glob, os +import json +from pprint import pprint +import codecs +import sys + +type = raw_input("[q]uestions or [a]nswers or other for all\n") +if str(type) == "q": + print "Q" + f = codecs.open('rpqa-train.json', 'r', 'UTF-8') + data = json.load(f) + output = open("rpqa-train-q.examples", "w") + output_json = open("rpqa-train-q.json", "w") + output_json.write("[\n") + for record in data: + if record["type"][0] == 'Q': + output.write("(example\n") + output.write("\t(utterance \"" + record["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + record["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") + json.dump(record, output_json) + output_json.write(",\n") + output_json.write("\n]") +elif str(type) == "a": + print "A" + f = codecs.open('rpqa-train.json', 'r', 'UTF-8') + data = json.load(f) + output = open("rpqa-train-a.examples", "w") + output_json = open("rpqa-train-a.json", "w") + output_json.write("[\n") + for record in data: + if record["type"][0] != 'Q': + output.write("(example\n") + output.write("\t(utterance \"" + record["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + record["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") + json.dump(record, output_json) + output_json.write(",\n") + output_json.write("\n]") +else: + print "All" + f = codecs.open('rpqa-train.json', 'r', 'UTF-8') + data = json.load(f) + output = open("rpqa-train.examples", "w") + for record in data: + if record["type"][0] != 'Q': + output.write("(example\n") + output.write("\t(utterance \"" + record["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + record["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") diff --git a/data/rpqa-train-a.examples b/data/rpqa/rpqa-train-a.examples similarity index 77% rename from data/rpqa-train-a.examples rename to data/rpqa/rpqa-train-a.examples index 10049c1..9cc4979 100644 --- a/data/rpqa-train-a.examples +++ b/data/rpqa/rpqa-train-a.examples @@ -2,6 +2,10 @@ (utterance "my name is emily") (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) ) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) (example (utterance "anna is my name") (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) @@ -46,6 +50,10 @@ (utterance "i was born in poland or russia") (targetFormula (triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))) ) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) (example (utterance "my favorite thing to do is swimming") (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) @@ -82,6 +90,10 @@ (utterance "my current home is warsaw") (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) ) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) (example (utterance "my best friend is ben") (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) @@ -110,6 +122,10 @@ (utterance "my alma mater is TUW") (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) ) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) (example (utterance "i am a Roboy Team member") (targetFormula (triples (triple rb:active_person rb:MEMBER_OF roboy_team))) @@ -118,6 +134,10 @@ (utterance "i belong to IAESTE") (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) ) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) (example (utterance "i work for EY") (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) @@ -138,6 +158,10 @@ (utterance "i earn my living at Samsung") (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) ) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) (example (utterance "my favorite movie is titanic") (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) @@ -154,6 +178,10 @@ (utterance "i like pulp fiction the most") (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) ) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) (example (utterance "i am a teacher") (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) @@ -166,3 +194,7 @@ (utterance "my field of expertise is finance") (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) ) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) diff --git a/data/rpqa/rpqa-train-a.json b/data/rpqa/rpqa-train-a.json new file mode 100644 index 0000000..5b162ff --- /dev/null +++ b/data/rpqa/rpqa-train-a.json @@ -0,0 +1,52 @@ +[ +{"utterance": "my name is emily", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, +{"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, +{"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, +{"utterance": "i am hannah", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF hannah))"}, +{"utterance": "call me christina", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, +{"utterance": "people call me sam", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, +{"utterance": "my name is elsa and anna", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, +{"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, +{"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, +{"utterance": "i am from russia", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, +{"utterance": "my home country is ukraine", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, +{"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, +{"utterance": "i was born in poland or russia", "type": "FROM", "targetFormula": "(triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))"}, +{"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, +{"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "i spend my free time swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "my favorite activity is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "i currently live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"utterance": "my current home is warsaw", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, +{"utterance": "my current home is warsaw and your current home is munich", "type": "LIVE_IN", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, +{"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, +{"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, +{"utterance": "my alma mater is TUW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, +{"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, +{"utterance": "i am a Roboy Team member", "type": "MEMBER_OF", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF roboy_team))"}, +{"utterance": "i belong to IAESTE", "type": "MEMBER_OF", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, +{"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, +{"utterance": "i work for EY", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, +{"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, +{"utterance": "my employer is Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, +{"utterance": "my favorite movie is titanic", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, +{"utterance": "i last saw finding nemo", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, +{"utterance": "my favorite tv show is ellen", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, +{"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, +{"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, +{"utterance": "i am a teacher", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, +{"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, +{"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, +{"utterance": "my field of expertise is finance and you work as a robot", "type": "OCCUPIED_AS", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"} +] diff --git a/data/rpqa-train-q.examples b/data/rpqa/rpqa-train-q.examples similarity index 54% rename from data/rpqa-train-q.examples rename to data/rpqa/rpqa-train-q.examples index 222de73..986177c 100644 --- a/data/rpqa-train-q.examples +++ b/data/rpqa/rpqa-train-q.examples @@ -19,7 +19,7 @@ (targetFormula (!rb:FROM rb:Roboy)) ) (example - (utterance "What is your home countr?") + (utterance "What is your home country?") (targetFormula (!rb:FROM rb:Roboy)) ) (example @@ -30,10 +30,6 @@ (utterance "What is your favorite thing to do?") (targetFormula (!rb:HAS_HOBBY rb:Roboy)) ) -(example - (utterance "What is your favorite thing to do?") - (targetFormula (!rb:HAS_HOBBY rb:Roboy)) -) (example (utterance "What do you do in your free time?") (targetFormula (!rb:HAS_HOBBY rb:Roboy)) @@ -158,3 +154,127 @@ (utterance "What is your field of expertise?") (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) ) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "Where am I from?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "Which town do I call my home?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do I do in my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "Where do I live?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What is my profession?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) diff --git a/data/rpqa/rpqa-train-q.json b/data/rpqa/rpqa-train-q.json new file mode 100644 index 0000000..0020640 --- /dev/null +++ b/data/rpqa/rpqa-train-q.json @@ -0,0 +1,72 @@ +[ +{"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "What is your name?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "Where were you born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "What is your home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "Which town do you call your home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "What is your favorite thing to do?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "What do you do in your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "What is your hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "Where is your current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "Who is your best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "Have I met any of your friends?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "Do you have a friend whom I have met?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "Maybe I know some friends of yours. Would you name one?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "Where do you study?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "What is your alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, +{"utterance": "Do you belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, +{"utterance": "Where do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "For which company do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "Where are you employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "Where do you earn your living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "What is your favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "Which comedy do you like the most?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "What do you do?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "What is your profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "What do you work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "What is my name?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, +{"utterance": "Where am I from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "Where was I born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "Which town do I call my home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "What is my favorite thing to do?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "What do I do in my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "What is my favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "Where do I live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, +{"utterance": "Which city do I live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, +{"utterance": "Where is my current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, +{"utterance": "Who is my best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, +{"utterance": "Where do I study?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "Which university do I go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "Am I a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Who is my employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Which organization do I work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "What is my favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"utterance": "What is my profession?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"} +] diff --git a/data/rpqa/rpqa-train.examples b/data/rpqa/rpqa-train.examples new file mode 100644 index 0000000..d52f2e9 --- /dev/null +++ b/data/rpqa/rpqa-train.examples @@ -0,0 +1,204 @@ +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "i am hannah") + (targetFormula (triples (triple rb:active_person rb:NAME_OF hannah))) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i am from russia") + (targetFormula (triples (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "i was born in poland or russia") + (targetFormula (triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "i spend my free time swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "my favorite activity is swimming and your hobby is swimming") + (targetFormula (list (triples (triple rb:active_person rb:HAS_HOBBY swim)) (triples (triple rb:Roboy rb:HAS_HOBBY swim)))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "my current home is warsaw") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN warsaw))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "i am a Roboy Team member") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF roboy_team))) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) diff --git a/data/rpqa/rpqa-train.json b/data/rpqa/rpqa-train.json new file mode 100644 index 0000000..23b66d7 --- /dev/null +++ b/data/rpqa/rpqa-train.json @@ -0,0 +1,122 @@ +[ + {"type": "QNAME", "utterance": "How can I call you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is your name?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QNAME", "utterance": "Who are you?", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where are you from?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QFROM", "utterance": "Where were you born?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QFROM", "utterance": "What is your home country?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QFROM", "utterance": "Which town do you call your home?", "targetFormula": "(!rb:FROM rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What do you do in your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "How do you spend your free time?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QHAS_HOBBY", "utterance": "What is your favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where do you live?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Which city do you live in?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QLIVE_IN", "utterance": "Where is your current home?", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, + {"type": "QFRIEND_OF", "utterance": "Who is your best friend?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "QFRIEND_OF", "utterance": "Have I met any of your friends?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "QFRIEND_OF", "utterance": "Do you have a friend whom I have met?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "QFRIEND_OF", "utterance": "Maybe I know some friends of yours. Would you name one?", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Where do you study?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you go to?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do you study at?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QSTUDY_AT", "utterance": "What is your alma mater?", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Are you a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QMEMBER_OF", "utterance": "Do you belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "For which company do you work?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Who is your employer?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where are you employed?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do you work at?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QWORK_FOR", "utterance": "Where do you earn your living?", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is your favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What was the last movie you saw in the cinema?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "What is your favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QMOVIES", "utterance": "Which comedy do you like the most?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you do?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do you work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is your field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, + {"type": "QNAME", "utterance": "What is my name?", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, + {"type": "QFROM", "utterance": "Where am I from?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "QFROM", "utterance": "Where was I born?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "QFROM", "utterance": "What is my home country?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "QFROM", "utterance": "Which town do I call my home?", "targetFormula": "(!rb:FROM rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite thing to do?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What do I do in my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my hobby?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "How do I spend my free time?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QHAS_HOBBY", "utterance": "What is my favorite pastime activity?", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, + {"type": "QLIVE_IN", "utterance": "Where do I live?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QLIVE_IN", "utterance": "Which city do I live in?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QLIVE_IN", "utterance": "Where is my current home?", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, + {"type": "QFRIEND_OF", "utterance": "Who is my best friend?", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Where do I study?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I go to?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "Which university do I study at?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QSTUDY_AT", "utterance": "What is my alma mater?", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Am I a member of some cool organization?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QMEMBER_OF", "utterance": "Do I belong to any organizations?", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Where do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "For which company do I work?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Who is my employer?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Where am I employed?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Which organization do I work at?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QWORK_FOR", "utterance": "Where do I earn my living?", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favourite movie?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QMOVIES", "utterance": "What is my favorite TV show?", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my profession?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What do I work as?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "QOCCUPIED_AS", "utterance": "What is my field of expertise?", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, + {"type": "NAME", "utterance": "my name is emily", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, + {"utterance": "my name is emily and your name is roboy", "type": "NAME", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, + {"type": "NAME", "utterance": "anna is my name", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "NAME", "utterance": "i am hannah", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF hannah))"}, + {"type": "NAME", "utterance": "call me christina", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, + {"type": "NAME", "utterance": "people call me sam", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, + {"type": "NAME", "utterance": "my name is elsa and anna", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, + {"type": "NAME", "utterance": "my or your name or hobby is emily and alona", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, + {"type": "FROM", "utterance": "i come from poland", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, + {"type": "FROM", "utterance": "i am from russia", "targetFormula": "(triples (triple rb:active_person rb:FROM russia))"}, + {"type": "FROM", "utterance": "my home country is ukraine", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, + {"type": "FROM", "utterance": "i was born in nicaragua", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, + {"type": "FROM", "utterance": "i was born in poland or russia", "targetFormula": "(triples or (triple rb:active_person rb:FROM poland) (triple rb:active_person rb:FROM russia))"}, + {"type": "FROM", "utterance": "i was born in poland and you were born in switzerland", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite thing to do is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "HAS_HOBBY", "utterance": "my hobby is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "HAS_HOBBY", "utterance": "i like swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "HAS_HOBBY", "utterance": "i swim in my free time", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "HAS_HOBBY", "utterance": "i spend my free time swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "HAS_HOBBY", "utterance": "my favorite activity is swimming", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, + {"type": "LIVE_IN", "utterance": "i currently live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "LIVE_IN", "utterance": "i live in munich", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN warsaw))"}, + {"type": "LIVE_IN", "utterance": "my current home is warsaw and your current home is munich", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, + {"type": "FRIEND_OF", "utterance": "my best friend is ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "FRIEND_OF", "utterance": "i am friends with ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "FRIEND_OF", "utterance": "you met my friend ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "FRIEND_OF", "utterance": "my friend is called ben", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, + {"type": "STUDY_AT", "utterance": "i study at TUM", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, + {"type": "STUDY_AT", "utterance": "i go to UW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, + {"type": "STUDY_AT", "utterance": "my alma mater is TUW and you go to TUM", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, + {"type": "MEMBER_OF", "utterance": "i am a Roboy Team member", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF roboy_team))"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, + {"type": "MEMBER_OF", "utterance": "i belong to IAESTE and you belong to Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"}, + {"type": "WORK_FOR", "utterance": "i work for EY", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, + {"type": "WORK_FOR", "utterance": "i work at Nokia", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, + {"type": "WORK_FOR", "utterance": "my employer is Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "WORK_FOR", "utterance": "i am employed at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, + {"type": "WORK_FOR", "utterance": "i earn my living at Samsung and you work at Roboy", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, + {"type": "MOVIES", "utterance": "my favorite movie is titanic", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, + {"type": "MOVIES", "utterance": "i last saw finding nemo", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, + {"type": "MOVIES", "utterance": "i like pulp fiction the most", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, + {"type": "MOVIES", "utterance": "my favorite tv show is ellen and your favorite movie is titanic", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, + {"type": "OCCUPIED_AS", "utterance": "i am a teacher", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, + {"type": "OCCUPIED_AS", "utterance": "i work as a nurse", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, + {"type": "OCCUPIED_AS", "utterance": "my field of expertise is finance and you work as a robot", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"} +] diff --git a/data/rpqa/split-rpqa.py b/data/rpqa/split-rpqa.py new file mode 100644 index 0000000..7197cdd --- /dev/null +++ b/data/rpqa/split-rpqa.py @@ -0,0 +1,64 @@ +#!/usr/bin/python +import glob, os +import json +from pprint import pprint +import codecs +import sys +from random import shuffle + +type = raw_input("[q]uestions or [a]nswers or other for all\n") +k = int(raw_input("Choose [k]-fold\n")) +if str(type) == "q": + f = codecs.open('rpqa-train-q.json', 'r', 'UTF-8') + data = json.load(f) + shuffle(data) + print len(data), k + for j in range(k): + output = open("Q/Qtrain-"+str(j)+".examples", "w") + output_json = open("Q/Qtrain-"+str(j)+".json", "w") + output_json.write("[\n") + for i in range(len(data)/k): + output.write("(example\n") + output.write("\t(utterance \"" + data[j*k+i]["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + data[j*k+i]["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") + json.dump(data[j*k+i], output_json) + if i < len(data)/k-1: + output_json.write(",\n") + output_json.write("\n]") +elif str(type) == "a": + f = codecs.open('rpqa-train-a.json', 'r', 'UTF-8') + data = json.load(f) + shuffle(data) + print len(data), k + for j in range(k): + output = open("A/Atrain-"+str(j)+".examples", "w") + output_json = open("A/Atrain-"+str(j)+".json", "w") + output_json.write("[\n") + for i in range(len(data)/k): + output.write("(example\n") + output.write("\t(utterance \"" + data[j*k+i]["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + data[j*k+i]["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") + json.dump(data[j*k+i], output_json) + if i < len(data)/k-1: + output_json.write(",\n") + output_json.write("\n]") +else: + f = codecs.open('rpqa-train.json', 'r', 'UTF-8') + data = json.load(f) + shuffle(data) + print len(data), k + for j in range(k): + output = open("train-"+str(j)+".examples", "w") + output_json = open("train-"+str(j)+".json", "w") + output_json.write("[\n") + for i in range(len(data)/k): + output.write("(example\n") + output.write("\t(utterance \"" + data[j*k+i]["utterance"].encode('utf-8') + "\")\n") + output.write("\t(targetFormula " + data[j*k+i]["targetFormula"].encode('utf-8') + ")\n)") + output.write("\n") + json.dump(data[j*k+i], output_json) + if i < len(data)/k-1: + output_json.write(",\n") + output_json.write("\n]") diff --git a/data/rpqa/train-0.examples b/data/rpqa/train-0.examples new file mode 100644 index 0000000..092cc94 --- /dev/null +++ b/data/rpqa/train-0.examples @@ -0,0 +1,48 @@ +(example + (utterance "i like swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "For which company do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i was born in poland and you were born in switzerland") + (targetFormula (list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))) +) +(example + (utterance "What is your hobby?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "What is your favorite pastime activity?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i am friends with ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Which organization do you work at?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "my field of expertise is finance") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS finance))) +) +(example + (utterance "Are you a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "you met my friend ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) diff --git a/data/rpqa/train-0.json b/data/rpqa/train-0.json new file mode 100644 index 0000000..d303529 --- /dev/null +++ b/data/rpqa/train-0.json @@ -0,0 +1,14 @@ +[ +{"utterance": "i like swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "For which company do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "i was born in poland and you were born in switzerland", "type": "FROM", "targetFormula": "(list (triples (triple rb:active_person rb:FROM poland)) (triples (triple rb:Roboy rb:FROM switzerland)))"}, +{"utterance": "What is your hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "What is your favorite pastime activity?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "i am friends with ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "Which organization do you work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "my field of expertise is finance", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS finance))"}, +{"utterance": "Are you a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, +{"utterance": "you met my friend ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "Who is your best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "my name is emily", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"} +] \ No newline at end of file diff --git a/data/rpqa/train-1.examples b/data/rpqa/train-1.examples new file mode 100644 index 0000000..3d498e4 --- /dev/null +++ b/data/rpqa/train-1.examples @@ -0,0 +1,48 @@ +(example + (utterance "Who is your best friend?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my name is emily") + (targetFormula (triples (triple rb:active_person rb:NAME_OF emily))) +) +(example + (utterance "my current home is warsaw and your current home is munich") + (targetFormula (list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))) +) +(example + (utterance "What is your home country?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "people call me sam") + (targetFormula (triples (triple rb:active_person rb:NAME_OF sam))) +) +(example + (utterance "my favorite activity is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Who is my best friend?") + (targetFormula (!rb:FRIEND_OF rb:active_person)) +) +(example + (utterance "What is my field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "i am a teacher") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS teacher))) +) +(example + (utterance "Where am I employed?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) diff --git a/data/rpqa/train-1.json b/data/rpqa/train-1.json new file mode 100644 index 0000000..0456fd3 --- /dev/null +++ b/data/rpqa/train-1.json @@ -0,0 +1,14 @@ +[ +{"utterance": "Who is your best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "my name is emily", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF emily))"}, +{"utterance": "my current home is warsaw and your current home is munich", "type": "LIVE_IN", "targetFormula": "(list (triples (triple rb:active_person rb:LIVE_IN warsaw)) (triples (triple rb:roboy rb:LIVE_IN munich)))"}, +{"utterance": "What is your home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "people call me sam", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF sam))"}, +{"utterance": "my favorite activity is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "Who is my best friend?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:active_person)"}, +{"utterance": "What is my field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"utterance": "i am a teacher", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS teacher))"}, +{"utterance": "Where am I employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "my home country is ukraine", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, +{"utterance": "Where is your current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/train-2.examples b/data/rpqa/train-2.examples new file mode 100644 index 0000000..57a30e7 --- /dev/null +++ b/data/rpqa/train-2.examples @@ -0,0 +1,48 @@ +(example + (utterance "my home country is ukraine") + (targetFormula (triples (triple rb:active_person rb:FROM ukraine))) +) +(example + (utterance "Where is your current home?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "What was the last movie you saw in the cinema?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i work for EY") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR ey))) +) +(example + (utterance "my friend is called ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "my alma mater is TUW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tuw))) +) +(example + (utterance "i like pulp fiction the most") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))) +) +(example + (utterance "i currently live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "i last saw finding nemo") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))) +) +(example + (utterance "i swim in my free time") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) diff --git a/data/rpqa/train-2.json b/data/rpqa/train-2.json new file mode 100644 index 0000000..b37db61 --- /dev/null +++ b/data/rpqa/train-2.json @@ -0,0 +1,14 @@ +[ +{"utterance": "my home country is ukraine", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM ukraine))"}, +{"utterance": "Where is your current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "What was the last movie you saw in the cinema?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "i work for EY", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR ey))"}, +{"utterance": "my friend is called ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "my alma mater is TUW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tuw))"}, +{"utterance": "i like pulp fiction the most", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE pulp_fiction))"}, +{"utterance": "i currently live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"utterance": "i last saw finding nemo", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE finding_nemo))"}, +{"utterance": "i swim in my free time", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"utterance": "What do you do?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/train-3.examples b/data/rpqa/train-3.examples new file mode 100644 index 0000000..3d0a465 --- /dev/null +++ b/data/rpqa/train-3.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "What do you do?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "i go to UW") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT uw))) +) +(example + (utterance "Am I a member of some cool organization?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "i work at Nokia") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR nokia))) +) +(example + (utterance "How do you spend your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i earn my living at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "i was born in nicaragua") + (targetFormula (triples (triple rb:active_person rb:FROM nicaragua))) +) +(example + (utterance "my hobby is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "What is your name?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) diff --git a/data/rpqa/train-3.json b/data/rpqa/train-3.json new file mode 100644 index 0000000..8acd79b --- /dev/null +++ b/data/rpqa/train-3.json @@ -0,0 +1,14 @@ +[ +{"utterance": "What is my favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"utterance": "What do you do?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "i go to UW", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT uw))"}, +{"utterance": "Am I a member of some cool organization?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"utterance": "i work at Nokia", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR nokia))"}, +{"utterance": "How do you spend your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "i earn my living at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "i was born in nicaragua", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM nicaragua))"}, +{"utterance": "my hobby is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "What is your name?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "Where was I born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"} +] \ No newline at end of file diff --git a/data/rpqa/train-4.examples b/data/rpqa/train-4.examples new file mode 100644 index 0000000..2302133 --- /dev/null +++ b/data/rpqa/train-4.examples @@ -0,0 +1,48 @@ +(example + (utterance "Where was I born?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my or your name or hobby is emily and alona") + (targetFormula (triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))) +) +(example + (utterance "Where do you work?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "What is your alma mater?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "my name is emily and your name is roboy") + (targetFormula (list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))) +) +(example + (utterance "What is my favorite thing to do?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What do you work as?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "my favorite tv show is ellen and your favorite movie is titanic") + (targetFormula (list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))) +) +(example + (utterance "my name is elsa and anna") + (targetFormula (triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I earn my living?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) diff --git a/data/rpqa/train-4.json b/data/rpqa/train-4.json new file mode 100644 index 0000000..7be4d01 --- /dev/null +++ b/data/rpqa/train-4.json @@ -0,0 +1,14 @@ +[ +{"utterance": "Where was I born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "my or your name or hobby is emily and alona", "type": "NAME", "targetFormula": "(triples or (triples or (triples (triple rb:active_person rb:NAME_OF emily) (triple rb:active_person rb:NAME_OF alona)) (triples (triple rb:active_person rb:HAS_HOBBY emily) (triple rb:active_person rb:HAS_HOBBY alona))) (triples or (triples (triple rb:Roboy rb:NAME_OF emily) (triple rb:Roboy rb:NAME_OF alona)) (triples (triple rb:Roboy rb:HAS_HOBBY emily) (triple rb:Roboy rb:HAS_HOBBY alona))))"}, +{"utterance": "Where do you work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "What is your alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"type": "NAME", "utterance": "my name is emily and your name is roboy", "targetFormula": "(list (triples (triple rb:active_person rb:NAME_OF emily)) (triples (triple rb:Roboy rb:NAME_OF roboy)))"}, +{"utterance": "What is my favorite thing to do?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "What do you work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "my favorite tv show is ellen and your favorite movie is titanic", "type": "MOVIES", "targetFormula": "(list (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen)) (triples (triple rb:Roboy rb:FAVORITE_MOVIE titanic)))"}, +{"utterance": "my name is elsa and anna", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF elsa) (triple rb:active_person rb:NAME_OF anna))"}, +{"utterance": "Where do I earn my living?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "What is your favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"} +] \ No newline at end of file diff --git a/data/rpqa/train-5.examples b/data/rpqa/train-5.examples new file mode 100644 index 0000000..0c407f0 --- /dev/null +++ b/data/rpqa/train-5.examples @@ -0,0 +1,48 @@ +(example + (utterance "i am employed at Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "What is your favorite TV show?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Which comedy do you like the most?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "i belong to IAESTE") + (targetFormula (triples (triple rb:active_person rb:MEMBER_OF iaeste))) +) +(example + (utterance "i come from poland") + (targetFormula (triples (triple rb:active_person rb:FROM poland))) +) +(example + (utterance "i study at TUM") + (targetFormula (triples (triple rb:active_person rb:STUDY_AT tum))) +) +(example + (utterance "How do I spend my free time?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "What is my favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:active_person)) +) +(example + (utterance "my favorite tv show is ellen") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))) +) +(example + (utterance "For which company do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) diff --git a/data/rpqa/train-5.json b/data/rpqa/train-5.json new file mode 100644 index 0000000..acd4539 --- /dev/null +++ b/data/rpqa/train-5.json @@ -0,0 +1,14 @@ +[ +{"utterance": "i am employed at Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "What is your favorite TV show?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "Which comedy do you like the most?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "i belong to IAESTE", "type": "MEMBER_OF", "targetFormula": "(triples (triple rb:active_person rb:MEMBER_OF iaeste))"}, +{"utterance": "i come from poland", "type": "FROM", "targetFormula": "(triples (triple rb:active_person rb:FROM poland))"}, +{"utterance": "i study at TUM", "type": "STUDY_AT", "targetFormula": "(triples (triple rb:active_person rb:STUDY_AT tum))"}, +{"utterance": "How do I spend my free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "What is my favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:active_person)"}, +{"utterance": "my favorite tv show is ellen", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE ellen))"}, +{"utterance": "For which company do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"utterance": "Who is my employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/train-6.examples b/data/rpqa/train-6.examples new file mode 100644 index 0000000..9c757a0 --- /dev/null +++ b/data/rpqa/train-6.examples @@ -0,0 +1,48 @@ +(example + (utterance "Do I belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:active_person)) +) +(example + (utterance "Who is my employer?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which organization do I work at?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "What is your field of expertise?") + (targetFormula (!rb:OCCUPIED_AS rb:Roboy)) +) +(example + (utterance "What is my name?") + (targetFormula (!rb:NAME_OF rb:active_person)) +) +(example + (utterance "i earn my living at Samsung and you work at Roboy") + (targetFormula (list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))) +) +(example + (utterance "my favorite movie is titanic") + (targetFormula (triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))) +) +(example + (utterance "Which city do I live in?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "i live in munich") + (targetFormula (triples (triple rb:active_person rb:LIVE_IN munich))) +) +(example + (utterance "Have I met any of your friends?") + (targetFormula (!rb:FRIEND_OF rb:Roboy)) +) +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) diff --git a/data/rpqa/train-6.json b/data/rpqa/train-6.json new file mode 100644 index 0000000..e2470e7 --- /dev/null +++ b/data/rpqa/train-6.json @@ -0,0 +1,14 @@ +[ +{"utterance": "Do I belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:active_person)"}, +{"utterance": "Who is my employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Which organization do I work at?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "What is your field of expertise?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:Roboy)"}, +{"utterance": "What is my name?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:active_person)"}, +{"utterance": "i earn my living at Samsung and you work at Roboy", "type": "WORK_FOR", "targetFormula": "(list (triples (triple rb:active_person rb:WORK_FOR samsung)) (triples (triple rb:active_person rb:WORK_FOR roboy)))"}, +{"utterance": "my favorite movie is titanic", "type": "MOVIES", "targetFormula": "(triples (triple rb:active_person rb:FAVORITE_MOVIE titanic))"}, +{"utterance": "Which city do I live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, +{"utterance": "i live in munich", "type": "LIVE_IN", "targetFormula": "(triples (triple rb:active_person rb:LIVE_IN munich))"}, +{"utterance": "Have I met any of your friends?", "type": "QFRIEND_OF", "targetFormula": "(!rb:FRIEND_OF rb:Roboy)"}, +{"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, +{"utterance": "Which university do I go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/train-7.examples b/data/rpqa/train-7.examples new file mode 100644 index 0000000..0117f67 --- /dev/null +++ b/data/rpqa/train-7.examples @@ -0,0 +1,48 @@ +(example + (utterance "my alma mater is TUW and you go to TUM") + (targetFormula (list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))) +) +(example + (utterance "Which university do I go to?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my hobby?") + (targetFormula (!rb:HAS_HOBBY rb:active_person)) +) +(example + (utterance "my field of expertise is finance and you work as a robot") + (targetFormula (list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))) +) +(example + (utterance "What do I work as?") + (targetFormula (!rb:OCCUPIED_AS rb:active_person)) +) +(example + (utterance "call me christina") + (targetFormula (triples (triple rb:active_person rb:NAME_OF christina))) +) +(example + (utterance "What is your favourite movie?") + (targetFormula (!rb:FAVORITE_MOVIE rb:Roboy)) +) +(example + (utterance "Who is your employer?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "Which town do you call your home?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where do you live?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) diff --git a/data/rpqa/train-7.json b/data/rpqa/train-7.json new file mode 100644 index 0000000..c303168 --- /dev/null +++ b/data/rpqa/train-7.json @@ -0,0 +1,14 @@ +[ +{"utterance": "my alma mater is TUW and you go to TUM", "type": "STUDY_AT", "targetFormula": "(list (triples (triple rb:active_person rb:STUDY_AT tuw)) (triples (triple rb:Roboy rb:STUDY_AT tum)))"}, +{"utterance": "Which university do I go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "What is my hobby?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:active_person)"}, +{"utterance": "my field of expertise is finance and you work as a robot", "type": "OCCUPIED_AS", "targetFormula": "(list (triples (triple rb:active_person rb:OCCUPIED_AS finance)) (triples (triple rb:Roboy rb:OCCUPIED_AS robot)))"}, +{"utterance": "What do I work as?", "type": "QOCCUPIED_AS", "targetFormula": "(!rb:OCCUPIED_AS rb:active_person)"}, +{"utterance": "call me christina", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF christina))"}, +{"utterance": "What is your favourite movie?", "type": "QMOVIES", "targetFormula": "(!rb:FAVORITE_MOVIE rb:Roboy)"}, +{"utterance": "Who is your employer?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "Which town do you call your home?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "Where do you live?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Where is my current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"} +] \ No newline at end of file diff --git a/data/rpqa/train-8.examples b/data/rpqa/train-8.examples new file mode 100644 index 0000000..d061a8d --- /dev/null +++ b/data/rpqa/train-8.examples @@ -0,0 +1,48 @@ +(example + (utterance "Which university do you study at?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where is my current home?") + (targetFormula (!rb:LIVE_IN rb:active_person)) +) +(example + (utterance "my favorite thing to do is swimming") + (targetFormula (triples (triple rb:active_person rb:HAS_HOBBY swim))) +) +(example + (utterance "Which university do I study at?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "my best friend is ben") + (targetFormula (triples (triple rb:active_person rb:FRIEND_OF ben))) +) +(example + (utterance "How can I call you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "What do you do in your free time?") + (targetFormula (!rb:HAS_HOBBY rb:Roboy)) +) +(example + (utterance "i work as a nurse") + (targetFormula (triples (triple rb:active_person rb:OCCUPIED_AS nurse))) +) +(example + (utterance "Which city do you live in?") + (targetFormula (!rb:LIVE_IN rb:Roboy)) +) +(example + (utterance "Where are you from?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) diff --git a/data/rpqa/train-8.json b/data/rpqa/train-8.json new file mode 100644 index 0000000..51dcf3f --- /dev/null +++ b/data/rpqa/train-8.json @@ -0,0 +1,14 @@ +[ +{"utterance": "Which university do you study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Where is my current home?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:active_person)"}, +{"utterance": "my favorite thing to do is swimming", "type": "HAS_HOBBY", "targetFormula": "(triples (triple rb:active_person rb:HAS_HOBBY swim))"}, +{"utterance": "Which university do I study at?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "my best friend is ben", "type": "FRIEND_OF", "targetFormula": "(triples (triple rb:active_person rb:FRIEND_OF ben))"}, +{"utterance": "How can I call you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "What do you do in your free time?", "type": "QHAS_HOBBY", "targetFormula": "(!rb:HAS_HOBBY rb:Roboy)"}, +{"utterance": "i work as a nurse", "type": "OCCUPIED_AS", "targetFormula": "(triples (triple rb:active_person rb:OCCUPIED_AS nurse))"}, +{"utterance": "Which city do you live in?", "type": "QLIVE_IN", "targetFormula": "(!rb:LIVE_IN rb:Roboy)"}, +{"utterance": "Where are you from?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"} +] \ No newline at end of file diff --git a/data/rpqa/train-9.examples b/data/rpqa/train-9.examples new file mode 100644 index 0000000..709ad99 --- /dev/null +++ b/data/rpqa/train-9.examples @@ -0,0 +1,48 @@ +(example + (utterance "What is my alma mater?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "anna is my name") + (targetFormula (triples (triple rb:active_person rb:NAME_OF anna))) +) +(example + (utterance "Where do I work?") + (targetFormula (!rb:WORK_FOR rb:active_person)) +) +(example + (utterance "Which university do you go to?") + (targetFormula (!rb:STUDY_AT rb:Roboy)) +) +(example + (utterance "Where do I study?") + (targetFormula (!rb:STUDY_AT rb:active_person)) +) +(example + (utterance "What is my home country?") + (targetFormula (!rb:FROM rb:active_person)) +) +(example + (utterance "my employer is Samsung") + (targetFormula (triples (triple rb:active_person rb:WORK_FOR samsung))) +) +(example + (utterance "Who are you?") + (targetFormula (!rb:NAME_OF rb:Roboy)) +) +(example + (utterance "Do you belong to any organizations?") + (targetFormula (!rb:MEMBER_OF rb:Roboy)) +) +(example + (utterance "Where were you born?") + (targetFormula (!rb:FROM rb:Roboy)) +) +(example + (utterance "Where are you employed?") + (targetFormula (!rb:WORK_FOR rb:Roboy)) +) +(example + (utterance "i belong to IAESTE and you belong to Roboy") + (targetFormula (list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))) +) diff --git a/data/rpqa/train-9.json b/data/rpqa/train-9.json new file mode 100644 index 0000000..d276d52 --- /dev/null +++ b/data/rpqa/train-9.json @@ -0,0 +1,14 @@ +[ +{"utterance": "What is my alma mater?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "anna is my name", "type": "NAME", "targetFormula": "(triples (triple rb:active_person rb:NAME_OF anna))"}, +{"utterance": "Where do I work?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:active_person)"}, +{"utterance": "Which university do you go to?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:Roboy)"}, +{"utterance": "Where do I study?", "type": "QSTUDY_AT", "targetFormula": "(!rb:STUDY_AT rb:active_person)"}, +{"utterance": "What is my home country?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:active_person)"}, +{"utterance": "my employer is Samsung", "type": "WORK_FOR", "targetFormula": "(triples (triple rb:active_person rb:WORK_FOR samsung))"}, +{"utterance": "Who are you?", "type": "QNAME", "targetFormula": "(!rb:NAME_OF rb:Roboy)"}, +{"utterance": "Do you belong to any organizations?", "type": "QMEMBER_OF", "targetFormula": "(!rb:MEMBER_OF rb:Roboy)"}, +{"utterance": "Where were you born?", "type": "QFROM", "targetFormula": "(!rb:FROM rb:Roboy)"}, +{"utterance": "Where are you employed?", "type": "QWORK_FOR", "targetFormula": "(!rb:WORK_FOR rb:Roboy)"}, +{"utterance": "i belong to IAESTE and you belong to Roboy", "type": "MEMBER_OF", "targetFormula": "(list (triples (triple rb:active_person rb:MEMBER_OF iaeste)) (triples (triple rb:Roboy rb:MEMBER_OF Roboy)))"} +] \ No newline at end of file diff --git a/pom.xml b/pom.xml index d2345f9..a11927b 100644 --- a/pom.xml +++ b/pom.xml @@ -116,6 +116,18 @@ + -FeatureExtractor.featureDomains + rule + + dependencyParse + -Dataset.inPaths + train:data/rpqa/1/train.examples + -Derivation.derivComparator + ScoredDerivationComparator + -Params.initWeightsRandomly + true + -Learner.maxTrainIters + 1 -Builder.executor roboy.SparqlExecutor -Builder.simple_executor @@ -147,7 +159,7 @@ dependencyParse -Dataset.inPaths - train:data/rpqa-train.examples + train:data/rpqa/1/train.examples -Params.initWeightsRandomly true -Learner.maxTrainIters @@ -204,6 +216,18 @@ + + + + + + + + + + + + -Builder.executor roboy.SparqlExecutor -Builder.simple_executor @@ -213,7 +237,7 @@ -Grammar.inPaths resources/roboy-demo.grammar -SimpleLexicon.inPaths - resources/lexicons/roboy-dbpedia.lexicon + resources/lexicons/roboy-demo.lexicon -languageAnalyzer corenlp.CoreNLPAnalyzer -Main.server diff --git a/resources/lexicons/roboy-dbpedia.lexicon b/resources/lexicons/roboy-dbpedia.lexicon index 7a65727..93aa338 100644 --- a/resources/lexicons/roboy-dbpedia.lexicon +++ b/resources/lexicons/roboy-dbpedia.lexicon @@ -16,7 +16,8 @@ {"lexeme": "call", "formula": "rb:NAME_OF", "type" : "Relationship"} {"lexeme": "like", "formula": "rb:HAS_HOBBY", "type" : "Relationship"} {"lexeme": "like", "formula": "rb:FRIEND_OF", "type" : "Relationship"} -{"lexeme": "born in", "formula": "rb:FROM", "type" : "Relationship"} +{"lexeme": "bear in", "formula": "rb:FROM", "type" : "Relationship"} +{"lexeme": "be bear in", "formula": "rb:FROM", "type" : "Relationship"} {"lexeme": "come from", "formula": "rb:FROM", "type" : "Relationship"} {"lexeme": "be from", "formula": "rb:FROM", "type" : "Relationship"} {"lexeme": "go to", "formula": "rb:STUDY_AT", "type" : "Relationship"} @@ -24,11 +25,38 @@ {"lexeme": "study at", "formula": "rb:STUDY_AT", "type" : "Relationship"} {"lexeme": "work for", "formula": "rb:WORK_FOR", "type" : "Relationship"} {"lexeme": "work at", "formula": "rb:WORK_FOR", "type" : "Relationship"} +{"lexeme": "be employ", "formula": "rb:WORK_FOR", "type" : "Relationship"} {"lexeme": "work as", "formula": "rb:OCCUPIED_AS", "type" : "Relationship"} {"lexeme": "live in", "formula": "rb:LIVE_IN", "type" : "Relationship"} {"lexeme": "lives in", "formula": "rb:LIVE_IN", "type" : "Relationship"} +{"lexeme": "be friend with", "formula": "rb:FRIEND_OF", "type" : "Relationship"} {"lexeme": "belong to", "formula": "rb:MEMBER_OF", "type" : "Relationship"} +{"lexeme": "call", "formula": "!rb:NAME_OF", "type" : "QRoboy"} +{"lexeme": "like", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "like", "formula": "!rb:FRIEND_OF", "type" : "QRoboy"} +{"lexeme": "like", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "bear", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "bear in", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "be bear in", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "come from", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "be from", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "from", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "go to", "formula": "!rb:STUDY_AT", "type" : "QRoboy"} +{"lexeme": "study", "formula": "!rb:STUDY_AT", "type" : "QRoboy"} +{"lexeme": "study at", "formula": "!rb:STUDY_AT", "type" : "QRoboy"} +{"lexeme": "work for", "formula": "!rb:WORK_FOR", "type" : "QRoboy"} +{"lexeme": "work at", "formula": "!rb:WORK_FOR", "type" : "QRoboy"} +{"lexeme": "be employ", "formula": "!rb:WORK_FOR", "type" : "QRoboy"} +{"lexeme": "employ", "formula": "!rb:WORK_FOR", "type" : "QRoboy"} +{"lexeme": "work as", "formula": "!rb:OCCUPIED_AS", "type" : "QRoboy"} +{"lexeme": "live in", "formula": "!rb:LIVE_IN", "type" : "QRoboy"} +{"lexeme": "live", "formula": "!rb:LIVE_IN", "type" : "QRoboy"} +{"lexeme": "lives in", "formula": "!rb:LIVE_IN", "type" : "QRoboy"} +{"lexeme": "be friend with", "formula": "!rb:FRIEND_OF", "type" : "QRoboy"} +{"lexeme": "friend with", "formula": "!rb:FRIEND_OF", "type" : "QRoboy"} +{"lexeme": "belong to", "formula": "!rb:MEMBER_OF", "type" : "QRoboy"} + ## Classes {"lexeme": "object", "formula": "rb:OBJECT", "type" : "ObjectClass"} {"lexeme": "person", "formula": "rb:PERSON", "type" : "ObjectClass"} @@ -44,21 +72,55 @@ ## Relationship Classes {"lexeme": "hobby", "formula": "rb:HAS_HOBBY", "type" : "RelationClass"} +{"lexeme": "favorite activity", "formula": "rb:HAS_HOBBY", "type" : "RelationClass"} +{"lexeme": "favorite thing to do", "formula": "rb:HAS_HOBBY", "type" : "RelationClass"} {"lexeme": "employer", "formula": "rb:WORK_FOR", "type" : "RelationClass"} {"lexeme": "location", "formula": "rb:LIVE_IN", "type" : "RelationClass"} {"lexeme": "home", "formula": "rb:LIVE_IN", "type" : "RelationClass"} {"lexeme": "movie", "formula": "rb:FAVORITE_MOVIE", "type" : "RelationClass"} +{"lexeme": "favorite tv show", "formula": "rb:FAVORITE_MOVIE", "type" : "RelationClass"} +{"lexeme": "favorite movie", "formula": "rb:FAVORITE_MOVIE", "type" : "RelationClass"} +{"lexeme": "alma mater", "formula": "rb:STUDY_AT", "type" : "RelationClass"} {"lexeme": "university", "formula": "rb:STUDY_AT", "type" : "RelationClass"} {"lexeme": "child", "formula": "rb:CHILD_OF", "type" : "RelationClass"} {"lexeme": "friend", "formula": "rb:FRIEND_OF", "type" : "RelationClass"} +{"lexeme": "field of expertise", "formula": "rb:OCCUPIED_AS", "type" : "RelationClass"} +{"lexeme": "profession", "formula": "rb:OCCUPIED_AS", "type" : "RelationClass"} {"lexeme": "name", "formula": "rb:NAME_OF", "type" : "RelationClass"} {"lexeme": "home", "formula": "rb:FROM", "type" : "RelationClass"} {"lexeme": "age", "formula": "rb:AGE", "type" : "RelationClass"} {"lexeme": "member", "formula": "rb:MEMBER_OF", "type" : "RelationClass"} -{"lexeme": "member of", "formula": "rb:MEMBER_OF", "type" : "RelationClass"} {"lexeme": "part", "formula": "rb:PART_OF", "type" : "RelationClass"} {"lexeme": "relative", "formula": "rb:RELATIVE_OF", "type" : "RelationClass"} +{"lexeme": "hobby", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "activity", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "favourite activity", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "favorite activity", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "free time", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "favourite thing to do", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "favorite thing to do", "formula": "!rb:HAS_HOBBY", "type" : "QRoboy"} +{"lexeme": "employer", "formula": "!rb:WORK_FOR", "type" : "QRoboy"} +{"lexeme": "location", "formula": "!rb:LIVE_IN", "type" : "QRoboy"} +{"lexeme": "current home", "formula": "!rb:LIVE_IN", "type" : "QRoboy"} +{"lexeme": "movie", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "field of expertise", "formula": "!rb:OCCUPIED_AS", "type" : "QRoboy"} +{"lexeme": "profession", "formula": "!rb:OCCUPIED_AS", "type" : "QRoboy"} +{"lexeme": "favorite tv show", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "favorite movie", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "favourite tv show", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "favourite movie", "formula": "!rb:FAVORITE_MOVIE", "type" : "QRoboy"} +{"lexeme": "alma mater", "formula": "!rb:STUDY_AT", "type" : "QRoboy"} +{"lexeme": "university", "formula": "!rb:STUDY_AT", "type" : "QRoboy"} +{"lexeme": "child", "formula": "!rb:CHILD_OF", "type" : "QRoboy"} +{"lexeme": "friend", "formula": "!rb:FRIEND_OF", "type" : "QRoboy"} +{"lexeme": "name", "formula": "!rb:NAME_OF", "type" : "QRoboy"} +{"lexeme": "home", "formula": "!rb:FROM", "type" : "QRoboy"} +{"lexeme": "age", "formula": "!rb:AGE", "type" : "QRoboy"} +{"lexeme": "member", "formula": "!rb:MEMBER_OF", "type" : "QRoboy"} +{"lexeme": "part", "formula": "!rb:PART_OF", "type" : "QRoboy"} +{"lexeme": "relative", "formula": "!rb:RELATIVE_OF", "type" : "QRoboy"} + {"lexeme": "when", "formula": "rb:WHEN", "type" : "subordinate.time"} {"lexeme": "whenever", "formula": "rb:WHEN", "type" : "subordinate.time"} {"lexeme": "as", "formula": "rb:WHEN", "type" : "subordinate.time"} @@ -88,21 +150,13 @@ {"lexeme": "that", "formula": "rb:EFFECT", "type" : "subordinate.effect"} {"lexeme": "this is why", "formula": "rb:EFFECT", "type" : "subordinate.effect"} -# QUESTION -{"lexeme": "who", "formula": "rb:question.person", "type" : "Question"} -{"lexeme": "who", "formula": "rb:question.organization", "type" : "Question"} -{"lexeme": "who", "formula": "rb:question.business", "type" : "Question"} -{"lexeme": "where", "formula": "rb:question.location", "type" : "Question"} -{"lexeme": "where", "formula": "rb:question.organization", "type" : "Question"} -{"lexeme": "where", "formula": "rb:question.educational_institution", "type" : "Question"} -{"lexeme": "when", "formula": "rb:question.datetime", "type" : "Question"} -{"lexeme": "why", "formula": "rb:question.cause", "type" : "Question"} -{"lexeme": "what for", "formula": "rb:question.effect", "type" : "Question"} -{"lexeme": "what", "formula": "rb:question.object", "type" : "Question"} -{"lexeme": "what kind of", "formula": "rb:question.type", "type" : "Question"} -{"lexeme": "how", "formula": "rb:question.quantity", "type" : "Question"} -{"lexeme": "do", "formula": "rb:question.activity", "type" : "Question"} -{"lexeme": "does", "formula": "rb:question.activity", "type" : "Question"} +# Ignore for questions +{"lexeme": "have", "formula": "rb:EFFECT", "type" : "Ignore"} +{"lexeme": "can", "formula": "rb:EFFECT", "type" : "Ignore"} +{"lexeme": "be", "formula": "rb:EFFECT", "type" : "Ignore"} +{"lexeme": "do", "formula": "rb:EFFECT", "type" : "Ignore"} +{"lexeme": "have i", "formula": "rb:EFFECT", "type" : "Ignore"} +{"lexeme": "can i", "formula": "rb:EFFECT", "type" : "Ignore"} # Freebase {"lexeme": "california", "formula": "fb:en.california"} diff --git a/resources/roboy-demo.grammar b/resources/roboy-demo.grammar index d2ae608..3fbd76b 100644 --- a/resources/roboy-demo.grammar +++ b/resources/roboy-demo.grammar @@ -8,8 +8,8 @@ (rule $Not (nor) (ConstantFn (string not))) (rule $Class ($PHRASE) (SimpleLexiconFn (type "ClassNoun"))) -(rule $QRelClass ($PHRASE) (SimpleLexiconFn (type "QRelat"))) -(rule $RelClass ($PHRASE) (SimpleLexiconFn (type "RelationalNoun"))) +(rule $ObjProp ($PHRASE) (SimpleLexiconFn (type "ObjProp"))) +(rule $DataProp ($PHRASE) (SimpleLexiconFn (type "DataProp"))) (rule $RelatClass ($PHRASE) (SimpleLexiconFn (type "RelationClass"))) (rule $DatPropClass ($PHRASE) (SimpleLexiconFn (type "DataPropertyNoun"))) (rule $ObjPropClass ($PHRASE) (SimpleLexiconFn (type "ObjectProperty"))) @@ -19,7 +19,6 @@ (rule $StateVerb ($LEMMA_PHRASE) (SimpleLexiconFn (type "StateVerb"))) (rule $Relat ($LEMMA_PHRASE) (SimpleLexiconFn (type "Relationship"))) (rule $Relat ($LEMMA_TOKEN) (SimpleLexiconFn (type "Relationship"))) -(rule $QRelat ($LEMMA_TOKEN) (SimpleLexiconFn (type "QuRelat"))) (rule $ConsequenceVerb ($LEMMA_PHRASE) (SimpleLexiconFn (type "ConsequenceVerb"))) (rule $RelAdj ($PHRASE) (SimpleLexiconFn (type "RelationalAdjective"))) @@ -27,6 +26,9 @@ (rule $DataPropAdj ($PHRASE) (SimpleLexiconFn (type "IntersectiveDataPropertyAdjective"))) (rule $InterAdj ($PHRASE) (SimpleLexiconFn (type "IntersectiveAdjective"))) +(rule $QRelClass ($PHRASE) (SimpleLexiconFn (type "QRoboy"))) +(rule $QRelat ($LEMMA_TOKEN) (SimpleLexiconFn (type "QRoboy"))) + # NER Tags (rule $Number ($PHRASE) (FilterNerSpanFn span NUMBER)) (rule $Number ($PHRASE) (FilterNerSpanFn span DATE)) @@ -52,15 +54,15 @@ (rule $To ($TOKEN) (FilterPosTagFn token TO)) #(rule $Exist ($TOKEN) (FilterPosTagFn token EX)) #(rule $ForeignWord ($TOKEN) (FilterPosTagFn token FW)) -(rule $Wh ($TOKEN) (FilterPosTagFn token WP WP$)) +(rule $Wh ($TOKEN) (FilterPosTagFn token WP WP$ WDT)) (rule $BE ($PHRASE) (FilterPosTagFn span BE)) (rule $HAVE ($PHRASE) (FilterPosTagFn span HAVE)) (rule $Number ($PHRASE) (FilterPosTagFn span CD)) # Link words -#(rule $VerbPrep ($Verb $Preposition) (ConcatFn " ")) -#(rule $VerbTo ($Verb $To) (ConcatFn " ")) -#(rule $VerbTo ($To $Verb) (SelectFn 1)) +(rule $VerbPhrase ($Verb $Preposition) (ConcatFn " ")) +(rule $VerbPhrase ($Verb $To) (ConcatFn " ")) +(rule $VerbPhrase ($To $Verb) (SelectFn 1)) # Roboy Subject Phrase (rule $RSubject ($ObjectClass) (IdentityFn)) @@ -70,11 +72,10 @@ (rule $RSubject ($RSubject (, optional) $RSubject) (ConcatFn ",")) (rule $RSubject ($RSubject $ProNounEnd) (SelectFn 0)) - # Roboy Predicate Phrase -(rule $RPredicate (($BE optional) $Relat) (IdentityFn)) -(rule $RPredicate (($HAVE optional) $Relat) (IdentityFn)) -(rule $RPredicate ($RelatClass) (IdentityFn)) +(rule $RPredicate (($BE optional) $ObjProp) (IdentityFn)) +(rule $RPredicate (($HAVE optional) $ObjProp) (IdentityFn)) +(rule $RPredicate ($ObjProp) (IdentityFn)) (rule $RPredicate ($Not $RPredicate) (ConcatFn " ")) (rule $RPredicate ($RPredicate and $RPredicate) (ConcatFn ",")) (rule $RPredicate ($RPredicate , $RPredicate) (ConcatFn ",")) @@ -82,12 +83,45 @@ (rule $RPredicate ($TypeProperty $ObjectClass) (TripleFn "pt")) (rule $RPredicate ($BE $RPredicate) (SelectFn 1)) (rule $RPredicate ($HAVE $RPredicate) (SelectFn 1)) +(rule $RPredicate ($AdjPhrase $RPredicate) (SelectFn 1)) +(rule $RPredicate ($Adverb $RPredicate) (SelectFn 1)) +(rule $RPredicate ($VerbPhrase) (OpenTypeFn relation)) +(rule $RPredicate ($VerbPhrase) (SimpleLexiconFn (type "NewRelation"))) + + +(rule $RDataPredicate (($BE optional) $DataProp) (IdentityFn)) +(rule $RDataPredicate (($HAVE optional) $DataProp) (IdentityFn)) +(rule $RDataPredicate ($DataProp) (IdentityFn)) +(rule $RDataPredicate ($Not $RDataPredicate) (ConcatFn " ")) +(rule $RDataPredicate ($RDataPredicate and $RDataPredicate) (ConcatFn ",")) +(rule $RDataPredicate ($RDataPredicate , $RDataPredicate) (ConcatFn ",")) +(rule $RDataPredicate ($RDataPredicate or $RDataPredicate) (ConcatFn ";")) +(rule $RDataPredicate ($TypeProperty $ObjectClass) (TripleFn "pt")) +(rule $RDataPredicate ($BE $RDataPredicate) (SelectFn 1)) +(rule $RDataPredicate ($HAVE $RDataPredicate) (SelectFn 1)) +(rule $RDataPredicate ($AdjPhrase $RDataPredicate) (SelectFn 1)) +(rule $RDataPredicate ($Adverb $RDataPredicate) (SelectFn 1)) +(rule $RDataPredicate ($VerbPhrase) (OpenTypeFn relation)) +(rule $RDataPredicate ($VerbPhrase) (SimpleLexiconFn (type "NewRelation"))) (rule $N ($BE) (ConstantFn rb:NAME_OF)) (rule $MEMBER ($BE) (ConstantFn rb:MEMBER_OF)) (rule $OCCUP ($BE $Det) (ConstantFn rb:OCCUPIED_AS)) # Object Phrase +(rule $Object ($Noun) (OpenTypeFn type)) +(rule $Object ($NamedEntity) (OpenTypeFn entity)) +(rule $Object ($Noun) (SimpleLexiconFn (type "NewType"))) +(rule $Object ($NamedEntity) (SimpleLexiconFn (type "NewEntity"))) +(rule $Object ($Det $Object) (SelectFn 1)) +(rule $Object ($Conj $Object) (SelectFn 1)) +(rule $Object ($Object or $Object) (ConcatFn ";")) +(rule $Object ($Object ($Conj optional) $Object) (ConcatFn ",")) +(rule $Object ($Object , $Object) (ConcatFn ",")) +(rule $Object ($Adjective $Object) (TripleFn "ot")) +(rule $Object ($Object $Adjective) (TripleFn "to")) + +# Value Phrase (rule $Value ($Noun) (IdentityFn)) (rule $Value ($LEMMA_PHRASE) (FilterPosTagFn span VBG)) (rule $Value ($Det $Value) (SelectFn 1)) @@ -117,20 +151,32 @@ (rule $Expr ($RSubject $OCCUP $Value) (TripleFn "spo")) (rule $Expr ($Person $N $PersonName) (TripleFn "spo")) (rule $Expr ($ObjectClass $N $PersonName) (TripleFn "spo")) -(rule $Expr ($RSubject $Value $Preposition ($TOKEN optional) $RPredicate) (TripleFn "sop")) -(rule $Expr ($RSubject $RPredicate ($Preposition optional) $Value) (TripleFn "spo")) -(rule $Expr ($RSubject $RPredicate ($TOKEN optional) ($BE optional) $Value) (TripleFn "spo")) -(rule $Expr ($Value ($BE optional) $RSubject $RPredicate) (TripleFn "osp")) -(rule $Expr ($RSubject $RPredicate ($BE optional) $Value) (TripleFn "spo")) +(rule $Expr ($RSubject $Value $Preposition ($TOKEN optional) $RDataPredicate) (TripleFn "sop")) +(rule $Expr ($RSubject $RDataPredicate ($Preposition optional) $Value) (TripleFn "spo")) +(rule $Expr ($RSubject $RDataPredicate ($TOKEN optional) ($BE optional) $Value) (TripleFn "spo")) +(rule $Expr ($Value ($BE optional) $RSubject $RDataPredicate) (TripleFn "osp")) +(rule $Expr ($RSubject $RDataPredicate ($BE optional) $Value) (TripleFn "spo")) +(rule $Expr ($AdjPhrase ($BE optional) $RSubject $RDataPredicate) (TripleFn "osp")) +(rule $Expr ($RDataPredicate $RSubject $Value) (TripleFn "pso")) + +(rule $Expr ($RSubject $MEMBER $Object member) (TripleFn "spo")) +(rule $Expr ($RSubject $OCCUP $Object) (TripleFn "spo")) +(rule $Expr ($Person $N $PersonName) (TripleFn "spo")) +(rule $Expr ($ObjectClass $N $PersonName) (TripleFn "spo")) +(rule $Expr ($RSubject $Object $Preposition ($TOKEN optional) $RPredicate) (TripleFn "sop")) +(rule $Expr ($RSubject $RPredicate ($Preposition optional) $Object) (TripleFn "spo")) +(rule $Expr ($RSubject $RPredicate ($TOKEN optional) ($BE optional) $Object) (TripleFn "spo")) +(rule $Expr ($Object ($BE optional) $RSubject $RPredicate) (TripleFn "osp")) +(rule $Expr ($RSubject $RPredicate ($BE optional) $Object) (TripleFn "spo")) (rule $Expr ($AdjPhrase ($BE optional) $RSubject $RPredicate) (TripleFn "osp")) -(rule $Expr ($RPredicate $RSubject $Value) (TripleFn "pso")) +(rule $Expr ($RPredicate $RSubject $Object) (TripleFn "pso")) + (rule $ROOT ($Expr) (IdentityFn)) +(rule $ROOT ($Expr ($Conj optional) $Expr) (ListFn)) (rule $ROOT (($Noun optional) $Expr) (IdentityFn)) (rule $ROOT (($Ignore optional) $Expr) (IdentityFn)) # Question Phrase -(rule $Quest ($Wh) (SimpleLexiconFn (type Question))) -(rule $Quest ($Wh) (IdentityFn)) (rule $Quest (who) (ConstantFn (rdf:type foaf:person) foaf:person)) (rule $Quest (who) (ConstantFn (rdf:type dbpedia:Organization) dbpedia:Organization)) (rule $Quest (who) (ConstantFn (rdf:type dbpedia:Company) dbpedia:Company)) @@ -138,37 +184,36 @@ (rule $Quest (where) (ConstantFn (rdf:type dbpedia:Place) dbpedia:Place)) (rule $Quest (where) (ConstantFn (rdf:type dbpedia:EducationalInstitution) dbpedia:EducationalInstitution)) (rule $Quest (when) (ConstantFn (rdf:type xsd:date) xsd:date)) +(rule $Q ($Wh) (ConstantFn (rdf:type rdf:type))) (rule $Q ($Wh date) (ConstantFn (rdf:type xsd:date) xsd:date)) (rule $Q ($Wh year) (ConstantFn (rdf:type xsd:date) xsd:date)) (rule $Q ($Wh day) (ConstantFn (rdf:type xsd:date) xsd:date)) +(rule $Q ($Wh $TOKEN) (JoinFn forward)) +(rule $Ignore ($LEMMA_PHRASE) (SimpleLexiconFn (type "Ignore"))) # Question expressions -(rule $Binary ($QRelatClass) (IdentityFn)) +(rule $Ignore ($PHRASE) (IdentityFn)) +(rule $Ignore ($Q) (IdentityFn)) +(rule $Binary ($QRelClass) (IdentityFn)) (rule $Binary ($QRelat) (IdentityFn)) -(rule $RSet ($RSubject) (IdentityFn)) -(rule $RSet ($Quest) (IdentityFn)) -(rule $RSet (($Wh optional) $RSet $RSet) (MergeFn and)) -(rule $RSet (($Wh optional) $Entity $Binary) (JoinFn backward)) -(rule $RSet (what is $Binary $RSubject) (JoinFn forward)) -(rule $RSet (what is $RSubject $Binary) (JoinFn backward)) -(rule $ROOT ($RSet) (IdentityFn)) +(rule $QSubject ($ProNoun) (SimpleLexiconFn (type "Person"))) +(rule $Unary ($QSubject) (IdentityFn)) +(rule $Binary ($Ignore $QRelat) (SelectFn 1)) +(rule $Unary ($Ignore $QSubject) (SelectFn 1)) +(rule $Binary ($QRelat $Ignore) (SelectFn 0)) +(rule $Unary ($QSubject $Ignore) (SelectFn 0)) +(rule $RSet ($Unary) (IdentityFn)) +(rule $RSet ($Unary $Unary) (MergeFn and)) +(rule $RSet ($Binary $RSet) (JoinFn forward)) +(rule $RSet ($RSet $Binary) (JoinFn backward)) +(rule $ROOT ($Wh ($BE optional) $RSet) (SelectFn 1)) +(rule $ROOT ($Ignore $RSet) (SelectFn 1)) -# Math expressions -(include math.grammar) - -(rule $Entity ($NamedEntity) (SimpleLexiconFn (type "NamedEntity"))) -(rule $Entity ($NamedEntity) (OpenTypeFn entity)) -(rule $Binary ($RelClass) (IdentityFn)) -(rule $Set ($Entity) (IdentityFn)) -(rule $Set ($Unary) (IdentityFn)) -(rule $Set ($Quest) (IdentityFn)) -(rule $Set (($Wh optional) $Unary $Set) (MergeFn and)) -(rule $Set (($Wh optional) $Binary $Entity) (JoinFn forward)) -(rule $Set (($Wh optional) $Entity $Binary) (JoinFn backward)) -(rule $Set (what is $Binary $Entity) (JoinFn forward)) -(rule $Set (what is $Entity $Binary) (JoinFn backward)) -(rule $ROOT ($Set) (IdentityFn)) #TEST SET -(rule $ROOT ($Noun) (OpenTypeFn type)) -(rule $ROOT ($Verb) (OpenTypeFn relation)) +#(rule $ROOT ($RSet) (IdentityFn)) +#(rule $ROOT ($Binary) (IdentityFn)) + + +# Math expressions +(include math.grammar) \ No newline at end of file diff --git a/src/main/java/edu/stanford/nlp/sempre/ConcatFn.java b/src/main/java/edu/stanford/nlp/sempre/ConcatFn.java index 5872faa..c79d2a1 100644 --- a/src/main/java/edu/stanford/nlp/sempre/ConcatFn.java +++ b/src/main/java/edu/stanford/nlp/sempre/ConcatFn.java @@ -20,37 +20,18 @@ public class ConcatFn extends SemanticFn { delim = tree.child(1).value; } -// public DerivationStream call(Example ex, final Callable c) { -// return new SingleDerivationStream() { -// @Override -// public Derivation createDerivation() { -// StringBuilder out = new StringBuilder(); -// for (int i = 0; i < c.getChildren().size(); i++) { -// if (i > 0) out.append(delim); -// out.append(c.childStringValue(i)); -// } -// return new Derivation.Builder() -// .withCallable(c) -// .withStringFormulaFrom(out.toString()) -// .createDerivation(); -// } -// }; -// } public DerivationStream call(Example ex, final Callable c) { return new SingleDerivationStream() { @Override public Derivation createDerivation() { StringBuilder out = new StringBuilder(); - if (!delim.equals(",")) out.append("("); - for (int i = 0; i < c.getChildren().size(); i++) { - if (i > 0) { - if (delim.equals(" or ") || delim.equals(" and ")) out.append(")"); - out.append(delim); - if (delim.equals(" or ") || delim.equals(" and ")) out.append("("); - } - out.append(c.childStringValue(i)); - } - if (!delim.equals(",")) out.append(")"); + for (int i = 0; i < c.getChildren().size(); i++) { + if (i > 0) out.append(delim); + if (c.childStringValue(i) != null) + out.append(c.childStringValue(i)); + else + out.append(c.child(i).getFormula().toString()); + } return new Derivation.Builder() .withCallable(c) .withStringFormulaFrom(out.toString()) @@ -58,4 +39,29 @@ public class ConcatFn extends SemanticFn { } }; } +// public DerivationStream call(Example ex, final Callable c) { +// return new SingleDerivationStream() { +// @Override +// public Derivation createDerivation() { +// StringBuilder out = new StringBuilder(); +// if (!delim.equals(",")) out.append("("); +// for (int i = 0; i < c.getChildren().size(); i++) { +// if (i > 0) { +// if (delim.equals(" or ") || delim.equals(" and ")) out.append(")"); +// out.append(delim); +// if (delim.equals(" or ") || delim.equals(" and ")) out.append("("); +// } +// if (c.childStringValue(i) != null) +// out.append(c.childStringValue(i)); +// else +// out.append(c.child(i).getFormula().toString()); +// } +// if (!delim.equals(",")) out.append(")"); +// return new Derivation.Builder() +// .withCallable(c) +// .withStringFormulaFrom(out.toString()) +// .createDerivation(); +// } +// }; +// } } diff --git a/src/main/java/edu/stanford/nlp/sempre/Derivation.java b/src/main/java/edu/stanford/nlp/sempre/Derivation.java index 637db64..f649266 100644 --- a/src/main/java/edu/stanford/nlp/sempre/Derivation.java +++ b/src/main/java/edu/stanford/nlp/sempre/Derivation.java @@ -171,6 +171,12 @@ public class Derivation implements SemanticFn.Callable, HasScore { return this; } + public Builder withListFormulaFrom(LispTree tree) { + this.formula = new ValueFormula<>(new ListValue(tree)); + this.type = SemType.bottomType; + return this; + } + public Builder withFormulaFrom(Derivation deriv) { this.formula = deriv.formula; this.type = deriv.type; diff --git a/src/main/java/edu/stanford/nlp/sempre/ListFn.java b/src/main/java/edu/stanford/nlp/sempre/ListFn.java new file mode 100644 index 0000000..01f4ee9 --- /dev/null +++ b/src/main/java/edu/stanford/nlp/sempre/ListFn.java @@ -0,0 +1,59 @@ +package edu.stanford.nlp.sempre; + +import fig.basic.LispTree; + +/** + * Takes two strings and returns their concatenation. + * + * @author Percy Liang + */ +public class ListFn extends SemanticFn { + + public ListFn() { } + + public void init(LispTree tree) { + super.init(tree); + } + + public DerivationStream call(Example ex, final Callable c) { + return new SingleDerivationStream() { + @Override + public Derivation createDerivation() { + LispTree listTree = LispTree.proto.newList(); + listTree.addChild("list"); + for (int i = 0; i < c.getChildren().size(); i++) { + listTree.addChild(c.child(i).getFormula().toLispTree()); + } + return new Derivation.Builder() + .withCallable(c) + .withListFormulaFrom(listTree) + .createDerivation(); + } + }; + } +// public DerivationStream call(Example ex, final Callable c) { +// return new SingleDerivationStream() { +// @Override +// public Derivation createDerivation() { +// StringBuilder out = new StringBuilder(); +// if (!delim.equals(",")) out.append("("); +// for (int i = 0; i < c.getChildren().size(); i++) { +// if (i > 0) { +// if (delim.equals(" or ") || delim.equals(" and ")) out.append(")"); +// out.append(delim); +// if (delim.equals(" or ") || delim.equals(" and ")) out.append("("); +// } +// if (c.childStringValue(i) != null) +// out.append(c.childStringValue(i)); +// else +// out.append(c.child(i).getFormula().toString()); +// } +// if (!delim.equals(",")) out.append(")"); +// return new Derivation.Builder() +// .withCallable(c) +// .withStringFormulaFrom(out.toString()) +// .createDerivation(); +// } +// }; +// } +} diff --git a/src/main/java/edu/stanford/nlp/sempre/Master.java b/src/main/java/edu/stanford/nlp/sempre/Master.java index 5cb8a45..3557d29 100644 --- a/src/main/java/edu/stanford/nlp/sempre/Master.java +++ b/src/main/java/edu/stanford/nlp/sempre/Master.java @@ -82,7 +82,8 @@ public class Master { } public String getAll() { - + if (ex == null) + return null; Map interpretation = new HashMap<>(); interpretation.put("tokens",ex.getTokens()); interpretation.put("lemma_tokens",ex.getLemmaTokens()); @@ -106,6 +107,7 @@ public class Master { interpretation.put("answer","(not selected)"); } else { + LogInfo.logs("%d",candidateIndex); Derivation deriv = getDerivation(); deriv.ensureExecuted(builder.executor, ex.context); interpretation.put("parse",deriv.getFormula().toString()); diff --git a/src/main/java/edu/stanford/nlp/sempre/OpenTypeFn.java b/src/main/java/edu/stanford/nlp/sempre/OpenTypeFn.java index a163730..5dfd1ae 100644 --- a/src/main/java/edu/stanford/nlp/sempre/OpenTypeFn.java +++ b/src/main/java/edu/stanford/nlp/sempre/OpenTypeFn.java @@ -41,16 +41,16 @@ public class OpenTypeFn extends SemanticFn { @Override public Derivation createDerivation() { StringBuilder out = new StringBuilder(); - if (type) out.append("OpenType\'"); - if (rel) out.append("OpenRel\'"); - if (entity) out.append("OpenEntity\'"); + if (type) out.append("OpenType'"); + if (rel) out.append("OpenRel'"); + if (entity) out.append("OpenEntity'"); for (int i = 0; i < c.getChildren().size(); i++) { if (i > 0) out.append(" "); out.append(c.childStringValue(i)); } - out.append("\''"); - if (SimpleLexicon.getSingleton().lookup(out.toString().substring(out.toString().indexOf("\'")+1,out.toString().indexOf("\''"))).isEmpty()) + out.append("''"); + if (SimpleLexicon.getSingleton().lookup(out.toString().substring(out.toString().indexOf("'")+1,out.toString().indexOf("''"))).isEmpty()) return new Derivation.Builder() .withCallable(c) .withStringFormulaFrom(out.toString()) diff --git a/src/main/java/edu/stanford/nlp/sempre/ParserState.java b/src/main/java/edu/stanford/nlp/sempre/ParserState.java index a8b032c..596ef7e 100644 --- a/src/main/java/edu/stanford/nlp/sempre/ParserState.java +++ b/src/main/java/edu/stanford/nlp/sempre/ParserState.java @@ -239,14 +239,13 @@ public abstract class ParserState { List remove = new ArrayList(); List formulas = new ArrayList(); for (Derivation deriv : predDerivations) { - // TODO: Add postprocess(deriv, ex.context); if (!String.join(" ",formulas).contains(deriv.formula.toString())) formulas.add(deriv.formula.toString()); else { remove.add(deriv); continue; } - if (deriv.getType()==SemType.tripleType||deriv.getType()==SemType.stringType||deriv.getFormula().toString().contains("lambda")){ + if (deriv.getType()==SemType.stringType||deriv.getFormula().toString().contains("lambda")||deriv.getFormula().toString().contains("triple")){ deriv.ensureExecuted(parser.simple_executor, ex.context); } else @@ -254,7 +253,7 @@ public abstract class ParserState { if (ex.targetValue != null) deriv.compatibility = parser.valueEvaluator.getCompatibility(ex.targetValue, deriv.value); if (!computeExpectedCounts && Parser.opts.executeTopFormulaOnly) break; - if ((deriv.value==null || deriv.value.toString().equals("BADFORMAT") || deriv.value.toString().equals("(list)")) && !deriv.value.toString().contains("rb")) + if ((deriv.value==null || deriv.value.toString().equals("BADFORMAT")) && !deriv.formula.toString().contains("rb")) remove.add(deriv); } for (Derivation deriv : remove) diff --git a/src/main/java/edu/stanford/nlp/sempre/TripleFn.java b/src/main/java/edu/stanford/nlp/sempre/TripleFn.java index 01076f5..b4f1250 100644 --- a/src/main/java/edu/stanford/nlp/sempre/TripleFn.java +++ b/src/main/java/edu/stanford/nlp/sempre/TripleFn.java @@ -28,7 +28,8 @@ public class TripleFn extends SemanticFn { } public String initial_formula(String string1, String string2) { - // TODO: Check types to form only with one database only + string1 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string1); + string2 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string2); Map triple = new HashMap<>(); if (this.mode.equals("spo")) { triple.put("subject", string1); @@ -80,6 +81,8 @@ public class TripleFn extends SemanticFn { public String merge_formula(String string1, String string2) { // Convert JSON string back to Map. + string1 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string1); + string2 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string2); Gson gson = new Gson(); Type type = new TypeToken>(){}.getType(); Map triple = gson.fromJson(string1, type); @@ -112,6 +115,8 @@ public class TripleFn extends SemanticFn { Gson gson = new Gson(); Type type = new TypeToken>(){}.getType(); Map triple = new HashMap(); + string1 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string1); + string2 = org.apache.commons.lang.StringEscapeUtils.unescapeJava(string2); if (string1.contains("{")){ triple = gson.fromJson(string1, type); if (this.mode.equals("spo")) { diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/ErrorRetrieval.java b/src/main/java/edu/stanford/nlp/sempre/roboy/ErrorRetrieval.java index 618c872..87d12c0 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/ErrorRetrieval.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/ErrorRetrieval.java @@ -181,7 +181,7 @@ public class ErrorRetrieval { String formula = deriv.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) break; String term = formula.substring(start,end).substring(formula.substring(start,end).indexOf("\'")+1); @@ -205,7 +205,7 @@ public class ErrorRetrieval { String formula = deriv.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) break; String term = formula.substring(start,end).substring(formula.substring(start,end).indexOf("\'")+1); @@ -244,12 +244,13 @@ public class ErrorRetrieval { return lexemes; } while (formula.contains("Open")){ + LogInfo.logs(formula); int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); - if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) + int end = formula.indexOf("''",start); + if (start > formula.length() || start < 0 || end < 0 ||end+2 > formula.length()) break; - String full_type = formula.substring(formula.indexOf("Open"),formula.indexOf("\''")+2); - String term = formula.substring(start,end).substring(formula.substring(start,end).indexOf("\'")+1); + String full_type = formula.substring(formula.indexOf("Open"),formula.indexOf("''")+2); + String term = formula.substring(start,end).substring(formula.substring(start,end).indexOf("'")+1); if (full_type.contains("Entity")){ for (String candidate: result.getCandidates().get(term)) { @@ -258,7 +259,7 @@ public class ErrorRetrieval { Map lexeme = new HashMap(); lexeme.put("lexeme", entry.get("Label").toLowerCase()); lexeme.put("formula", entry.get("URI")); - lexeme.put("type", "NamedEntity"); + lexeme.put("type", "NewEntity"); lexeme.put("features", " {score:" + Double.toString(result.getScored().get(term).get(candidate))+"} "); // Add with knowledge base label lexemes.add(gson.toJson(lexeme)); @@ -267,21 +268,19 @@ public class ErrorRetrieval { } } else if (full_type.contains("Type")){ - if (result.getCandidates().containsKey(term)) { - for (String candidate : result.getCandidates().get(term)) { - Type type = new TypeToken>() { - }.getType(); - Map entry = this.gson.fromJson(candidate, type); - Map lexeme = new HashMap(); - lexeme.put("lexeme", entry.get("Label").toLowerCase()); - lexeme.put("formula", entry.get("URI")); - lexeme.put("type", "ClassNoun"); - lexeme.put("features", " {score:" + Double.toString(result.getScored().get(term).get(candidate)) + "} "); - // Add with knowledge base label - lexemes.add(gson.toJson(lexeme)); - lexeme.put("lexeme", term); - lexemes.add(gson.toJson(lexeme)); - } + for (String candidate: result.getCandidates().get(term)) + { + Type type = new TypeToken>(){}.getType(); + Map entry = this.gson.fromJson(candidate, type); + Map lexeme = new HashMap(); + lexeme.put("lexeme", entry.get("Label").toLowerCase()); + lexeme.put("formula", entry.get("URI")); + lexeme.put("type", "NewType"); + lexeme.put("features", " {score:" + Double.toString(result.getScored().get(term).get(candidate))+"} "); + // Add with knowledge base label + lexemes.add(gson.toJson(lexeme)); + lexeme.put("lexeme", term); + lexemes.add(gson.toJson(lexeme)); } } else if (full_type.contains("Relation")){ @@ -292,7 +291,7 @@ public class ErrorRetrieval { Map lexeme = new HashMap(); lexeme.put("lexeme", entry.get("Label").toLowerCase()); lexeme.put("formula", entry.get("URI")); - lexeme.put("type", "RelationalNoun"); + lexeme.put("type", "NewRelation"); lexeme.put("features", " {score:" + Double.toString(result.getScored().get(term).get(candidate))+"} "); // Add with knowledge base label lexemes.add(gson.toJson(lexeme)); @@ -300,7 +299,7 @@ public class ErrorRetrieval { lexemes.add(gson.toJson(lexeme)); } } - formula = formula.substring(end); + formula = formula.substring(end+2); } return lexemes; } @@ -312,8 +311,10 @@ public class ErrorRetrieval { * @param key term to replace */ public LispTree replaceEntity(LispTree new_formula, String replace, String key) { - if (new_formula!= null && new_formula.isLeaf()) - return new_formula; + if (new_formula!= null && new_formula.isLeaf()) { + LispTree listTree = LispTree.proto.newLeaf(new_formula.value.replaceAll(replace, key)); + return listTree; + } else if (new_formula.children.get(0).value!= null && new_formula.children.get(0).value == "string"){ NameValue result = new NameValue(new_formula.children.get(1).value.replaceAll(replace, key)); return result.toLispTree(); @@ -411,22 +412,18 @@ public class ErrorRetrieval { String formula = deriv.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) break; - String full_type = formula.substring(formula.indexOf("Open"),formula.indexOf("\''")+2); - String entity = formula.substring(start,end).substring(formula.substring(start,end).indexOf("\'")+1); + String full_type = formula.substring(formula.indexOf("Open"),formula.indexOf("''")+2); + String entity = formula.substring(start,end).substring(formula.substring(start,end).indexOf("'")+1); String best = replacements.get(entity); - if (ConfigManager.DEBUG > 5) - LogInfo.logs("Forming: %s|", entity); + if (ConfigManager.DEBUG > 1) + LogInfo.logs("Forming: %s|%s|%s", entity, best, full_type); if (errorInfo.getFollowUps().containsKey(entity)) { List c = errorInfo.getFollowUps().get(entity); - if (ConfigManager.DEBUG > 5) - LogInfo.logs("Forming: %s|", String.join(" ", c)); List> questions = formQuestion(entity, c); for (int i = 0; i < questions.size(); i++) { - if (ConfigManager.DEBUG > 5) - LogInfo.logs("Question 1 :%s", questions.get(i)); Map.Entry entry = new java.util.AbstractMap.SimpleEntry (questions.get(i).getKey(), Formulas.fromLispTree(replaceEntity(best_formula, @@ -442,8 +439,10 @@ public class ErrorRetrieval { }.getType(); Map cand = this.gson.fromJson(best, type); new_formula = replaceEntity(new_formula, full_type, cand.get("URI")); + if (ConfigManager.DEBUG > 1) + LogInfo.logs("Replaced: %s", new_formula.toString()); } - formula = formula.substring(end); + formula = formula.substring(end+2); } deriv.setFormula(Formulas.fromLispTree(new_formula)); return deriv; @@ -457,6 +456,18 @@ public class ErrorRetrieval { ErrorInfo result = new ErrorInfo(); Set update = new HashSet<>(); LogInfo.begin_track("Error retrieval:"); + List remove = new ArrayList(); + List formulas = new ArrayList(); + for (Derivation deriv : this.derivations) { + if (!String.join(" ", formulas).contains(deriv.formula.toString())) + formulas.add(deriv.formula.toString()); + else { + remove.add(deriv); + continue; + } + } + this.derivations.removeAll(remove); + LogInfo.logs("%d",this.derivations.size()); if (this.derivations != null) { // Get candidates for (Derivation deriv : this.derivations) { diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/data/score_weights.json b/src/main/java/edu/stanford/nlp/sempre/roboy/data/score_weights.json index 2dc78dd..ae16971 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/data/score_weights.json +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/data/score_weights.json @@ -1,6 +1,6 @@ { - "Context": 0.3, - "Word2Vec": 0.1, - "Probability" : 0.5, - "Similarity" : 0.1 + "Context": 0.2, + "Word2Vec": 0.2, + "Probability" : 0.3, + "Similarity" : 0.3 } diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/error/EntityRetriever.java b/src/main/java/edu/stanford/nlp/sempre/roboy/error/EntityRetriever.java index dab3375..9e47b64 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/error/EntityRetriever.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/error/EntityRetriever.java @@ -43,11 +43,11 @@ public class EntityRetriever extends KnowledgeRetriever { String formula = dev.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) return errorInfo; unknown = formula.substring(start,end); - String entity = unknown.substring(unknown.indexOf("\'")+1); + String entity = unknown.substring(unknown.indexOf("'")+1); // Extract the results from XML now. String url = endpointUrl.concat(entity); url = url.replace(" ","_"); @@ -56,12 +56,14 @@ public class EntityRetriever extends KnowledgeRetriever { results = reader.readEntityXml(response.getXml(),keywords); for (Map c: results){ if (errorInfo.getCandidates().containsKey(entity)) { + c.put("Label",c.get("Label").toLowerCase()); errorInfo.getCandidates().get(entity).add(gson.toJson(c)); if (ConfigManager.DEBUG > 3) { LogInfo.logs("Entity: %s", gson.toJson(c)); } } else { + c.put("Label",c.get("Label").toLowerCase()); errorInfo.getCandidates().put(entity, new ArrayList<>(Arrays.asList(gson.toJson(c)))); if (ConfigManager.DEBUG > 3) { LogInfo.logs("Entity: %s", gson.toJson(c)); diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/error/LabelRetriever.java b/src/main/java/edu/stanford/nlp/sempre/roboy/error/LabelRetriever.java index 4640e7b..0b6f052 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/error/LabelRetriever.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/error/LabelRetriever.java @@ -40,11 +40,11 @@ public class LabelRetriever extends KnowledgeRetriever { String formula = dev.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) return errorInfo; unknown = formula.substring(start,end); - String entity = unknown.substring(unknown.indexOf("\'")+1); + String entity = unknown.substring(unknown.indexOf("'")+1); // Extract the results from XML now. Set uri = sparqlUtil.returnURI(entity, endpointUrl, false); Set uri_cap = sparqlUtil.returnURI( WordUtils.capitalize(entity), endpointUrl, false); @@ -54,19 +54,26 @@ public class LabelRetriever extends KnowledgeRetriever { uri.addAll(uri_cap); Map single = new HashMap(); if (uri != null) { - single.put("Label", entity); single.put("Refcount", String.valueOf(new Double(1.0/uri.size()))); for (String u: uri) { single.put("URI", u); - if (errorInfo.getCandidates().containsKey(entity)) { - errorInfo.getCandidates().get(entity).add(gson.toJson(single)); - if (ConfigManager.DEBUG > 3) - LogInfo.logs("Label: %s",gson.toJson(single)); - } - else{ - errorInfo.getCandidates().put(entity, new ArrayList<>(Arrays.asList(gson.toJson(single)))); - if (ConfigManager.DEBUG > 3) - LogInfo.logs("Label: %s",gson.toJson(single)); + // Get rid of categories + if (u.contains("Category")) + single.put("Refcount", String.valueOf(0.1)); + Set labels = sparqlUtil.returnLabel(u, endpointUrl, false); + if (labels == null) + labels = new HashSet<>(Arrays.asList(entity)); + for (String l: labels) { + single.put("Label", l); + if (errorInfo.getCandidates().containsKey(entity)) { + errorInfo.getCandidates().get(entity).add(gson.toJson(single)); + if (ConfigManager.DEBUG > 3) + LogInfo.logs("Label: %s", gson.toJson(single)); + } else { + errorInfo.getCandidates().put(entity, new ArrayList<>(Arrays.asList(gson.toJson(single)))); + if (ConfigManager.DEBUG > 3) + LogInfo.logs("Label: %s", gson.toJson(single)); + } } } } diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/error/MCGRetriever.java b/src/main/java/edu/stanford/nlp/sempre/roboy/error/MCGRetriever.java index 6e17936..28b1fd0 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/error/MCGRetriever.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/error/MCGRetriever.java @@ -45,11 +45,11 @@ public class MCGRetriever extends KnowledgeRetriever { String formula = dev.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) return errorInfo; unknown = formula.substring(start,end); - String entity = unknown.substring(unknown.indexOf("\'")+1); + String entity = unknown.substring(unknown.indexOf("'")+1); // Extract the results from XML now. String url = (endpointUrl.concat(entity.replace(" ","+"))).concat("&topK=10"); SparqlUtils.ServerResponse response = sparqlUtil.makeRequest(url); diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/error/Word2VecRetriever.java b/src/main/java/edu/stanford/nlp/sempre/roboy/error/Word2VecRetriever.java index 118ef9f..8c912b5 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/error/Word2VecRetriever.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/error/Word2VecRetriever.java @@ -37,11 +37,11 @@ public class Word2VecRetriever extends KnowledgeRetriever { String formula = dev.getFormula().toString(); while (formula.contains("Open")){ int start = formula.indexOf("Open")+"Open".length(); - int end = formula.indexOf("\''",start); + int end = formula.indexOf("''",start); if (start > formula.length() || start < 0 || end < 0 ||end > formula.length()) return errorInfo; unknown = formula.substring(start,end); - String entity = unknown.substring(unknown.indexOf("\'")+1); + String entity = unknown.substring(unknown.indexOf("'")+1); List known_words= new ArrayList(SimpleLexicon.getSingleton().lookup_type(entity)); List candidate = this.vec.getBest(entity,known_words); for (String c: candidate){ diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/lexicons/word2vec/ToyDataGetter.java b/src/main/java/edu/stanford/nlp/sempre/roboy/lexicons/word2vec/ToyDataGetter.java index 6ee3f6a..1aaeea8 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/lexicons/word2vec/ToyDataGetter.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/lexicons/word2vec/ToyDataGetter.java @@ -19,13 +19,13 @@ import edu.stanford.nlp.sempre.roboy.config.ConfigManager; public class ToyDataGetter { private final boolean verbose; - private final boolean roboy; + private final boolean google; public static Gson gson = new Gson(); private Map file_map = new HashMap(); public ToyDataGetter(boolean verbose) throws Exception{ - this.roboy = ConfigManager.WORD2VEC_GOOGLE; + this.google = ConfigManager.WORD2VEC_GOOGLE; this.file_map = ConfigManager.WORD2VEC_MODELS; this.verbose = verbose; } @@ -35,7 +35,7 @@ public class ToyDataGetter { return file_map.get("dataFilePath"); } public String getToyModelFilePath(){ - if (this.roboy) + if (!this.google) return file_map.get("roboyModelFilePath"); else return file_map.get("googleModelFilePath"); @@ -79,7 +79,7 @@ public class ToyDataGetter { String modelFilePath; // check if already downloaded - if (roboy) { + if (!google) { modelFilePath = file_map.get("roboyModelFilePath"); } else{ diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/SparqlUtils.java b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/SparqlUtils.java index a930e6d..a7059f1 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/SparqlUtils.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/SparqlUtils.java @@ -120,6 +120,46 @@ public class SparqlUtils { return null; } + // Form query based on triple form + public Set returnLabel(String entity, String endpointUrl, boolean object){ + //System.out.println("Entity: "+entity); + List> triples = new ArrayList(); + Map t1 = new HashMap(); + t1.put("predicate","rdfs:label"); + t1.put("subject",entity); + triples.add(t1); + Gson gson = new Gson(); + String json = gson.toJson((triples)); + try { + String url = String.format("%s?default-graph-uri=http://dbpedia.org&query=%s&format=xml", + endpointUrl, URLEncoder.encode(formQuery(json,"en"), "UTF-8")); + System.out.println("SPARQL query: "+formQuery(json)); + System.out.println("Query: "+url); + ServerResponse response = makeRequest(url); + + List> list = new ArrayList<>(); + if (response.getXml() != null) + { + list = reader.readArrayXml(response.getXml()); + } +// System.out.println("Query: "+list.toString()); + + if (list.size()>0) { + Set labels = new HashSet<>(); + for (Map map: list){ + labels.addAll(map.values()); + } + return labels; + } + else + return null; + } + catch(UnsupportedEncodingException e){ + LogInfo.logs("WrongFormat of the input: %s", json); + } + return null; + } + // Form query based on triple form public String returnDescr(String entity, String endpointUrl){ diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/Tester.java b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/Tester.java index d6a27c2..1b0247a 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/Tester.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/Tester.java @@ -69,11 +69,12 @@ public class Tester { double fail = 0; Tester test = new Tester(5000); try { - JsonReader reader = new JsonReader(new FileReader("./data/rpqa-train-a.json")); + JsonReader reader = new JsonReader(new FileReader("./data/rpqa/1/test.json")); Type type = new TypeToken>>() { }.getType(); Gson gson = new Gson(); List> testSet = gson.fromJson(reader, type); + test.query("(reload resources/roboy-demo.grammar)"); for (Map entry : testSet) { String response = test.query(entry.get("utterance")); if (response != null) { diff --git a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/XMLReader.java b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/XMLReader.java index d4eb138..0e22d46 100644 --- a/src/main/java/edu/stanford/nlp/sempre/roboy/utils/XMLReader.java +++ b/src/main/java/edu/stanford/nlp/sempre/roboy/utils/XMLReader.java @@ -117,8 +117,8 @@ public class XMLReader{ String var = "?" + binding.getAttribute("name"); String uri = getTagValue("uri", binding); - uri = new String(uri.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8); if (!(uri == null || (var.contains("_") || (uri.contains("#"))))){ + uri = new String(uri.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8); if (uri.contains(":")) uri = dbInfo.uri2id(uri); results.put(var,uri);