这是一个Python和NLTK新手问题。我想找出同时出现10次以上且PMI最高的二元组的频率。为此,我正在使用此代码defget_list_phrases(text):tweet_phrases=[]fortweetintext:tweet_words=tweet.split()tweet_phrases.extend(tweet_words)bigram_measures=nltk.collocations.BigramAssocMeasures()finder=BigramCollocationFinder.from_words(tweet_phrases,window_size=