, in <module> File "C:/Users/shengrong/Desktop/bigram", line 43, in bigramreturn tt1.perplexity(my_bigrams)
File "C:\Python27\lib\site-packages\nltk\model\ngram.py", line
我正在取一个字符串,标记它,并想看看最常见的大写,下面是我得到的:import collectionstokens=[token.lower() for token in tokens if len()>1]
aCounter=collections.Counter(bigram)print(aCounter)
然后,