Skip to content
Snippets Groups Projects
Unverified Commit c18aa84d authored by Andrei Fajardo's avatar Andrei Fajardo Committed by GitHub
Browse files

[FIX] - SemanticSplitterNodeParser (#11295)

parent 44e53e2c
Branches
Tags
No related merge requests found
......@@ -227,13 +227,11 @@ class SemanticSplitterNodeParser(NodeParser):
start_index = 0
for index in indices_above_threshold:
end_index = index - 1
group = sentences[start_index : end_index + 1]
group = sentences[start_index : index + 1]
combined_text = "".join([d["sentence"] for d in group])
chunks.append(combined_text)
start_index = index
start_index = index + 1
if start_index < len(sentences):
combined_text = "".join(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment