ArneBinder commited on
Commit
2895baa
1 Parent(s): 3572a2d

improve log output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,9 +34,9 @@ def predict(text):
34
  ner_pipeline(document)
35
 
36
  # show predicted entities and promote them from predictions to ground-truth annotations
37
- print(f"detected entities:\n")
38
  for entity in document.entities.predictions:
39
- print(f"{entity}")
40
  document.entities.append(entity.copy())
41
 
42
  # execute RE pipeline
 
34
  ner_pipeline(document)
35
 
36
  # show predicted entities and promote them from predictions to ground-truth annotations
37
+ print(f"detected entities:")
38
  for entity in document.entities.predictions:
39
+ print(f"'{entity}', label={entity.label}, score={entity.score}")
40
  document.entities.append(entity.copy())
41
 
42
  # execute RE pipeline