Skip to content

Commit 6472ba7

Browse files
authored
Update tft.py
1 parent dd0e7ea commit 6472ba7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • sdks/python/apache_beam/ml/transforms

sdks/python/apache_beam/ml/transforms/tft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def __init__(
558558
if compute_word_count:
559559
self.compute_word_count_fn = count_unqiue_words
560560
else:
561-
self.compute_word_count_fn = lambda *args, **kwargs: {}
561+
self.compute_word_count_fn = lambda *args, **kwargs: None
562562

563563
if ngram_range != (1, 1) and not ngrams_separator:
564564
raise ValueError(

0 commit comments

Comments
 (0)