common_contexts in nltk.book returns NoneType and hence how is it possible to store its output to a variable
from nltk.book import *
wtc=text1.common_contexts(['you'])
print(wtc)
print(type(wtc))
wtc variable above will return NONE.
common_contexts in nltk.book returns NoneType and hence how is it possible to store its output to a variable
from nltk.book import *
wtc=text1.common_contexts(['you'])
print(wtc)
print(type(wtc))
wtc variable above will return NONE.
Copyright © 2021 Jogjafile Inc.
What I tried was to write the ouput of common_context to a file ans then read from it using splitlines