Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
Chinese
Size:
< 1K
License:
Update ws-pos-model-tune.py
Browse files- ws-pos-model-tune.py +1 -2
ws-pos-model-tune.py
CHANGED
@@ -153,8 +153,7 @@ class NlpModelTune(datasets.GeneratorBasedBuilder):
|
|
153 |
sentence_counter += 1
|
154 |
current_words = []
|
155 |
current_labels = []
|
156 |
-
|
157 |
-
# yield sentence
|
158 |
|
159 |
# if something remains:
|
160 |
if current_words:
|
|
|
153 |
sentence_counter += 1
|
154 |
current_words = []
|
155 |
current_labels = []
|
156 |
+
yield sentence
|
|
|
157 |
|
158 |
# if something remains:
|
159 |
if current_words:
|