Created
August 11, 2019 22:42
-
-
Save mlai-demo/93e21578748786b44fef4206540a3eb0 to your computer and use it in GitHub Desktop.
This file contains 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
unique = set(words) | |
print("The tokenized text is {} words long, has {} unique words and {} letters on average".format | |
(len(words), len(unique), round(sum(len(word) for word in words)/len(words),2))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment