Spaces:
Running
Running
Update working_yolo_pipeline.py
Browse files- working_yolo_pipeline.py +4 -3
working_yolo_pipeline.py
CHANGED
|
@@ -1891,9 +1891,10 @@ def convert_bio_to_structured_json_relaxed(input_path: str, output_path: str) ->
|
|
| 1891 |
just_finished_i_option = (entity_type == 'OPTION')
|
| 1892 |
|
| 1893 |
elif label == 'O':
|
| 1894 |
-
if last_entity_type == 'QUESTION':
|
| 1895 |
-
|
| 1896 |
-
just_finished_i_option = False
|
|
|
|
| 1897 |
|
| 1898 |
# Final wrap up
|
| 1899 |
if current_item is not None:
|
|
|
|
| 1891 |
just_finished_i_option = (entity_type == 'OPTION')
|
| 1892 |
|
| 1893 |
elif label == 'O':
|
| 1894 |
+
# if last_entity_type == 'QUESTION':
|
| 1895 |
+
# current_item['question'] += f' {word}'
|
| 1896 |
+
# just_finished_i_option = False
|
| 1897 |
+
pass
|
| 1898 |
|
| 1899 |
# Final wrap up
|
| 1900 |
if current_item is not None:
|