Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. """ Entity Recognition """
  2. kind = []
  3. for entity in gutten_nlp.ents:
  4. kind.append(entity.label_)
  5. kind_count = Counter(kind)
  6. top_kind = kind_count.most_common(5)
  7.  
  8. """ Sentence Count """
  9. sentences = []
  10. for token in gutten_nlp.sents:
  11. sentences.append(token)
  12. print(len(sentences))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement