Rachel Wicks
commited on
Commit
•
e19bbe0
1
Parent(s):
caca557
move from rewicks to clsp
Browse files- files.yml +0 -0
- paradocs.py +4 -4
files.yml
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
paradocs.py
CHANGED
@@ -52,15 +52,15 @@ Europarl data which can be used to create parallel document
|
|
52 |
datasets for training of context-aware machine translation models.
|
53 |
"""
|
54 |
|
55 |
-
_HOMEPAGE = "https://huggingface.co/datasets/
|
56 |
|
57 |
_LICENSE = "cc-by-sa-4.0"
|
58 |
|
59 |
-
_URL = "https://huggingface.co/datasets/
|
60 |
|
61 |
# Load the file paths for all the splits (per language currently)
|
62 |
|
63 |
-
file_list_url = "https://huggingface.co/datasets/
|
64 |
import urllib.request
|
65 |
with urllib.request.urlopen(file_list_url) as f:
|
66 |
try:
|
@@ -171,4 +171,4 @@ class ParaDocs(datasets.GeneratorBasedBuilder):
|
|
171 |
except Exception as e:
|
172 |
print(e, filepath)
|
173 |
print("Error reading file:", filepath)
|
174 |
-
|
|
|
52 |
datasets for training of context-aware machine translation models.
|
53 |
"""
|
54 |
|
55 |
+
_HOMEPAGE = "https://huggingface.co/datasets/jhu-clsp/paradocs"
|
56 |
|
57 |
_LICENSE = "cc-by-sa-4.0"
|
58 |
|
59 |
+
_URL = "https://huggingface.co/datasets/jhu-clsp/paradocs"
|
60 |
|
61 |
# Load the file paths for all the splits (per language currently)
|
62 |
|
63 |
+
file_list_url = "https://huggingface.co/datasets/jhu-clsp/paradocs/raw/main/files.yml"
|
64 |
import urllib.request
|
65 |
with urllib.request.urlopen(file_list_url) as f:
|
66 |
try:
|
|
|
171 |
except Exception as e:
|
172 |
print(e, filepath)
|
173 |
print("Error reading file:", filepath)
|
174 |
+
|