repeated phrases in the text Python

后端 未结 4 654
借酒劲吻你
借酒劲吻你 2021-01-21 02:22

I have a problem and I have no idea how to solve it. Please, give a piece of advice.

I have a text. Big, big text. The task is to find all the repeated phrases which len

4条回答
  •  [愿得一人]
    2021-01-21 02:38

    I would suggest looking at the NLTK toolkit. This is open source and intended for natural language teaching. as well as higher level NLP functions, it has a lot of tokenizing type of functions and collections.

提交回复
热议问题