Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/language
/ decode
Method
decode
language/serene/preprocessing.py:627–628 ·
view source on GitHub ↗
(self, ids)
Source
from the content-addressed store, hash-verified
625
return
tokens, word_ids, masks, segment_ids
626
627
def
decode(self, ids):
628
raise
NotImplementedError()
629
630
def
vocab_size(self):
631
return
len(self._tokenizer.vocab)
Callers
15
generate_examples
Function · 0.45
__init__
Method · 0.45
hotpot_eval_fn
Function · 0.45
fetch_aliases
Method · 0.45
get_name
Method · 0.45
get_aliases
Method · 0.45
main
Function · 0.45
process_tfr
Function · 0.45
encode
Method · 0.45
encode
Method · 0.45
unwrap_tensor
Function · 0.45
tf_to_str
Function · 0.45
Calls
no outgoing calls
Tested by
4
test_lowercase
Method · 0.36
test_lowercase_unicode
Method · 0.36
assertCreateEntryFromJsonResult
Method · 0.36
assertCreateTfexampleFnResult
Method · 0.36