Valahaar
commited on
Commit
·
c1bd660
1
Parent(s):
a2ea84e
fix dataset
Browse files
wsdmt.py
CHANGED
|
@@ -26,7 +26,8 @@ class WSDMTConfig(datasets.BuilderConfig):
|
|
| 26 |
return f"data/{self.corpus}/{self.variety}/{split}/{lang}.jsonl.bz2"
|
| 27 |
|
| 28 |
|
| 29 |
-
POS_TAGS = """ADJ
|
|
|
|
| 30 |
ADV
|
| 31 |
AUX
|
| 32 |
CCONJ
|
|
@@ -133,3 +134,8 @@ class WSDMTDataset(datasets.GeneratorBasedBuilder):
|
|
| 133 |
))
|
| 134 |
for split, paths in downloaded.items()
|
| 135 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
return f"data/{self.corpus}/{self.variety}/{split}/{lang}.jsonl.bz2"
|
| 27 |
|
| 28 |
|
| 29 |
+
POS_TAGS = """ADJ
|
| 30 |
+
ADP
|
| 31 |
ADV
|
| 32 |
AUX
|
| 33 |
CCONJ
|
|
|
|
| 134 |
))
|
| 135 |
for split, paths in downloaded.items()
|
| 136 |
]
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
if __name__ == '__main__':
|
| 140 |
+
from datasets import load_dataset
|
| 141 |
+
load_dataset('Valahaar/wsdmt', corpus='wmt', variety='all', lang1='en', lang2='de', script_version='main')
|