Gaëtan Caillaut
commited on
Commit
·
2b34116
1
Parent(s):
8d1a163
abstracts dataset
Browse files- .gitattributes +1 -0
- data/corpus_abstracts.jsonl.gz +3 -0
- frwiki_el.py +4 -1
.gitattributes
CHANGED
@@ -38,3 +38,4 @@ saved_model/**/* 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
|
|
|
|
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
|
41 |
+
data/corpus_abstracts.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
data/corpus_abstracts.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91570ed10660cf92fa2f4fdd161faaa7c797240fe7c80a8ee3f9231eec965819
|
3 |
+
size 361376256
|
frwiki_el.py
CHANGED
@@ -37,6 +37,7 @@ _LICENSE = "WTFPL"
|
|
37 |
_URLs = {
|
38 |
"frwiki": "data/corpus.jsonl.gz",
|
39 |
"frwiki-mini": "data/corpus_mini.jsonl.gz",
|
|
|
40 |
"entities": "data/entities.jsonl.gz",
|
41 |
}
|
42 |
|
@@ -127,6 +128,8 @@ class FrwikiElDataset(datasets.GeneratorBasedBuilder):
|
|
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,7 +138,7 @@ class FrwikiElDataset(datasets.GeneratorBasedBuilder):
|
|
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"),
|
|
|
37 |
_URLs = {
|
38 |
"frwiki": "data/corpus.jsonl.gz",
|
39 |
"frwiki-mini": "data/corpus_mini.jsonl.gz",
|
40 |
+
"frwiki-abstracts": "data/corpus_abstracts.jsonl.gz",
|
41 |
"entities": "data/entities.jsonl.gz",
|
42 |
}
|
43 |
|
|
|
128 |
description="The frwiki dataset for Entity Linking"),
|
129 |
datasets.BuilderConfig(name="frwiki-mini", version=VERSION,
|
130 |
description="1000 first sentences of the frwiki dataset for Entity Linking"),
|
131 |
+
datasets.BuilderConfig(name="frwiki-abstracts", version=VERSION,
|
132 |
+
description="Abstracts (first paragraph) of the frwiki pages."),
|
133 |
datasets.BuilderConfig(name="entities", version=VERSION,
|
134 |
description="Entities and their descriptions"),
|
135 |
]
|
|
|
138 |
DEFAULT_CONFIG_NAME = "frwiki"
|
139 |
|
140 |
def _info(self):
|
141 |
+
if self.config.name in ("frwiki", 'frwiki-mini', 'frwiki-abstracts'):
|
142 |
features = datasets.Features({
|
143 |
"name": datasets.Value("string"),
|
144 |
"wikidata_id": datasets.Value("string"),
|