Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须将二元搭配保存为变量中的列表,但无法使用搭配()。我需要稍后从函数中返回变量。
collocation_list()而是尝试collocations()按设计的方式打印。
collocation_list()
collocations()
a=nltk.Text(tokenizedwords).collocation_list()
资料来源: