Skip to content

Commit

Permalink
Fix typo (#739)
Browse files Browse the repository at this point in the history
Simple typo fix
  • Loading branch information
kimtth committed Apr 30, 2023
1 parent a997257 commit b911d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/semantic_kernel/text/text_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ def _split_text_lines(text: str, max_token_per_line: int, trim: bool) -> List[st


def _split_str_lines(
text: str, max_tokens: int, seprators: List[List[str]], trim: bool
text: str, max_tokens: int, separators: List[List[str]], trim: bool
) -> List[str]:
if not text:
return []

text = text.replace("\r\n", "\n")
lines = []
was_split = False
for split_option in seprators:
for split_option in separators:
if not lines:
lines, was_split = _split_str(text, max_tokens, split_option, trim)
else:
Expand Down

0 comments on commit b911d38

Please sign in to comment.