lara-martin
commited on
Commit
•
3f91671
1
Parent(s):
cc095d3
Update README.md
Browse files
README.md
CHANGED
@@ -66,11 +66,15 @@ Dataset is "eventified" and generalized (see LJ Martin, P Ammanabrolu, X Wang, W
|
|
66 |
## Raw Dataset Structure
|
67 |
### _all-sci-fi-data.txt_
|
68 |
* Each line of the stories contains data in the format: 5-tuple events in a list (subject, verb, direct object, modifier noun, preposition) ||| generalized 5-tuple events in a list ||| original sentence ||| generalized sentence
|
|
|
|
|
69 |
``
|
70 |
[[u'Voyager', u'run', 'EmptyParameter', u'deuterium', u'out'], [u'Voyager', u'force', u'go', 'EmptyParameter', 'EmptyParameter'], [u'Voyager', u'go', 'EmptyParameter', u'mode', u'into']]|||[['<VESSEL>0', 'function-105.2.1', 'EmptyParameter', "Synset('atom.n.01')", u'out'], ['<VESSEL>0', 'urge-58.1-1', u'escape-51.1-1', 'EmptyParameter', 'EmptyParameter'], ['<VESSEL>0', u'escape-51.1-1', 'EmptyParameter', "Synset('statistic.n.01')", u'into']]|||The USS Voyager is running out of deuterium as a fuel and is forced to go into Gray mode.|||the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
71 |
``
|
72 |
* Stories end with <EOS> (end of story) tag on its own line
|
73 |
* On the line after <EOS>, there is a defaultdict of entities found in the story by tag and in order (e.g. the second entity in the "<ORGANIZATION>" list in the dictionary would be <ORGANIZATION>1 in the story above—index starts at 0). These lines start with "%%%%%%%%%%%%%%%%%".
|
|
|
|
|
74 |
``
|
75 |
%%%%%%%%%%%%%%%%%defaultdict(<type 'list'>, {'<ORGANIZATION>': ['seven of nine', 'silver blood'], '<LOCATION>': ['sickbay', 'astrometrics', 'paris', 'cavern', 'vorik', 'caves'], '<DATE>': ['an hour ago', 'now'], '<MISC>': ['selected works', 'demon class', 'electromagnetic', 'parises', 'mimetic'], '<DURATION>': ['less than a week', 'the past four years', 'thirty seconds', 'an hour', 'two hours'], '<NUMBER>': ['two', 'dozen', '14', '15'], '<ORDINAL>': ['first'], '<PERSON>': ['tom paris', 'harry kim', 'captain kathryn janeway', 'tuvok', 'chakotay', 'jirex', 'neelix', 'the doctor', 'seven', 'ensign kashimuro nozawa', 'green', 'lt jg elanna torres', 'ensign vorik'], '<VESSEL>': ['uss voyager', 'starfleet']})
|
76 |
``
|
@@ -78,6 +82,8 @@ Dataset is "eventified" and generalized (see LJ Martin, P Ammanabrolu, X Wang, W
|
|
78 |
### Files in _Test-Train-Val_ Directory
|
79 |
* File names: all-sci-fi-val.txt, all-sci-fi-test.txt, & all-sci-fi-train.txt
|
80 |
* Each line of the stories contains data in the format: 5-tuple events in a list ||| generalized 5-tuple events in a list ||| original sentence ||| generalized sentence
|
|
|
|
|
81 |
``
|
82 |
[[u'Voyager', u'run', 'EmptyParameter', u'deuterium', u'out'], [u'Voyager', u'force', u'go', 'EmptyParameter', 'EmptyParameter'], [u'Voyager', u'go', 'EmptyParameter', u'mode', u'into']]|||[['<VESSEL>0', 'function-105.2.1', 'EmptyParameter', "Synset('atom.n.01')", u'out'], ['<VESSEL>0', 'urge-58.1-1', u'escape-51.1-1', 'EmptyParameter', 'EmptyParameter'], ['<VESSEL>0', u'escape-51.1-1', 'EmptyParameter', "Synset('statistic.n.01')", u'into']]|||The USS Voyager is running out of deuterium as a fuel and is forced to go into Gray mode.|||the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
83 |
``
|
@@ -88,12 +94,16 @@ Dataset is "eventified" and generalized (see LJ Martin, P Ammanabrolu, X Wang, W
|
|
88 |
### Files in _Input_OutputFiles_ Directory
|
89 |
**Files ending with _*\_input.txt_**
|
90 |
* 5-tuple generalized event on each line; formatted as a string instead of a list
|
|
|
|
|
91 |
``
|
92 |
<VESSEL>0 function-105.2.1 EmptyParameter Synset('atom.n.01') out
|
93 |
``
|
94 |
|
95 |
**Files ending with _*\_output.txt_**
|
96 |
* Corresponding generalized sentence for events in the matching _input.txt file
|
|
|
|
|
97 |
``
|
98 |
the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
99 |
``
|
|
|
66 |
## Raw Dataset Structure
|
67 |
### _all-sci-fi-data.txt_
|
68 |
* Each line of the stories contains data in the format: 5-tuple events in a list (subject, verb, direct object, modifier noun, preposition) ||| generalized 5-tuple events in a list ||| original sentence ||| generalized sentence
|
69 |
+
|
70 |
+
e.g.,
|
71 |
``
|
72 |
[[u'Voyager', u'run', 'EmptyParameter', u'deuterium', u'out'], [u'Voyager', u'force', u'go', 'EmptyParameter', 'EmptyParameter'], [u'Voyager', u'go', 'EmptyParameter', u'mode', u'into']]|||[['<VESSEL>0', 'function-105.2.1', 'EmptyParameter', "Synset('atom.n.01')", u'out'], ['<VESSEL>0', 'urge-58.1-1', u'escape-51.1-1', 'EmptyParameter', 'EmptyParameter'], ['<VESSEL>0', u'escape-51.1-1', 'EmptyParameter', "Synset('statistic.n.01')", u'into']]|||The USS Voyager is running out of deuterium as a fuel and is forced to go into Gray mode.|||the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
73 |
``
|
74 |
* Stories end with <EOS> (end of story) tag on its own line
|
75 |
* On the line after <EOS>, there is a defaultdict of entities found in the story by tag and in order (e.g. the second entity in the "<ORGANIZATION>" list in the dictionary would be <ORGANIZATION>1 in the story above—index starts at 0). These lines start with "%%%%%%%%%%%%%%%%%".
|
76 |
+
|
77 |
+
e.g.,
|
78 |
``
|
79 |
%%%%%%%%%%%%%%%%%defaultdict(<type 'list'>, {'<ORGANIZATION>': ['seven of nine', 'silver blood'], '<LOCATION>': ['sickbay', 'astrometrics', 'paris', 'cavern', 'vorik', 'caves'], '<DATE>': ['an hour ago', 'now'], '<MISC>': ['selected works', 'demon class', 'electromagnetic', 'parises', 'mimetic'], '<DURATION>': ['less than a week', 'the past four years', 'thirty seconds', 'an hour', 'two hours'], '<NUMBER>': ['two', 'dozen', '14', '15'], '<ORDINAL>': ['first'], '<PERSON>': ['tom paris', 'harry kim', 'captain kathryn janeway', 'tuvok', 'chakotay', 'jirex', 'neelix', 'the doctor', 'seven', 'ensign kashimuro nozawa', 'green', 'lt jg elanna torres', 'ensign vorik'], '<VESSEL>': ['uss voyager', 'starfleet']})
|
80 |
``
|
|
|
82 |
### Files in _Test-Train-Val_ Directory
|
83 |
* File names: all-sci-fi-val.txt, all-sci-fi-test.txt, & all-sci-fi-train.txt
|
84 |
* Each line of the stories contains data in the format: 5-tuple events in a list ||| generalized 5-tuple events in a list ||| original sentence ||| generalized sentence
|
85 |
+
|
86 |
+
e.g.,
|
87 |
``
|
88 |
[[u'Voyager', u'run', 'EmptyParameter', u'deuterium', u'out'], [u'Voyager', u'force', u'go', 'EmptyParameter', 'EmptyParameter'], [u'Voyager', u'go', 'EmptyParameter', u'mode', u'into']]|||[['<VESSEL>0', 'function-105.2.1', 'EmptyParameter', "Synset('atom.n.01')", u'out'], ['<VESSEL>0', 'urge-58.1-1', u'escape-51.1-1', 'EmptyParameter', 'EmptyParameter'], ['<VESSEL>0', u'escape-51.1-1', 'EmptyParameter', "Synset('statistic.n.01')", u'into']]|||The USS Voyager is running out of deuterium as a fuel and is forced to go into Gray mode.|||the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
89 |
``
|
|
|
94 |
### Files in _Input_OutputFiles_ Directory
|
95 |
**Files ending with _*\_input.txt_**
|
96 |
* 5-tuple generalized event on each line; formatted as a string instead of a list
|
97 |
+
|
98 |
+
e.g.,
|
99 |
``
|
100 |
<VESSEL>0 function-105.2.1 EmptyParameter Synset('atom.n.01') out
|
101 |
``
|
102 |
|
103 |
**Files ending with _*\_output.txt_**
|
104 |
* Corresponding generalized sentence for events in the matching _input.txt file
|
105 |
+
|
106 |
+
e.g.,
|
107 |
``
|
108 |
the <VESSEL>0 is running out of Synset('atom.n.01') as a Synset('matter.n.03') and is forced to go into Synset('horse.n.01') Synset('statistic.n.01').
|
109 |
``
|