start_time = time.time()
for text in texts:
tokens = tokenizeAndFilter(text)
result = model.analyze(tokens)
print(json.dumps(result, indent=4, sort_keys=True))
if result["entities"] is not None:
entities = result["entities"]
annotations.append(entities)
After Change
annotations.append(entities)
"""
annotations = model.analyze(texts, output_format)
runtime = round(time.time() - start_time, 3)
if output_format is "json":
annotations["runtime"] = runtime