Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/language
/ tokenize
Method
tokenize
language/serene/tokenizers.py:43–46 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
41
self._lowercase = lowercase
42
43
def
tokenize(self, text):
44
if
self._lowercase:
45
text = text.lower()
46
return
text.split()
47
48
def
save_to_file(self, filename_prefix):
49
util.write_json({
'lowercase'
: self._lowercase},
Callers
nothing calls this directly
Calls
1
split
Method · 0.80
Tested by
no test coverage detected