MCPcopy
hub / github.com/huggingface/datasets / encode

Method encode

tests/test_fingerprint.py:88–89  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

86 from transformers import AutoTokenizer
87
88 def encode(x):
89 return tokenizer(x)
90
91 # TODO: add hash consistency tests across sessions
92 tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")

Callers 15

_dump_infoMethod · 0.45
_dump_licenseMethod · 0.45
_push_to_repoFunction · 0.45
_push_to_bucketFunction · 0.45
_arrow_arrayMethod · 0.45
delete_from_hubFunction · 0.45
_push_to_repoFunction · 0.45
_push_to_bucketFunction · 0.45
updateMethod · 0.45
hash_url_to_filenameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected