Joseph's Blog | PPLRDLL.
简记 NLTK 对英文文本进行分句的方法。
123
from nltk.tokenize import sent_tokenizesent_tokenize('this is an example. simply an example.')
上述代码返回的结果是包含了两个分句的 list。结束。