Skip to content

Instantly share code, notes, and snippets.

@omri374
Last active April 25, 2021 20:13
Show Gist options
  • Save omri374/1e680ac21f7ed1bbf1b16905b338df48 to your computer and use it in GitHub Desktop.
Save omri374/1e680ac21f7ed1bbf1b16905b338df48 to your computer and use it in GitHub Desktop.
name = "Simon"
doc=en_core_web_trf(f"My name is {name}")
print(f"Name = {name}. Detected entities: {doc.ents}")
name = "Katy"
doc=en_core_web_trf(f"My name is {name}")
print(f"Name = {name}. Detected entities: {doc.ents}")
name = "Moses"
doc=en_core_web_trf(f"This is what God said to {name}")
print(f"Name = {name}. Detected entities: {doc.ents}")
name = "Ronald"
doc=en_core_web_trf(f"This is what God said to {name}")
print(f"Name = {name}. Detected entities: {doc.ents}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment