Gaëtan Caillaut
commited on
Commit
·
8f0711e
1
Parent(s):
a6fa8fb
add mini corpus
Browse files- .gitattributes +1 -0
- data/corpus_mini.jsonl.gz +3 -0
- frwiki_el.py +4 -1
.gitattributes
CHANGED
@@ -37,3 +37,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
data/corpus.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
39 |
data/entities.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
data/corpus.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
39 |
data/entities.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
40 |
+
data/corpus_mini.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
data/corpus_mini.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a499c28929201b0cb47a659ee031b950c13e3b203204e3e61b75e666ace6282
|
3 |
+
size 954136
|
frwiki_el.py
CHANGED
@@ -36,6 +36,7 @@ _LICENSE = "WTFPL"
|
|
36 |
|
37 |
_URLs = {
|
38 |
"frwiki": "data/corpus.jsonl.gz",
|
|
|
39 |
"entities": "data/entities.jsonl.gz",
|
40 |
}
|
41 |
|
@@ -124,6 +125,8 @@ class FrwikiElDataset(datasets.GeneratorBasedBuilder):
|
|
124 |
BUILDER_CONFIGS = [
|
125 |
datasets.BuilderConfig(name="frwiki", version=VERSION,
|
126 |
description="The frwiki dataset for Entity Linking"),
|
|
|
|
|
127 |
datasets.BuilderConfig(name="entities", version=VERSION,
|
128 |
description="Entities and their descriptions"),
|
129 |
]
|
@@ -132,7 +135,7 @@ class FrwikiElDataset(datasets.GeneratorBasedBuilder):
|
|
132 |
DEFAULT_CONFIG_NAME = "frwiki"
|
133 |
|
134 |
def _info(self):
|
135 |
-
if self.config.name
|
136 |
features = datasets.Features({
|
137 |
"name": datasets.Value("string"),
|
138 |
"wikidata_id": datasets.Value("string"),
|
|
|
36 |
|
37 |
_URLs = {
|
38 |
"frwiki": "data/corpus.jsonl.gz",
|
39 |
+
"frwiki-mini": "data/corpus_mini.jsonl.gz",
|
40 |
"entities": "data/entities.jsonl.gz",
|
41 |
}
|
42 |
|
|
|
125 |
BUILDER_CONFIGS = [
|
126 |
datasets.BuilderConfig(name="frwiki", version=VERSION,
|
127 |
description="The frwiki dataset for Entity Linking"),
|
128 |
+
datasets.BuilderConfig(name="frwiki-mini", version=VERSION,
|
129 |
+
description="1000 first sentences of the frwiki dataset for Entity Linking"),
|
130 |
datasets.BuilderConfig(name="entities", version=VERSION,
|
131 |
description="Entities and their descriptions"),
|
132 |
]
|
|
|
135 |
DEFAULT_CONFIG_NAME = "frwiki"
|
136 |
|
137 |
def _info(self):
|
138 |
+
if self.config.name in ("frwiki", 'frwiki-mini'):
|
139 |
features = datasets.Features({
|
140 |
"name": datasets.Value("string"),
|
141 |
"wikidata_id": datasets.Value("string"),
|