MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_tokenizer

Method test_tokenizer

tests/test_tensorflow_text.py:7–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestTensorflowText(unittest.TestCase):
7 def test_tokenizer(self):
8 word_tokenizer = tf_text.WhitespaceTokenizer()
9
10 tokens = word_tokenizer.tokenize("I love Kaggle!")
11
12 self.assertEqual((3,), tokens.shape)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected