MCPcopy Create free account
hub / github.com/Tele-AI/Telechat / _is_printable

Method _is_printable

models/12B/generation_utils.py:148–152  ·  view source on GitHub ↗

Checks whether tokens can be decoded or not

(cp)

Source from the content-addressed store, hash-verified

146
147 @staticmethod
148 def _is_printable(cp):
149 """Checks whether tokens can be decoded or not"""
150 if "�" in cp:
151 return False
152 return True
153
154 def __iter__(self):
155 return self

Callers 1

putMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected