MCPcopy
hub / github.com/explosion/spaCy / to_bytes

Method to_bytes

spacy/tests/serialize/test_resource_warning.py:37–38  ·  view source on GitHub ↗
(self, exclude=tuple(), disable=None, **kwargs)

Source from the content-addressed store, hash-verified

35 super(SerializableDummy, self).__init__()
36
37 def to_bytes(self, exclude=tuple(), disable=None, **kwargs):
38 return srsly.msgpack_dumps({"dummy": srsly.json_dumps(None)})
39
40 def from_bytes(self, bytes_data, exclude):
41 return self

Callers 15

test_ko_tokenizer_pickleFunction · 0.45
test_ja_tokenizer_pickleFunction · 0.45
test_th_tokenizer_pickleFunction · 0.45
zh_tokenizer_serializeFunction · 0.45
test_vi_tokenizer_pickleFunction · 0.45
test_issue2179Function · 0.45
test_issue3209Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected