system HF staff commited on
Commit
cdeba15
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - machine-generated
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - unknown
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - n>1M
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - conditional-text-generation
18
+ - text-retrieval
19
+ task_ids:
20
+ - entity-linking-retrieval
21
+ - fact-checking-retrieval
22
+ - other-stuctured-to-text
23
+ ---
24
+
25
+ # Dataset Card for Never Ending Language Learning (NELL)
26
+
27
+ ## Table of Contents
28
+ - [Dataset Description](#dataset-description)
29
+ - [Dataset Summary](#dataset-summary)
30
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
31
+ - [Languages](#languages)
32
+ - [Dataset Structure](#dataset-structure)
33
+ - [Data Instances](#data-instances)
34
+ - [Data Fields](#data-instances)
35
+ - [Data Splits](#data-instances)
36
+ - [Dataset Creation](#dataset-creation)
37
+ - [Curation Rationale](#curation-rationale)
38
+ - [Source Data](#source-data)
39
+ - [Annotations](#annotations)
40
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
41
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
42
+ - [Social Impact of Dataset](#social-impact-of-dataset)
43
+ - [Discussion of Biases](#discussion-of-biases)
44
+ - [Other Known Limitations](#other-known-limitations)
45
+ - [Additional Information](#additional-information)
46
+ - [Dataset Curators](#dataset-curators)
47
+ - [Licensing Information](#licensing-information)
48
+ - [Citation Information](#citation-information)
49
+
50
+ ## Dataset Description
51
+
52
+ - **Homepage:**
53
+ http://rtw.ml.cmu.edu/rtw/
54
+ - **Repository:**
55
+ http://rtw.ml.cmu.edu/rtw/
56
+ - **Paper:**
57
+ Never-Ending Learning.
58
+ T. Mitchell, W. Cohen, E. Hruschka, P. Talukdar, J. Betteridge, A. Carlson, B. Dalvi, M. Gardner, B. Kisiel, J. Krishnamurthy, N. Lao, K. Mazaitis, T. Mohamed, N. Nakashole, E. Platanios, A. Ritter, M. Samadi, B. Settles, R. Wang, D. Wijaya, A. Gupta, X. Chen, A. Saparov, M. Greaves, J. Welling. In Proceedings of the Conference on Artificial Intelligence (AAAI), 2015
59
+
60
+ ### Dataset Summary
61
+
62
+ This dataset provides version 1115 of the belief
63
+ extracted by CMU's Never Ending Language Learner (NELL) and version
64
+ 1110 of the candidate belief extracted by NELL. See
65
+ http://rtw.ml.cmu.edu/rtw/overview. NELL is an open information
66
+ extraction system that attempts to read the Clueweb09 of 500 million
67
+ web pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general
68
+ web searches.
69
+
70
+ The dataset has 4 configurations: nell_belief, nell_candidate,
71
+ nell_belief_sentences, and nell_candidate_sentences. nell_belief is
72
+ certainties of belief are lower. The two sentences config extracts the
73
+ CPL sentence patterns filled with the applicable 'best' literal string
74
+ for the entities filled into the sentence patterns. And also provides
75
+ sentences found using web searches containing the entities and
76
+ relationships.
77
+
78
+ There are roughly 21M entries for nell_belief_sentences, and 100M
79
+ sentences for nell_candidate_sentences.
80
+
81
+ From the NELL website:
82
+
83
+ - **Research Goal**
84
+ To build a never-ending machine learning system that acquires the ability to extract structured information from unstructured web pages. If successful, this will result in a knowledge base (i.e., a relational database) of structured information that mirrors the content of the Web. We call this system NELL (Never-Ending Language Learner).
85
+
86
+ - **Approach**
87
+ The inputs to NELL include (1) an initial ontology defining hundreds of categories (e.g., person, sportsTeam, fruit, emotion) and relations (e.g., playsOnTeam(athlete,sportsTeam), playsInstrument(musician,instrument)) that NELL is expected to read about, and (2) 10 to 15 seed examples of each category and relation.
88
+
89
+ Given these inputs, plus a collection of 500 million web pages and access to the remainder of the web through search engine APIs, NELL runs 24 hours per day, continuously, to perform two ongoing tasks:
90
+
91
+ Extract new instances of categories and relations. In other words, find noun phrases that represent new examples of the input categories (e.g., "Barack Obama" is a person and politician), and find pairs of noun phrases that correspond to instances of the input relations (e.g., the pair "Jason Giambi" and "Yankees" is an instance of the playsOnTeam relation). These new instances are added to the growing knowledge base of structured beliefs.
92
+ Learn to read better than yesterday. NELL uses a variety of methods to extract beliefs from the web. These are retrained, using the growing knowledge base as a self-supervised collection of training examples. The result is a semi-supervised learning method that couples the training of hundreds of different extraction methods for a wide range of categories and relations. Much of NELL’s current success is due to its algorithm for coupling the simultaneous training of many extraction methods.
93
+
94
+ For more information, see: http://rtw.ml.cmu.edu/rtw/resources
95
+
96
+ ### Languages
97
+ en, and perhaps some others
98
+
99
+ ## Dataset Structure
100
+
101
+ ### Data Instances
102
+
103
+ There are four configurations for the dataset: nell_belief, nell_candidate, nell_belief_sentences, nell_candidate_sentences.
104
+
105
+ nell_belief and nell_candidate defines:
106
+
107
+ ``
108
+ {'best_entity_literal_string': 'Aspect Medical Systems',
109
+ 'best_value_literal_string': '',
110
+ 'candidate_source': '%5BSEAL-Iter%3A215-2011%2F02%2F26-04%3A27%3A09-%3Ctoken%3Daspect_medical_systems%2Cbiotechcompany%3E-From%3ACategory%3Abiotechcompany-using-KB+http%3A%2F%2Fwww.unionegroup.com%2Fhealthcare%2Fmfg_info.htm+http%3A%2F%2Fwww.conventionspc.com%2Fcompanies.html%2C+CPL-Iter%3A1103-2018%2F03%2F08-15%3A32%3A34-%3Ctoken%3Daspect_medical_systems%2Cbiotechcompany%3E-grant+support+from+_%092%09research+support+from+_%094%09unrestricted+educational+grant+from+_%092%09educational+grant+from+_%092%09research+grant+support+from+_%091%09various+financial+management+positions+at+_%091%5D',
111
+ 'categories_for_entity': 'concept:biotechcompany',
112
+ 'categories_for_value': 'concept:company',
113
+ 'entity': 'concept:biotechcompany:aspect_medical_systems',
114
+ 'entity_literal_strings': '"Aspect Medical Systems" "aspect medical systems"',
115
+ 'iteration_of_promotion': '1103',
116
+ 'relation': 'generalizations',
117
+ 'score': '0.9244426550775064',
118
+ 'source': 'MBL-Iter%3A1103-2018%2F03%2F18-01%3A35%3A42-From+ErrorBasedIntegrator+%28SEAL%28aspect_medical_systems%2Cbiotechcompany%29%2C+CPL%28aspect_medical_systems%2Cbiotechcompany%29%29',
119
+ 'value': 'concept:biotechcompany',
120
+ 'value_literal_strings': ''}
121
+ ``
122
+
123
+ nell_belief_sentences, nell_candidate_sentences defines:
124
+
125
+ ``
126
+ {'count': 4,
127
+ 'entity': 'biotechcompany:aspect_medical_systems',
128
+ 'relation': 'generalizations',
129
+ 'score': '0.9244426550775064',
130
+ 'sentence': 'research support from [[ Aspect Medical Systems ]]',
131
+ 'sentence_type': 'CPL',
132
+ 'url': '',
133
+ 'value': 'biotechcompany'}
134
+ ``
135
+
136
+ ### Data Fields
137
+
138
+ For nell_belief and nell_canddiate configurations. From http://rtw.ml.cmu.edu/rtw/faq:
139
+ * entity: The Entity part of the (Entity, Relation, Value) tripple. Note that this will be the name of a concept and is not the literal string of characters seen by NELL from some text source, nor does it indicate the category membership of that concept
140
+ * relation: The Relation part of the (Entity, Relation, Value) tripple. In the case of a category instance, this will be "generalizations". In the case of a relation instance, this will be the name of the relation.
141
+ * value: The Value part of the (Entity, Relation, Value) tripple. In the case of a category instance, this will be the name of the category. In the case of a relation instance, this will be another concept (like Entity).
142
+ * iteration_of_promotion: The point in NELL's life at which this category or relation instance was promoted to one that NELL beleives to be true. This is a non-negative integer indicating the number of iterations of bootstrapping NELL had gone through.
143
+ * score: A confidence score for the belief. Note that NELL's scores are not actually probabilistic at this time.
144
+ * source: A summary of the provenance for the belief indicating the set of learning subcomponents (CPL, SEAL, etc.) that had submitted this belief as being potentially true.
145
+ * entity_literal_strings: The set of actual textual strings that NELL has read that it believes can refer to the concept indicated in the Entity column.
146
+ * value_literal_strings: For relations, the set of actual textual strings that NELL has read that it believes can refer to the concept indicated in the Value column. For categories, this should be empty but may contain something spurious.
147
+ * best_entity_literal_string: Of the set of strings in the Entity literalStrings, column, which one string can best be used to describe the concept.
148
+ * best_value_literal_string: Same thing, but for Value literalStrings.
149
+ * categories_for_entity: The full set of categories (which may be empty) to which NELL belives the concept indicated in the Entity column to belong.
150
+ * categories_for_value: For relations, the full set of categories (which may be empty) to which NELL believes the concept indicated in the Value column to belong. For categories, this should be empty but may contain something spurious.
151
+ * candidate_source: A free-form amalgamation of more specific provenance information describing the justification(s) NELL has for possibly believing this category or relation instance.
152
+
153
+ For the nell_belief_sentences and nell_candidate_sentences, we have extracted the underlying sentences, sentence count and URLs and provided a shortened version of the entity, relation and value field by removing the string "concept:" and "candidate:". There are two types of sentences, 'CPL' and 'OE', which are generated by two of the modules of NELL, pattern matching and open web searching, respectively. There may be duplicates. The configuration is as follows:
154
+ * entity: The Entity part of the (Entity, Relation, Value) tripple. Note that this will be the name of a concept and is not the literal string of characters seen by NELL from some text source, nor does it indicate the category membership of that concept
155
+ * relation: The Relation part of the (Entity, Relation, Value) tripple. In the case of a category instance, this will be "generalizations". In the case of a relation instance, this will be the name of the relation.
156
+ * value: The Value part of the (Entity, Relation, Value) tripple. In the case of a category instance, this will be the name of the category. In the case of a relation instance, this will be another concept (like Entity).
157
+ * score: A confidence score for the belief. Note that NELL's scores are not actually probabilistic at this time.
158
+ * sentence: the raw sentence. For 'CPL' type sentences, there are "[[" "]]" arounds the entity and value. For 'OE' type sentences, there are no "[[" and "]]".
159
+ * url: the url if there is one from which this sentence was extracted
160
+ * count: the count for this sentence
161
+ * sentence_type: either 'CPL' or 'OE'
162
+
163
+ ### Data Splits
164
+
165
+ There are no splits.
166
+
167
+ ## Dataset Creation
168
+
169
+ ### Curation Rationale
170
+
171
+ This dataset was gathered and created over many years of running the NELL system on web data.
172
+
173
+ ### Source Data
174
+
175
+ #### Initial Data Collection and Normalization
176
+
177
+ See the research paper on NELL. NELL searches a subset of the web
178
+ (Clueweb09) and the open web using various open information extraction
179
+ algorithms, including pattern matching.
180
+
181
+ #### Who are the source language producers?
182
+
183
+ The NELL authors at Carnegie Mellon Univiersty and data from Cluebweb09 and the open web.
184
+
185
+ ### Annotations
186
+
187
+ #### Annotation process
188
+
189
+ The various open information extraction modules of NELL.
190
+
191
+ #### Who are the annotators?
192
+
193
+ Machine annotated.
194
+
195
+ ### Personal and Sensitive Information
196
+
197
+ Unkown, but likely there are names of famous individuals.
198
+
199
+ ## Considerations for Using the Data
200
+
201
+ ### Social Impact of Dataset
202
+
203
+ The goal for the work is to help machines learn to read and understand the web.
204
+
205
+ ### Discussion of Biases
206
+
207
+ Since the data is gathered from the web, there is likely to be biased text and relationships.
208
+
209
+ [More Information Needed]
210
+
211
+ ### Other Known Limitations
212
+
213
+ The relationships and concepts gathered from NELL are not 100% accurate, and there could be errors (maybe as high as 30% error).
214
+ See https://en.wikipedia.org/wiki/Never-Ending_Language_Learning
215
+
216
+ We did not 'tag' the entity and value in the 'OE' sentences, and this might be an extension in the future.
217
+
218
+ ## Additional Information
219
+
220
+ ### Dataset Curators
221
+
222
+ The authors of NELL at Carnegie Mellon Univeristy
223
+
224
+ ### Licensing Information
225
+
226
+ There does not appear to be a license on http://rtw.ml.cmu.edu/rtw/resources. The data is made available by CMU on the web.
227
+
228
+ ### Citation Information
229
+ @inproceedings{mitchell2015,
230
+ added-at = {2015-01-27T15:35:24.000+0100},
231
+ author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},
232
+ biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},
233
+ booktitle = {AAAI},
234
+ description = {Papers by William W. Cohen},
235
+ interhash = {52d0d71f6f5b332dabc1412f18e3a93d},
236
+ intrahash = {63070703e6bb812852cca56574aed093},
237
+ keywords = {learning nell ontology semantic toread},
238
+ note = {: Never-Ending Learning in AAAI-2015},
239
+ timestamp = {2015-01-27T15:35:24.000+0100},
240
+ title = {Never-Ending Learning},
241
+ url = {http://www.cs.cmu.edu/~wcohen/pubs.html},
242
+ year = 2015
243
+ }
244
+
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"nell_belief": {"description": "This dataset provides version 1115 of the belief\nextracted by CMU's Never Ending Language Learner (NELL) and version\n1110 of the candidate belief extracted by NELL. See\nhttp://rtw.ml.cmu.edu/rtw/overview. NELL is an open information\nextraction system that attempts to read the Clueweb09 of 500 million\nweb pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general\nweb searches.\n\nThe dataset has 4 configurations: nell_belief, nell_candidate,\nnell_belief_sentences, and nell_candidate_sentences. nell_belief is\ncertainties of belief are lower. The two sentences config extracts the\nCPL sentence patterns filled with the applicable 'best' literal string\nfor the entities filled into the sentence patterns. And also provides\nsentences found using web searches containing the entities and\nrelationships.\n\nThere are roughly 21M entries for nell_belief_sentences, and 100M\nsentences for nell_candidate_sentences.\n", "citation": "@inproceedings{mitchell2015,\n added-at = {2015-01-27T15:35:24.000+0100},\n author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},\n biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},\n booktitle = {AAAI},\n description = {Papers by William W. Cohen},\n interhash = {52d0d71f6f5b332dabc1412f18e3a93d},\n intrahash = {63070703e6bb812852cca56574aed093},\n keywords = {learning nell ontology semantic toread},\n note = {: Never-Ending Learning in AAAI-2015},\n timestamp = {2015-01-27T15:35:24.000+0100},\n title = {Never-Ending Learning},\n url = {http://www.cs.cmu.edu/~wcohen/pubs.html},\n year = 2015\n}\n", "homepage": "http://rtw.ml.cmu.edu/rtw/", "license": "\n", "features": {"entity": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"dtype": "string", "id": null, "_type": "Value"}, "value": {"dtype": "string", "id": null, "_type": "Value"}, "iteration_of_promotion": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "entity_literal_strings": {"dtype": "string", "id": null, "_type": "Value"}, "value_literal_strings": {"dtype": "string", "id": null, "_type": "Value"}, "best_entity_literal_string": {"dtype": "string", "id": null, "_type": "Value"}, "best_value_literal_string": {"dtype": "string", "id": null, "_type": "Value"}, "categories_for_entity": {"dtype": "string", "id": null, "_type": "Value"}, "categories_for_value": {"dtype": "string", "id": null, "_type": "Value"}, "candidate_source": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "nell", "config_name": "nell_belief", "version": {"version_str": "1115.0.0", "description": null, "major": 1115, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4592559704, "num_examples": 2766079, "dataset_name": "nell"}}, "download_checksums": {"http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1115.esv.csv.gz": {"num_bytes": 929107246, "checksum": "f2f09961fc5f362597b967ce98fc43790cb5de921d98a866c1e48aa1c8be4f67"}}, "download_size": 929107246, "post_processing_size": null, "dataset_size": 4592559704, "size_in_bytes": 5521666950}, "nell_candidate": {"description": "This dataset provides version 1115 of the belief\nextracted by CMU's Never Ending Language Learner (NELL) and version\n1110 of the candidate belief extracted by NELL. See\nhttp://rtw.ml.cmu.edu/rtw/overview. NELL is an open information\nextraction system that attempts to read the Clueweb09 of 500 million\nweb pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general\nweb searches.\n\nThe dataset has 4 configurations: nell_belief, nell_candidate,\nnell_belief_sentences, and nell_candidate_sentences. nell_belief is\ncertainties of belief are lower. The two sentences config extracts the\nCPL sentence patterns filled with the applicable 'best' literal string\nfor the entities filled into the sentence patterns. And also provides\nsentences found using web searches containing the entities and\nrelationships.\n\nThere are roughly 21M entries for nell_belief_sentences, and 100M\nsentences for nell_candidate_sentences.\n", "citation": "@inproceedings{mitchell2015,\n added-at = {2015-01-27T15:35:24.000+0100},\n author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},\n biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},\n booktitle = {AAAI},\n description = {Papers by William W. Cohen},\n interhash = {52d0d71f6f5b332dabc1412f18e3a93d},\n intrahash = {63070703e6bb812852cca56574aed093},\n keywords = {learning nell ontology semantic toread},\n note = {: Never-Ending Learning in AAAI-2015},\n timestamp = {2015-01-27T15:35:24.000+0100},\n title = {Never-Ending Learning},\n url = {http://www.cs.cmu.edu/~wcohen/pubs.html},\n year = 2015\n}\n", "homepage": "http://rtw.ml.cmu.edu/rtw/", "license": "\n", "features": {"entity": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"dtype": "string", "id": null, "_type": "Value"}, "value": {"dtype": "string", "id": null, "_type": "Value"}, "iteration_of_promotion": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "entity_literal_strings": {"dtype": "string", "id": null, "_type": "Value"}, "value_literal_strings": {"dtype": "string", "id": null, "_type": "Value"}, "best_entity_literal_string": {"dtype": "string", "id": null, "_type": "Value"}, "best_value_literal_string": {"dtype": "string", "id": null, "_type": "Value"}, "categories_for_entity": {"dtype": "string", "id": null, "_type": "Value"}, "categories_for_value": {"dtype": "string", "id": null, "_type": "Value"}, "candidate_source": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "nell", "config_name": "nell_candidate", "version": {"version_str": "1110.0.0", "description": null, "major": 1110, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 23497433060, "num_examples": 32687353, "dataset_name": "nell"}}, "download_checksums": {"http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1110.cesv.csv.gz": {"num_bytes": 2687057812, "checksum": "d07e443c8dd5f799c71a42648bc6a90beff0fe6900b69d4c470b3323a0dbe244"}}, "download_size": 2687057812, "post_processing_size": null, "dataset_size": 23497433060, "size_in_bytes": 26184490872}, "nell_belief_sentences": {"description": "This dataset provides version 1115 of the belief\nextracted by CMU's Never Ending Language Learner (NELL) and version\n1110 of the candidate belief extracted by NELL. See\nhttp://rtw.ml.cmu.edu/rtw/overview. NELL is an open information\nextraction system that attempts to read the Clueweb09 of 500 million\nweb pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general\nweb searches.\n\nThe dataset has 4 configurations: nell_belief, nell_candidate,\nnell_belief_sentences, and nell_candidate_sentences. nell_belief is\ncertainties of belief are lower. The two sentences config extracts the\nCPL sentence patterns filled with the applicable 'best' literal string\nfor the entities filled into the sentence patterns. And also provides\nsentences found using web searches containing the entities and\nrelationships.\n\nThere are roughly 21M entries for nell_belief_sentences, and 100M\nsentences for nell_candidate_sentences.\n", "citation": "@inproceedings{mitchell2015,\n added-at = {2015-01-27T15:35:24.000+0100},\n author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},\n biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},\n booktitle = {AAAI},\n description = {Papers by William W. Cohen},\n interhash = {52d0d71f6f5b332dabc1412f18e3a93d},\n intrahash = {63070703e6bb812852cca56574aed093},\n keywords = {learning nell ontology semantic toread},\n note = {: Never-Ending Learning in AAAI-2015},\n timestamp = {2015-01-27T15:35:24.000+0100},\n title = {Never-Ending Learning},\n url = {http://www.cs.cmu.edu/~wcohen/pubs.html},\n year = 2015\n}\n", "homepage": "http://rtw.ml.cmu.edu/rtw/", "license": "\n", "features": {"entity": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"dtype": "string", "id": null, "_type": "Value"}, "value": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "string", "id": null, "_type": "Value"}, "sentence": {"dtype": "string", "id": null, "_type": "Value"}, "count": {"dtype": "int32", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_type": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "nell", "config_name": "nell_belief_sentences", "version": {"version_str": "1115.0.0", "description": null, "major": 1115, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4459368426, "num_examples": 21031531, "dataset_name": "nell"}}, "download_checksums": {"http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1115.esv.csv.gz": {"num_bytes": 929107246, "checksum": "f2f09961fc5f362597b967ce98fc43790cb5de921d98a866c1e48aa1c8be4f67"}}, "download_size": 929107246, "post_processing_size": null, "dataset_size": 4459368426, "size_in_bytes": 5388475672}, "nell_candidate_sentences": {"description": "This dataset provides version 1115 of the belief\nextracted by CMU's Never Ending Language Learner (NELL) and version\n1110 of the candidate belief extracted by NELL. See\nhttp://rtw.ml.cmu.edu/rtw/overview. NELL is an open information\nextraction system that attempts to read the Clueweb09 of 500 million\nweb pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general\nweb searches.\n\nThe dataset has 4 configurations: nell_belief, nell_candidate,\nnell_belief_sentences, and nell_candidate_sentences. nell_belief is\ncertainties of belief are lower. The two sentences config extracts the\nCPL sentence patterns filled with the applicable 'best' literal string\nfor the entities filled into the sentence patterns. And also provides\nsentences found using web searches containing the entities and\nrelationships.\n\nThere are roughly 21M entries for nell_belief_sentences, and 100M\nsentences for nell_candidate_sentences.\n", "citation": "@inproceedings{mitchell2015,\n added-at = {2015-01-27T15:35:24.000+0100},\n author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},\n biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},\n booktitle = {AAAI},\n description = {Papers by William W. Cohen},\n interhash = {52d0d71f6f5b332dabc1412f18e3a93d},\n intrahash = {63070703e6bb812852cca56574aed093},\n keywords = {learning nell ontology semantic toread},\n note = {: Never-Ending Learning in AAAI-2015},\n timestamp = {2015-01-27T15:35:24.000+0100},\n title = {Never-Ending Learning},\n url = {http://www.cs.cmu.edu/~wcohen/pubs.html},\n year = 2015\n}\n", "homepage": "http://rtw.ml.cmu.edu/rtw/", "license": "\n", "features": {"entity": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"dtype": "string", "id": null, "_type": "Value"}, "value": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "string", "id": null, "_type": "Value"}, "sentence": {"dtype": "string", "id": null, "_type": "Value"}, "count": {"dtype": "int32", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_type": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "nell", "config_name": "nell_candidate_sentences", "version": "1110.0.0", "splits": {"train": {"name": "train", "num_bytes": 20058197787, "num_examples": 100866414, "dataset_name": "nell"}}, "download_checksums": {"http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1110.cesv.csv.gz": {"num_bytes": 2687057812, "checksum": "d07e443c8dd5f799c71a42648bc6a90beff0fe6900b69d4c470b3323a0dbe244"}}, "download_size": 2687057812, "post_processing_size": null, "dataset_size": 20058197787, "size_in_bytes": 22745255599}}
dummy/nell_belief/1115.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1d80937e52be382fafd33c6298c7926125003c9da95c8544c178ffccadd5306
3
+ size 2576
dummy/nell_belief_sentences/1115.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4ccafb69e5a6b8fcf175602ca68da17f91e8bd4165b27ec9684cf4ff7f40f02
3
+ size 2576
dummy/nell_candidate/1110.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:beda063dc2763b2105cbfc6dbbbbb31ef68e1c1582bc7b503da40b5e5f0184bd
3
+ size 955
dummy/nell_candidate_sentences/1110.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e736f2fba1cdea725d67a41034a3245aecf4fbe6a36679446a17b56318f7b12
3
+ size 955
nell.py ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """NELL: Never Ending Language Learner"""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ from html import unescape
20
+ from urllib.parse import unquote
21
+
22
+ import datasets
23
+
24
+
25
+ _CITATION = """\
26
+ @inproceedings{mitchell2015,
27
+ added-at = {2015-01-27T15:35:24.000+0100},
28
+ author = {Mitchell, T. and Cohen, W. and Hruscha, E. and Talukdar, P. and Betteridge, J. and Carlson, A. and Dalvi, B. and Gardner, M. and Kisiel, B. and Krishnamurthy, J. and Lao, N. and Mazaitis, K. and Mohammad, T. and Nakashole, N. and Platanios, E. and Ritter, A. and Samadi, M. and Settles, B. and Wang, R. and Wijaya, D. and Gupta, A. and Chen, X. and Saparov, A. and Greaves, M. and Welling, J.},
29
+ biburl = {https://www.bibsonomy.org/bibtex/263070703e6bb812852cca56574aed093/hotho},
30
+ booktitle = {AAAI},
31
+ description = {Papers by William W. Cohen},
32
+ interhash = {52d0d71f6f5b332dabc1412f18e3a93d},
33
+ intrahash = {63070703e6bb812852cca56574aed093},
34
+ keywords = {learning nell ontology semantic toread},
35
+ note = {: Never-Ending Learning in AAAI-2015},
36
+ timestamp = {2015-01-27T15:35:24.000+0100},
37
+ title = {Never-Ending Learning},
38
+ url = {http://www.cs.cmu.edu/~wcohen/pubs.html},
39
+ year = 2015
40
+ }
41
+ """
42
+
43
+
44
+ _DESCRIPTION = """This dataset provides version 1115 of the belief
45
+ extracted by CMU's Never Ending Language Learner (NELL) and version
46
+ 1110 of the candidate belief extracted by NELL. See
47
+ http://rtw.ml.cmu.edu/rtw/overview. NELL is an open information
48
+ extraction system that attempts to read the Clueweb09 of 500 million
49
+ web pages (http://boston.lti.cs.cmu.edu/Data/clueweb09/) and general
50
+ web searches.
51
+
52
+ The dataset has 4 configurations: nell_belief, nell_candidate,
53
+ nell_belief_sentences, and nell_candidate_sentences. nell_belief is
54
+ certainties of belief are lower. The two sentences config extracts the
55
+ CPL sentence patterns filled with the applicable 'best' literal string
56
+ for the entities filled into the sentence patterns. And also provides
57
+ sentences found using web searches containing the entities and
58
+ relationships.
59
+
60
+ There are roughly 21M entries for nell_belief_sentences, and 100M
61
+ sentences for nell_candidate_sentences.
62
+ """
63
+
64
+
65
+ _LICENSE = """
66
+ """
67
+
68
+ _URLs = {
69
+ "nell_belief": "http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1115.esv.csv.gz",
70
+ "nell_candidate": "http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1110.cesv.csv.gz",
71
+ "nell_belief_sentences": "http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1115.esv.csv.gz",
72
+ "nell_candidate_sentences": "http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1110.cesv.csv.gz",
73
+ }
74
+
75
+
76
+ class Nell(datasets.GeneratorBasedBuilder):
77
+ """NELL dataset for knowledge bases and knowledge graphs and underlying sentences."""
78
+
79
+ VERSION = datasets.Version("0.1.0")
80
+
81
+ BUILDER_CONFIGS = [
82
+ datasets.BuilderConfig(name="nell_belief", description="The beliefs in raw data form", version="1115.0.0"),
83
+ datasets.BuilderConfig(
84
+ name="nell_candidate", description="The candidate beliefs in raw data form", version="1110.0.0"
85
+ ),
86
+ datasets.BuilderConfig(
87
+ name="nell_belief_sentences",
88
+ description="The underlying sentences available for the nell beliefs",
89
+ version="1115.0.0",
90
+ ),
91
+ datasets.BuilderConfig(
92
+ name="nell_candidate_sentences",
93
+ description="The underlying sentences available for the nell candidate beliefs",
94
+ version="1110.0.0",
95
+ ),
96
+ ]
97
+
98
+ DEFAULT_CONFIG_NAME = "nell"
99
+
100
+ def _info(self):
101
+ if self.config.name in ("nell_belief", "nell_candidate"):
102
+ features = datasets.Features(
103
+ {
104
+ "entity": datasets.Value("string"),
105
+ "relation": datasets.Value("string"),
106
+ "value": datasets.Value("string"),
107
+ "iteration_of_promotion": datasets.Value("string"),
108
+ "score": datasets.Value("string"),
109
+ "source": datasets.Value("string"),
110
+ "entity_literal_strings": datasets.Value("string"),
111
+ "value_literal_strings": datasets.Value("string"),
112
+ "best_entity_literal_string": datasets.Value("string"),
113
+ "best_value_literal_string": datasets.Value("string"),
114
+ "categories_for_entity": datasets.Value("string"),
115
+ "categories_for_value": datasets.Value("string"),
116
+ "candidate_source": datasets.Value("string"),
117
+ }
118
+ )
119
+ else:
120
+ features = datasets.Features(
121
+ {
122
+ "entity": datasets.Value("string"),
123
+ "relation": datasets.Value("string"),
124
+ "value": datasets.Value("string"),
125
+ "score": datasets.Value("string"),
126
+ "sentence": datasets.Value("string"),
127
+ "count": datasets.Value("int32"),
128
+ "url": datasets.Value("string"),
129
+ "sentence_type": datasets.Value("string"),
130
+ }
131
+ )
132
+ return datasets.DatasetInfo(
133
+ description=_DESCRIPTION,
134
+ features=features,
135
+ supervised_keys=None,
136
+ homepage="http://rtw.ml.cmu.edu/rtw/",
137
+ license=_LICENSE,
138
+ citation=_CITATION,
139
+ )
140
+
141
+ def _split_generators(self, dl_manager):
142
+ """Returns SplitGenerators."""
143
+ my_urls = _URLs[self.config.name]
144
+ data_dir = dl_manager.download_and_extract(my_urls)
145
+ return [
146
+ datasets.SplitGenerator(
147
+ name=datasets.Split.TRAIN,
148
+ gen_kwargs={
149
+ "filepath": data_dir,
150
+ "split": "train",
151
+ },
152
+ ),
153
+ ]
154
+
155
+ def _generate_examples(self, filepath, split):
156
+ """ Yields examples from the NELL belief knowledge base and candidate bleifs knowledge base if the config is 'nell_belief' and 'nell_candidate', respectively, otherwise yields the sentences for two dataset if the config is 'nell_belief_sentences' and 'nell_candidate_sentences' respectively. """
157
+
158
+ with open(filepath, encoding="utf-8") as f:
159
+ id_ = -1
160
+ for row in f:
161
+ row = row.strip().split("\t")
162
+ if "[" in row[3]:
163
+ row[3] = row[3].strip("[]").split(",")[0]
164
+ if "[" in row[4]:
165
+ row[4] = row[4].strip("[]").split(",")[0]
166
+ if self.config.name in ("nell_belief", "nell_candidate"):
167
+ id_ += 1
168
+ yield id_, {
169
+ "entity": row[0].strip(),
170
+ "relation": row[1].strip(),
171
+ "value": row[2].strip(),
172
+ "iteration_of_promotion": row[3].strip(),
173
+ "score": row[4].strip(),
174
+ "source": row[5].strip(),
175
+ "entity_literal_strings": row[6].strip(),
176
+ "value_literal_strings": row[7].strip(),
177
+ "best_entity_literal_string": row[8].strip(),
178
+ "best_value_literal_string": row[9].strip(),
179
+ "categories_for_entity": row[10].strip(),
180
+ "categories_for_value": row[11].strip(),
181
+ "candidate_source": row[12].strip(),
182
+ }
183
+ else:
184
+ best_arg1 = row[8]
185
+ best_arg2 = row[9]
186
+ iter_type = ""
187
+ for s2 in unquote(row[12]).strip("[]").split("-Iter"):
188
+ if iter_type in ("CPL", "OE"):
189
+ arr = unescape(s2.split(">", 1)[-1].strip("-").replace("+", " ")).split("\t")
190
+ la = len(arr)
191
+ count = 0
192
+ url = ""
193
+ for i in range(0, la, 2):
194
+ sentence = arr[i]
195
+ if i + 1 == la:
196
+ count = 1
197
+ url = ""
198
+ else:
199
+ try:
200
+ count = int(arr[i + 1].split(",")[0])
201
+ url = ""
202
+ except ValueError:
203
+ count = 1
204
+ url = ""
205
+ if arr[i + 1].startswith("http"):
206
+ url = arr[i + 1].split(",")[0]
207
+ if iter_type == "CPL":
208
+ if "_" in sentence:
209
+ sentence = sentence.replace("_", "[[ " + best_arg1 + " ]]")
210
+ elif "arg1" in sentence:
211
+ sentence = sentence.replace("arg1", "[[ " + best_arg1 + " ]]").replace(
212
+ "arg2", "[[ " + best_arg2 + " ]]"
213
+ )
214
+ else:
215
+ continue
216
+ if sentence.endswith("CPL"):
217
+ sentence = sentence[:-5]
218
+ if sentence.endswith("OE"):
219
+ sentence = sentence[:-4]
220
+ id_ += 1
221
+ yield id_, {
222
+ "entity": row[0].replace("candidate:", "").replace("concept:", "").strip(),
223
+ "relation": row[1].replace("candidate:", "").replace("concept:", "").strip(),
224
+ "value": row[2].replace("candidate:", "").replace("concept:", "").strip(),
225
+ "score": row[4].strip(),
226
+ "sentence": sentence.strip(),
227
+ "count": int(count),
228
+ "url": url.strip(),
229
+ "sentence_type": iter_type,
230
+ }
231
+ iter_type = s2.split(",")[-1].strip("+")