Skip to content
Snippets Groups Projects

add space instead of \n in entities

Merged Thibault Lavigne requested to merge replace-by-space into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -353,7 +353,7 @@ def run(
result["confidences"]["by ner token"] = [
{
"text": f"{text[current: next_token]}",
"text": f"{text[current: next_token]}".replace("\n", " "),
"confidence_ner": f"{np.around(np.mean(char_confidences[current : next_token]), 2)}",
}
for current, next_token in pairwise(index + [0])
Loading