MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / encode

Method encode

webarena/llms/tokenizers.py:22–23  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

20 raise NotImplementedError
21
22 def encode(self, text: str) -> list[int]:
23 return self.tokenizer.encode(text)
24
25 def decode(self, ids: list[int]) -> str:
26 return self.tokenizer.decode(ids)

Callers 7

generationMethod · 0.80
__call__Method · 0.80
generationFunction · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected