Skip to content

Instantly share code, notes, and snippets.

@omri374
Last active May 6, 2021 09:13
Show Gist options
  • Save omri374/e6ca6769ecbe1bc501d98dd3eb5b74f4 to your computer and use it in GitHub Desktop.
Save omri374/e6ca6769ecbe1bc501d98dd3eb5b74f4 to your computer and use it in GitHub Desktop.
import pprint
detailed_results = {}
nlp = en_core_web_lg
print("Model name: en_core_web_lg")
for template, name_set in itertools.product(templates, name_sets.items()):
print(f"Name set: {name_set[0]}, Template: \"{template}\"")
results = names_recall(nlp, name_set[1], template)
detailed_results[template, name_set[0]] = results
print("\nDetailed results:")
pprint.pprint(detailed_results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment