Skip to content

Commit 5f74eb5

Browse files
authored
fix: remove . as a split condition in noise_sensitivity.py (#1627)
Fix #1626 to support more languages.
1 parent effa4ab commit 5f74eb5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ragas/metrics/_noise_sensitivity.py

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ async def _decompose_answer_into_statements(
101101
sentences_with_index = {
102102
i: sentence
103103
for i, sentence in enumerate(sentences)
104-
if sentence.strip().endswith(".")
105104
}
106105

107106
statements_simplified = await self.statement_prompt.generate(

0 commit comments

Comments
 (0)