Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ Nouns """
- nouns = []
- for token in gutten_nlp:
- if not token.is_stop | token.is_punct and token.pos_ == "NOUN":
- nouns.append(token.text)
- """" VERBS """
- verbs = []
- for token in gutten_nlp:
- if not token.is_stop | token.is_punct and token.pos_ == "VERB":
- verbs.append(token.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement