Update generic_ner.py
Browse files- generic_ner.py +1 -8
generic_ner.py
CHANGED
|
@@ -98,14 +98,7 @@ def get_entities(tokens, tags, confidences, text):
|
|
| 98 |
"end": entity_end_position,
|
| 99 |
}
|
| 100 |
)
|
| 101 |
-
|
| 102 |
-
# text[entity_start_position:entity_end_position] == original_string
|
| 103 |
-
# )
|
| 104 |
-
print(
|
| 105 |
-
text[entity_start_position:entity_end_position],
|
| 106 |
-
"------",
|
| 107 |
-
original_string,
|
| 108 |
-
)
|
| 109 |
idx += len(subtree)
|
| 110 |
|
| 111 |
# Update the current character position
|
|
|
|
| 98 |
"end": entity_end_position,
|
| 99 |
}
|
| 100 |
)
|
| 101 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
idx += len(subtree)
|
| 103 |
|
| 104 |
# Update the current character position
|