Created
January 17, 2022 17:22
-
-
Save khaledadrani/c09010237e36fc31e20ce2ab40c8b5f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samples = ["Facebook has a price target of $ 20 for this quarter", | |
"$ AAPL is gaining a new momentum"] | |
for doc in ner.pipe(samples): | |
for ent in doc.ents: | |
print(ent.label_, ent.text) | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment