MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __getattr__

Method __getattr__

bert/tokenization_utils_base.py:183–187  ·  view source on GitHub ↗
(self, item: str)

Source from the content-addressed store, hash-verified

181 )
182
183 def __getattr__(self, item: str):
184 try:
185 return self.data[item]
186 except KeyError:
187 raise AttributeError
188
189 def __getstate__(self):
190 return {"data": self.data, "encodings": self._encodings}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected