Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ Entity Recognition """
- kind = []
- for entity in gutten_nlp.ents:
- kind.append(entity.label_)
- kind_count = Counter(kind)
- top_kind = kind_count.most_common(5)
- """ Sentence Count """
- sentences = []
- for token in gutten_nlp.sents:
- sentences.append(token)
- print(len(sentences))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement