Update IndicParaphrase.py
Browse files- IndicParaphrase.py +3 -1
IndicParaphrase.py
CHANGED
|
@@ -26,7 +26,7 @@ _HOMEPAGE = "https://indicnlp.ai4bharat.org/indicnlg-suite"
|
|
| 26 |
|
| 27 |
_LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International Public License"
|
| 28 |
|
| 29 |
-
_URL = "https://huggingface.co/datasets/ai4bharat/IndicParaphrase/resolve/main/data/{}_IndicParaphrase_v{}.
|
| 30 |
|
| 31 |
|
| 32 |
_LANGUAGES = [
|
|
@@ -61,6 +61,7 @@ class IndicParaphrase(datasets.GeneratorBasedBuilder):
|
|
| 61 |
features=datasets.Features(
|
| 62 |
{
|
| 63 |
"id": datasets.Value("string"),
|
|
|
|
| 64 |
"input": datasets.Value("string"),
|
| 65 |
"target": datasets.Value("string"),
|
| 66 |
"references": [datasets.Value("string")]
|
|
@@ -125,6 +126,7 @@ class IndicParaphrase(datasets.GeneratorBasedBuilder):
|
|
| 125 |
data = json.loads(row)
|
| 126 |
yield idx_, {
|
| 127 |
"id": data["id"],
|
|
|
|
| 128 |
"input": data["input"],
|
| 129 |
"target": data["target"],
|
| 130 |
"references": data["references"]
|
|
|
|
| 26 |
|
| 27 |
_LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International Public License"
|
| 28 |
|
| 29 |
+
_URL = "https://huggingface.co/datasets/ai4bharat/IndicParaphrase/resolve/main/data/{}_IndicParaphrase_v{}.zip"
|
| 30 |
|
| 31 |
|
| 32 |
_LANGUAGES = [
|
|
|
|
| 61 |
features=datasets.Features(
|
| 62 |
{
|
| 63 |
"id": datasets.Value("string"),
|
| 64 |
+
"pivot": datasets.Value("string"),
|
| 65 |
"input": datasets.Value("string"),
|
| 66 |
"target": datasets.Value("string"),
|
| 67 |
"references": [datasets.Value("string")]
|
|
|
|
| 126 |
data = json.loads(row)
|
| 127 |
yield idx_, {
|
| 128 |
"id": data["id"],
|
| 129 |
+
"pivot": data["pivot"],
|
| 130 |
"input": data["input"],
|
| 131 |
"target": data["target"],
|
| 132 |
"references": data["references"]
|