remove trailing whitespaces

This commit is contained in:
Daniel Falbel 2019-11-20 19:59:28 -03:00
parent c5de90561d
commit bd12651d73
No known key found for this signature in database
GPG Key ID: 86D67393B1F8D380

View File

@ -469,25 +469,25 @@ class TextVectorizationPreprocessingTest(
layer._split = "unsuppported"
with self.assertRaisesRegex(ValueError, ".*is not a supported splitting.*"):
_ = layer(input_data)
def test_standardize_with_no_identical_argument(self):
input_array = np.array([["hello world"]])
expected_output = np.array([[1, 1]])
standardize = "".join(["lower", "_and_strip_punctuation"])
layer = get_layer_class()(standardize=standardize)
output = layer(input_array).numpy()
self.assertAllEqual(expected_output, output)
def test_splitting_with_no_identical_argument(self):
input_array = np.array([["hello world"]])
expected_output = np.array([[1, 1]])
split = "".join(["white", "space"])
layer = get_layer_class()(split=split)
output = layer(input_array).numpy()
self.assertAllEqual(expected_output, output)
@keras_parameterized.run_all_keras_modes