What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-08 19:19:11
nltk document
>>> import nltk >>> sentence = """At eight o'clock on Thursday morning ... Arthur didn't feel very good.""" >>> tokens = nltk.word_tokenize(sentence) >>> tokens ['At', 'eight', "o'cloc... Add solution -
Python 2021-11-02 16:03:14
nltk bigrams
>>> import nltk >>> from nltk.tokenize import word_tokenize >>> text = "to be or not to be" >>> tokens = nltk.word_tokenize(text) >>> bigrm = nltk.bigrams(tokens) >>> print(*map(' '.join, big... Add solution