Upload TexPrax.py
Browse files- TexPrax.py +7 -1
TexPrax.py
CHANGED
|
@@ -73,7 +73,13 @@ class TexPraxDataset(datasets.GeneratorBasedBuilder):
|
|
| 73 |
# Note: ID consists of <dialog-id_sentence-id_turn-id>
|
| 74 |
"id": datasets.Value("string"),
|
| 75 |
"sentence": datasets.Value("string"),
|
| 76 |
-
"label": datasets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
"subsplit": datasets.Value("string"),
|
| 78 |
# These are the features of your dataset like images, labels ...
|
| 79 |
}
|
|
|
|
| 73 |
# Note: ID consists of <dialog-id_sentence-id_turn-id>
|
| 74 |
"id": datasets.Value("string"),
|
| 75 |
"sentence": datasets.Value("string"),
|
| 76 |
+
"label": datasets.features.ClassLabel(
|
| 77 |
+
names=[
|
| 78 |
+
"P",
|
| 79 |
+
"C",
|
| 80 |
+
"S",
|
| 81 |
+
"O",
|
| 82 |
+
]),
|
| 83 |
"subsplit": datasets.Value("string"),
|
| 84 |
# These are the features of your dataset like images, labels ...
|
| 85 |
}
|