Skip to content

Commit

Permalink
pushed back forward compatibility date for tf_text.WhitespaceTokenizer.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 397137433
  • Loading branch information
andylou2 authored and tf-text-github-robot committed Sep 16, 2021
1 parent 97d8cf0 commit 93d94e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_text/python/ops/whitespace_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self):
"""Initializes the WhitespaceTokenizer.
"""
super(WhitespaceTokenizer, self).__init__()
if compat.forward_compatible(2021, 9, 13):
if compat.forward_compatible(2021, 9, 27):
self._config = (pywrap_whitespace_tokenizer_config_builder.
build_whitespace_tokenizer_config())
_tf_text_whitespace_tokenizer_op_create_counter.get_cell().increase_by(1)
Expand Down Expand Up @@ -137,7 +137,7 @@ def tokenize_with_offsets(self, input): # pylint: disable=redefined-builtin
else:
# Our rank 1 tensor is the correct shape, so we can process it as
# normal.
if compat.forward_compatible(2021, 9, 13):
if compat.forward_compatible(2021, 9, 27):
return self._whitespace_tokenize_with_offsets(input_tensor)
else:
return self._whitespace_tokenize_with_offsets_encode_decode_wrapper(
Expand Down

0 comments on commit 93d94e0

Please sign in to comment.