MCPcopy Index your code
hub / github.com/diffgram/diffgram / get_text_tokens

Method get_text_tokens

shared/database/text_file.py:42–47  ·  view source on GitHub ↗
(self, tokenizer_type)

Source from the content-addressed store, hash-verified

40 time_updated = Column(DateTime, onupdate = datetime.datetime.utcnow)
41
42 def get_text_tokens(self, tokenizer_type):
43 from shared.data_tools_core import data_tools
44 data = data_tools.get_string_from_blob(self.tokens_url_signed_blob_path)
45 data_dict = json.loads(data)
46 result = data_dict[tokenizer_type]
47 return result
48
49 def get_text(self):
50 """

Callers 1

build_text_packetFunction · 0.80

Calls 1

get_string_from_blobMethod · 0.45

Tested by

no test coverage detected