MCPcopy Create free account
hub / github.com/FLC777/GLAT / encode

Method encode

fairseq/hub_utils.py:294–295  ·  view source on GitHub ↗
(self, sentence: str)

Source from the content-addressed store, hash-verified

292 assert self.tokenizer is not None
293
294 def encode(self, sentence: str) -> str:
295 return self.tokenizer.encode(sentence)
296
297 def decode(self, sentence: str) -> str:
298 return self.tokenizer.decode(sentence)

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected