MCPcopy Create free account
hub / github.com/google-research/language / tokenize

Method tokenize

language/serene/preprocessing.py:583–584  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

581 }
582
583 def tokenize(self, text):
584 return self._tokenizer.tokenize(text)
585
586 def encode(self, s):
587 full_text = tf.compat.as_text(s)

Callers 2

encodeMethod · 0.45
encodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected