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
2 changes: 1 addition & 1 deletion crawl4ai/content_filter_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def _compute_composite_score(self, metrics, text_len, tag_len, link_text_len):
if self.min_word_threshold:
# Get raw text from metrics node - avoid extra processing
text = metrics["node"].get_text(strip=True)
word_count = text.count(" ") + 1
word_count = len(text.split())
if word_count < self.min_word_threshold:
return -1.0 # Guaranteed removal
score = 0.0
Expand Down