Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Jul 22, 2024
1 parent c329a2a commit 83b4a64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def undo_normalize_text(self, text: str) -> str:
def _get_lc_value(self, line: str, remove_stopwords=True) -> tuple[str, list[str]]:
"""Get the language code "lc" and a list of values and normalized values"""
lc, line = line.split(":", 1)
values = [self.undo_normalize_text(words.strip()) for word in line.split(",")]
values = [self.undo_normalize_text(word.strip()) for word in line.split(",")]
stopwords = self.stopwords if remove_stopwords else []
tags = [normalize_text(word, lc, stopwords=stopwords) for word in values]
return lc, values, tags
Expand Down

0 comments on commit 83b4a64

Please sign in to comment.