Commit ·
ff77c23
1
Parent(s): f27adfc
fix usage of merge_non_contiguous_spans
Browse files
brat.py
CHANGED
|
@@ -86,7 +86,7 @@ def example_to_document(
|
|
| 86 |
f"joined span parts does not match stripped span text field content. "
|
| 87 |
f'joined_span_texts_stripped: "{joined_span_texts_stripped}" != stripped "text": "{span_text_stripped}"'
|
| 88 |
)
|
| 89 |
-
if
|
| 90 |
if len(starts) > 1:
|
| 91 |
logger.warning(
|
| 92 |
f"document '{doc.id}' contains a non-contiguous span (will be merged into a single span): "
|
|
|
|
| 86 |
f"joined span parts does not match stripped span text field content. "
|
| 87 |
f'joined_span_texts_stripped: "{joined_span_texts_stripped}" != stripped "text": "{span_text_stripped}"'
|
| 88 |
)
|
| 89 |
+
if merge_non_contiguous_spans:
|
| 90 |
if len(starts) > 1:
|
| 91 |
logger.warning(
|
| 92 |
f"document '{doc.id}' contains a non-contiguous span (will be merged into a single span): "
|