Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crawl4ai/chunking_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def __init__(self, **kwargs):
"""
Initialize the NlpSentenceChunking object.
"""
from crawl4ai.le.legacy.model_loader import load_nltk_punkt
load_nltk_punkt()

def chunk(self, text: str) -> list:
Expand All @@ -86,7 +85,7 @@ def chunk(self, text: str) -> list:
sentences = sent_tokenize(text)
sens = [sent.strip() for sent in sentences]

return list(set(sens))
return sens


# Topic-based segmentation using TextTiling
Expand Down