cyanic-selkie commited on
Commit
b0d7e38
1 Parent(s): 651c686

Combines the sentences into documents.

Browse files
Files changed (4) hide show
  1. README.md +29 -26
  2. test.parquet +2 -2
  3. train.parquet +2 -2
  4. validation.parquet +2 -2
README.md CHANGED
@@ -49,15 +49,13 @@ The text in the dataset is in English. The associated BCP-47 code is `en`.
49
 
50
  ### Data Instances
51
 
52
- A typical data point represents a sentence in a document (news article).
53
 
54
  The `text` field contains the original text in an NFC normalized, UTF-8 encoded string.
55
 
56
- The `entities` field contains a list of entities, each represented by a struct with the inclusive starting byte `start` field, exclusive ending byte `end` field, and a nullable `qid` field.
57
 
58
- Additionally, each sentence has `document_id` and `sentence_index` fields to be able to determine the sentence's context.
59
-
60
- Data points belonging to the same article appear next to each other in the dataset and are sorted in an ascending fashion by the `sentence_index` field.
61
 
62
  An example from the AIDA CoNLL-YAGO Wikidata test set looks as follows:
63
 
@@ -65,38 +63,43 @@ An example from the AIDA CoNLL-YAGO Wikidata test set looks as follows:
65
  {
66
  "uuid": "f647d183-ed81-4513-b607-2c9cbc98930a"
67
  "document_id": 1393,
68
- "sentence_index": 9,
69
- "text": "He guided Ireland to two successive World Cup finals tournaments and to the 1988 European championship finals in Germany , after the Irish beat a well-fancied England team 1-0 in their group qualifier .",
70
  "entities": [
71
  {
72
- "start": 10,
73
- "end": 17,
74
- "qid": 163547
 
75
  },
76
  {
77
- "start": 36,
78
- "end": 45,
79
- "qid": 19317
 
80
  },
81
  {
82
- "start": 81,
83
- "end": 89,
84
- "qid": 46
 
85
  },
86
  {
87
- "start": 113,
88
- "end": 120,
89
- "qid": 183
 
90
  },
91
  {
92
- "start": 133,
93
- "end": 138,
94
- "qid": 163547
 
95
  },
96
  {
97
- "start": 159,
98
- "end": 166,
99
- "qid": 47762
 
100
  }
101
  ]
102
  }
@@ -112,6 +115,7 @@ An example from the AIDA CoNLL-YAGO Wikidata test set looks as follows:
112
  - `start`: an integer representing the inclusive starting UTF-8 code point of the entity
113
  - `end`: an integer representing the exclusive ending UTF-8 code point of the entity
114
  - `qid`: an integer representing the Wikidata QID this entity refers to; it can be null if the entity didn't exist in Wikidata at the time of the creation of the original dataset
 
115
 
116
  ### Data Splits
117
 
@@ -120,7 +124,6 @@ The data is split into training, validation and test sets; all of the sentences
120
  | | Train | Validation | Test |
121
  | :----- | :------: | :-----: | :----: |
122
  | AIDA CoNLL-YAGO Wikidata - documents | 946 | 216 | 231 |
123
- | AIDA CoNLL-YAGO Wikidata - sentences | 13,938 | 3,225 | 3,421 |
124
  | AIDA CoNLL-YAGO Wikidata - entities | 23,374 | 5,912 | 5,608 |
125
  | AIDA CoNLL-YAGO Wikidata - entities with QIDs | 18,540 | 4,791 | 4,481 |
126
 
 
49
 
50
  ### Data Instances
51
 
52
+ A typical data point represents a document (news article).
53
 
54
  The `text` field contains the original text in an NFC normalized, UTF-8 encoded string.
55
 
56
+ The `entities` field contains a list of entities, each represented by a struct with the inclusive starting byte `start` field, exclusive ending byte `end` field, a nullable `qid` field, and a nullable `pageid` field.
57
 
58
+ Additionally, each document has a unique `document_id` field.
 
 
59
 
60
  An example from the AIDA CoNLL-YAGO Wikidata test set looks as follows:
61
 
 
63
  {
64
  "uuid": "f647d183-ed81-4513-b607-2c9cbc98930a"
65
  "document_id": 1393,
66
+ "text": "Russ Berrie president to retire in July . OAKLAND , N.J. 1996-12-06 Russ Berrie and Co Inc said on Friday that A. Curts Cooke will retire as president and chief operating officer effective July 1 , 1997 . Cooke will provide consulting services to the company through July 1 , 1998 , and will continue to serve as a director , the toy and gift maker said .",
 
67
  "entities": [
68
  {
69
+ "start": 0,
70
+ "end": 11,
71
+ "pageid": 1448050,
72
+ "qid": 6404433
73
  },
74
  {
75
+ "start": 42,
76
+ "end": 49,
77
+ "pageid": 124995,
78
+ "qid": 795396
79
  },
80
  {
81
+ "start": 52,
82
+ "end": 56,
83
+ "pageid": 21648,
84
+ "qid": 1408
85
  },
86
  {
87
+ "start": 68,
88
+ "end": 90,
89
+ "pageid": null,
90
+ "qid": null
91
  },
92
  {
93
+ "start": 111,
94
+ "end": 125,
95
+ "pageid": null,
96
+ "qid": null
97
  },
98
  {
99
+ "start": 205,
100
+ "end": 210,
101
+ "pageid": null,
102
+ "qid": null
103
  }
104
  ]
105
  }
 
115
  - `start`: an integer representing the inclusive starting UTF-8 code point of the entity
116
  - `end`: an integer representing the exclusive ending UTF-8 code point of the entity
117
  - `qid`: an integer representing the Wikidata QID this entity refers to; it can be null if the entity didn't exist in Wikidata at the time of the creation of the original dataset
118
+ - `pageid`: an integer representing the Wikipedia pageID this entity refers to; it can be null if the entity didn't exist in Wikipedia at the time of the creation of the original dataset
119
 
120
  ### Data Splits
121
 
 
124
  | | Train | Validation | Test |
125
  | :----- | :------: | :-----: | :----: |
126
  | AIDA CoNLL-YAGO Wikidata - documents | 946 | 216 | 231 |
 
127
  | AIDA CoNLL-YAGO Wikidata - entities | 23,374 | 5,912 | 5,608 |
128
  | AIDA CoNLL-YAGO Wikidata - entities with QIDs | 18,540 | 4,791 | 4,481 |
129
 
test.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17fe278b04e6aea36f260f436f6651df4b50870ffa1fc159f521391e4a3d6d9a
3
- size 219999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:926269e6eee7d8eae707f056b34022684ebd938f45e7b8f9f0f1e822f1d019d5
3
+ size 161738
train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0b27f30972cf7cd328a1e182dbf93911c3a0a3bb049ce20ecffdbb2163809574
3
- size 888899
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32bd3dd27bc3c7f5b12d622ceee1162dda5c8eaccc39c5b6d44f82b1222ee221
3
+ size 629272
validation.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:673558acdcc069a5e929ade780f0c85c180a552675a861c4ce40253d36afa708
3
- size 229941
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9573ddd7ad545bd4d7168ad5eee6bafdf657d7ee7a1b1f78fdb5b7cb8ade3cf0
3
+ size 195038