What algorithm I need to find n-grams?

前端 未结 7 489
無奈伤痛
無奈伤痛 2020-12-04 16:56

What algorithm is used for finding ngrams?

Supposing my input data is an array of words and the size of the ngrams I want to find, what algorithm I should use?

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 17:33

    You can use ngram package. One example of its usage is http://amunategui.github.io/speak-like-a-doctor/

提交回复
热议问题