ent and rel types
Browse files- RuREBus.py +3 -2
- entity_types.txt → ent_types.txt +0 -0
- relation_types.txt → rel_types.txt +0 -0
RuREBus.py
CHANGED
|
@@ -29,7 +29,7 @@ class RuREBusBuilder(datasets.GeneratorBasedBuilder):
|
|
| 29 |
|
| 30 |
_DATA_URLS = {
|
| 31 |
'train': 'data/train.jsonl',
|
| 32 |
-
'test':
|
| 33 |
}
|
| 34 |
_RAW_TXT_URLS = {
|
| 35 |
'raw_txt': raw_txt_url
|
|
@@ -99,10 +99,11 @@ class RuREBusBuilder(datasets.GeneratorBasedBuilder):
|
|
| 99 |
)
|
| 100 |
]
|
| 101 |
else:
|
|
|
|
| 102 |
return [
|
| 103 |
datasets.SplitGenerator(
|
| 104 |
name=self.config.name,
|
| 105 |
-
gen_kwargs={'filepath':
|
| 106 |
)
|
| 107 |
]
|
| 108 |
|
|
|
|
| 29 |
|
| 30 |
_DATA_URLS = {
|
| 31 |
'train': 'data/train.jsonl',
|
| 32 |
+
'test': 'data/test.jsonl',
|
| 33 |
}
|
| 34 |
_RAW_TXT_URLS = {
|
| 35 |
'raw_txt': raw_txt_url
|
|
|
|
| 99 |
)
|
| 100 |
]
|
| 101 |
else:
|
| 102 |
+
files = dl_manager.download(self._TYPES_PATHS)
|
| 103 |
return [
|
| 104 |
datasets.SplitGenerator(
|
| 105 |
name=self.config.name,
|
| 106 |
+
gen_kwargs={'filepath': files[self.config.name]},
|
| 107 |
)
|
| 108 |
]
|
| 109 |
|
entity_types.txt → ent_types.txt
RENAMED
|
File without changes
|
relation_types.txt → rel_types.txt
RENAMED
|
File without changes
|