crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

AttributeError: module 'nltk' has no attribute 'toknize'" in TopicSegmentationChunking

Open calionauta opened this issue 2 years ago • 1 comments

When executing the following code:

chunker = TopicSegmentationChunking(num_keywords=3)
Use o código [com cuidado](https://github.com/faq#coding).

The following error occurs:

---> 58     self.tokenizer = nl.toknize.TextTilingTokenizer()
AttributeError: module 'nltk' has no attribute 'toknize'

Perhaps it should be tokenize instead of toknize?

calionauta avatar Jul 17 '24 13:07 calionauta

Thanks for notifying me about the typo. It should be 'tokenize' and not 'toknize'. Plz install the library again.

unclecode avatar Jul 19 '24 09:07 unclecode