Use of PunktSentenceTokenizer in NLTK

后端 未结 4 1871
不思量自难忘°
不思量自难忘° 2020-12-07 16:55

I am learning Natural Language Processing using NLTK. I came across the code using PunktSentenceTokenizer whose actual use I cannot understand in the given code

4条回答
  •  生来不讨喜
    2020-12-07 17:29

    You can refer below link to get more insight on usage of PunktSentenceTokenizer. It vividly explains why PunktSentenceTokenizer is used instead of sent-tokenize() with regard to your case.

    http://nlpforhackers.io/splitting-text-into-sentences/

提交回复
热议问题