MCPcopy
hub / github.com/Tele-AI/Telechat / _is_printable

Method _is_printable

models/7B/generation_utils.py:145–149  ·  view source on GitHub ↗

Checks whether tokens can be decoded or not

(cp)

Source from the content-addressed store, hash-verified

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

Callers 1

putMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected