Created
May 4, 2021 08:20
-
-
Save wfng92/d2e4aea5a4d2cce91af083c6ff9783d6 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
import en_textcat_sarcasm | |
nlp = en_textcat_sarcasm.load() | |
text = ['yea right, so funny', 'You forgot "Am I a joke to you" guy', "Pretty ballsey for Ted to mouth off to his bosses like that.", "I’m sure she is going to make an absolutely stellar cop, with no power trip agenda whatsoever", "Shut up, college boy!!"] | |
docs = list(nlp.pipe(text)) | |
result = [] | |
for doc in docs: | |
print(doc.text) | |
print(f"{doc.cats}\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment