Datasets:
Update SourceData.py
Browse files- SourceData.py +5 -0
SourceData.py
CHANGED
@@ -95,6 +95,7 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
95 |
names=self._NER_LABEL_NAMES)
|
96 |
),
|
97 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
|
|
98 |
"text": datasets.Value("string"),
|
99 |
}
|
100 |
)
|
@@ -109,6 +110,7 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
109 |
)
|
110 |
),
|
111 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
|
|
112 |
"text": datasets.Value("string"),
|
113 |
}
|
114 |
)
|
@@ -123,6 +125,7 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
123 |
)
|
124 |
),
|
125 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
|
|
126 |
"text": datasets.Value("string"),
|
127 |
}
|
128 |
)
|
@@ -142,6 +145,7 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
142 |
names=self._ROLES_MULTI
|
143 |
)
|
144 |
),
|
|
|
145 |
"text": datasets.Value("string"),
|
146 |
}
|
147 |
)
|
@@ -153,6 +157,7 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
153 |
feature=datasets.ClassLabel(num_classes=len(self._PANEL_START_NAMES),
|
154 |
names=self._PANEL_START_NAMES)
|
155 |
),
|
|
|
156 |
}
|
157 |
)
|
158 |
|
|
|
95 |
names=self._NER_LABEL_NAMES)
|
96 |
),
|
97 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
98 |
+
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
99 |
"text": datasets.Value("string"),
|
100 |
}
|
101 |
)
|
|
|
110 |
)
|
111 |
),
|
112 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
113 |
+
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
114 |
"text": datasets.Value("string"),
|
115 |
}
|
116 |
)
|
|
|
125 |
)
|
126 |
),
|
127 |
"is_category": datasets.Sequence(feature=datasets.Value("int8")),
|
128 |
+
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
129 |
"text": datasets.Value("string"),
|
130 |
}
|
131 |
)
|
|
|
145 |
names=self._ROLES_MULTI
|
146 |
)
|
147 |
),
|
148 |
+
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
149 |
"text": datasets.Value("string"),
|
150 |
}
|
151 |
)
|
|
|
157 |
feature=datasets.ClassLabel(num_classes=len(self._PANEL_START_NAMES),
|
158 |
names=self._PANEL_START_NAMES)
|
159 |
),
|
160 |
+
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
161 |
}
|
162 |
)
|
163 |
|