Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. """ Nouns """
  2. nouns = []
  3. for token in gutten_nlp:
  4. if not token.is_stop | token.is_punct and token.pos_ == "NOUN":
  5. nouns.append(token.text)
  6.  
  7.  
  8. """" VERBS """
  9. verbs = []
  10. for token in gutten_nlp:
  11. if not token.is_stop | token.is_punct and token.pos_ == "VERB":
  12. verbs.append(token.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement