Sanatbek_Matlatipov
commited on
Commit
•
821db02
1
Parent(s):
f58b29b
dataset is moved to google drive
Browse files
aspect-based-sentiment-analysis-uzbek.py
CHANGED
@@ -4,6 +4,7 @@ import datasets
|
|
4 |
from datasets import GeneratorBasedBuilder, DatasetInfo, Split, SplitGenerator, Features, Value, Sequence
|
5 |
|
6 |
|
|
|
7 |
class UzABSA(GeneratorBasedBuilder):
|
8 |
VERSION = datasets.Version("1.0.0")
|
9 |
|
@@ -32,8 +33,7 @@ class UzABSA(GeneratorBasedBuilder):
|
|
32 |
|
33 |
def _split_generators(self, dl_manager):
|
34 |
# Use the dl_manager to download and cache the data
|
35 |
-
downloaded_file = dl_manager.download_and_extract(
|
36 |
-
"/data/absa_uz_all.xml")
|
37 |
return [
|
38 |
SplitGenerator(name=Split.TRAIN, gen_kwargs={"filepath": downloaded_file}),
|
39 |
]
|
|
|
4 |
from datasets import GeneratorBasedBuilder, DatasetInfo, Split, SplitGenerator, Features, Value, Sequence
|
5 |
|
6 |
|
7 |
+
_BASE_URL = "https://drive.google.com/uc?export=download&id=15YklLKAaNXomOAkEAMmLAIIFhS9o-ywS"
|
8 |
class UzABSA(GeneratorBasedBuilder):
|
9 |
VERSION = datasets.Version("1.0.0")
|
10 |
|
|
|
33 |
|
34 |
def _split_generators(self, dl_manager):
|
35 |
# Use the dl_manager to download and cache the data
|
36 |
+
downloaded_file = dl_manager.download_and_extract(_BASE_URL)
|
|
|
37 |
return [
|
38 |
SplitGenerator(name=Split.TRAIN, gen_kwargs={"filepath": downloaded_file}),
|
39 |
]
|