Datasets:
use TRAIN split, not ALL
Browse files
wiki-entity-similarity.py
CHANGED
@@ -23,19 +23,19 @@ class WikiEntitySimilarity(datasets.GeneratorBasedBuilder):
|
|
23 |
BUILDER_CONFIG_CLASS = WikiEntitySimilarityConfig
|
24 |
BUILDER_CONFIGS = [
|
25 |
WikiEntitySimilarityConfig(
|
26 |
-
name='
|
27 |
description='min 5 inbound links, lowest quality',
|
28 |
threshhold=5,
|
29 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_5.csv"
|
30 |
),
|
31 |
WikiEntitySimilarityConfig(
|
32 |
-
name='
|
33 |
description='min 10 inbound links, medium quality',
|
34 |
threshhold=10,
|
35 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_10.csv"
|
36 |
),
|
37 |
WikiEntitySimilarityConfig(
|
38 |
-
name='
|
39 |
description='min 20 inbound links, high quality',
|
40 |
threshhold=20,
|
41 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_20.csv"
|
@@ -57,7 +57,7 @@ class WikiEntitySimilarity(datasets.GeneratorBasedBuilder):
|
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
filepath = dl_manager.download(self.config.path)
|
60 |
-
return [ datasets.SplitGenerator(name=datasets.Split.
|
61 |
gen_kwargs={ 'filepath': filepath }) ]
|
62 |
|
63 |
def _generate_examples(self, filepath):
|
|
|
23 |
BUILDER_CONFIG_CLASS = WikiEntitySimilarityConfig
|
24 |
BUILDER_CONFIGS = [
|
25 |
WikiEntitySimilarityConfig(
|
26 |
+
name='2018thresh5',
|
27 |
description='min 5 inbound links, lowest quality',
|
28 |
threshhold=5,
|
29 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_5.csv"
|
30 |
),
|
31 |
WikiEntitySimilarityConfig(
|
32 |
+
name='2018thresh10',
|
33 |
description='min 10 inbound links, medium quality',
|
34 |
threshhold=10,
|
35 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_10.csv"
|
36 |
),
|
37 |
WikiEntitySimilarityConfig(
|
38 |
+
name='2018thresh20',
|
39 |
description='min 20 inbound links, high quality',
|
40 |
threshhold=20,
|
41 |
path="https://huggingface.co/datasets/Exr0n/wiki-entity-similarity/resolve/main/link_synonyms-2018-thresh_20.csv"
|
|
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
filepath = dl_manager.download(self.config.path)
|
60 |
+
return [ datasets.SplitGenerator(name=datasets.Split.TRAIN,
|
61 |
gen_kwargs={ 'filepath': filepath }) ]
|
62 |
|
63 |
def _generate_examples(self, filepath):
|