MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / encode

Method encode

lm_inference.py:93–94  ·  view source on GitHub ↗
(self, inputs_str: str)

Source from the content-addressed store, hash-verified

91 return [self.decode([tok]) for tok in tokens]
92
93 def encode(self, inputs_str: str) -> list[int]:
94 return self.vocab.encode(inputs_str)
95
96 def encode_list(self, inputs_strs: list[str]) -> list[int]:
97 result = [self.vocab.encode(x) for x in inputs_strs]

Callers 2

encode_listMethod · 0.80
beam_decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected