Skip to content

Commit

Permalink
Fix typo in count_unique_words() (#31023)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccluskey authored Apr 18, 2024
1 parent b69e8c6 commit 76c77cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/ml/transforms/tft.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def __init__(
self.split_string_by_delimiter = split_string_by_delimiter
self.key_vocab_filename = key_vocab_filename
if compute_word_count:
self.compute_word_count_fn = count_unqiue_words
self.compute_word_count_fn = count_unique_words
else:
self.compute_word_count_fn = lambda *args, **kwargs: None

Expand All @@ -597,6 +597,6 @@ def apply_transform(self, data: tf.SparseTensor, output_col_name: str):
return {output_col_name: output}


def count_unqiue_words(
def count_unique_words(
data: tf.SparseTensor, output_vocab_name: Optional[str]) -> None:
tft.count_per_key(data, key_vocabulary_filename=output_vocab_name)

0 comments on commit 76c77cd

Please sign in to comment.