Created
August 24, 2020 21:40
-
-
Save sevperez/163e522bb1a9d8f654e04e65bedca4da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def print_doc_info(doc): | |
| print(f"Num sentences:\t{len(doc.sentences)}") | |
| print(f"Num tokens:\t{doc.num_tokens}") | |
| print(f"Num words:\t{doc.num_words}") | |
| print(f"Num entities:\t{len(doc.entities)}") | |
| print_doc_info(moby_p1) | |
| # Num sentences: 8 | |
| # Num tokens: 222 | |
| # Num words: 222 | |
| # Num entities: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment