Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
  • Loading branch information
sarahyurick committed Oct 23, 2024
1 parent 81d8fec commit 72c444b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions nemo_curator/utils/text_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def mecab_splitter(text):
return mecab_splitter

else:

def default_splitter(text):
return text.split()

Expand Down
4 changes: 1 addition & 3 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ def test_wordcount(self):
), f"Expected {expected_data} but got {filtered_data}"

def test_wordcount_zh(self):
dataset = list_to_dataset(
["", "你好。", "我喜欢学习中文。"]
)
dataset = list_to_dataset(["", "你好。", "我喜欢学习中文。"])
filters = ScoreFilter(WordCountFilter(min_words=2, max_words=5, lang="zh"))
filtered_data = filters(dataset)

Expand Down

0 comments on commit 72c444b

Please sign in to comment.