JP-SystemsX
commited on
Commit
·
6dcb4ac
1
Parent(s):
c39f5c3
Unlocked English Texts
Browse files- super_eurlex.py +10 -5
super_eurlex.py
CHANGED
@@ -55,8 +55,8 @@ _HOMEPAGE = ""
|
|
55 |
# TODO: Add the licence for the dataset here if you can find it
|
56 |
_LICENSE = ""
|
57 |
|
58 |
-
AVAILABLE_LANGUAGES=['DE'
|
59 |
-
SECTORS=['0', '1', '2', '3', '4', '5', '6', '8', '9', 'C', 'E']
|
60 |
|
61 |
# Features to override the standard most Features were scrapped as a sequence
|
62 |
# of strings with only the following exceptions
|
@@ -436,6 +436,11 @@ if __name__ == '__main__':
|
|
436 |
for sector in SECTORS:
|
437 |
for lang in AVAILABLE_LANGUAGES:
|
438 |
print(f'{sector}.{lang}')
|
439 |
-
|
440 |
-
|
441 |
-
|
|
|
|
|
|
|
|
|
|
|
|
55 |
# TODO: Add the licence for the dataset here if you can find it
|
56 |
_LICENSE = ""
|
57 |
|
58 |
+
AVAILABLE_LANGUAGES=['DE', 'EN']
|
59 |
+
SECTORS=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'C', 'E']
|
60 |
|
61 |
# Features to override the standard most Features were scrapped as a sequence
|
62 |
# of strings with only the following exceptions
|
|
|
436 |
for sector in SECTORS:
|
437 |
for lang in AVAILABLE_LANGUAGES:
|
438 |
print(f'{sector}.{lang}')
|
439 |
+
try:
|
440 |
+
dataset = ds.load_dataset(sys.argv[0],f'{sector}.{lang}')
|
441 |
+
print(dataset)
|
442 |
+
print('\n')
|
443 |
+
except Exception as e:
|
444 |
+
# Handle the exception
|
445 |
+
print("An error occurred: " + e.with_traceback())
|
446 |
+
print(f"\n{sector}.{lang} Couldn't be loaded\n")
|