MCPcopy
hub / github.com/diffgram/diffgram / tokenize_words

Method tokenize_words

walrus/methods/text_data/text_tokenizer.py:45–48  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

43 return self.SENTENCE_TOKENIZER_FUNCTIONS.get(self.type)
44
45 def tokenize_words(self, text) -> list:
46 tokenize_words = self.get_word_tokenizer_function()
47 result = tokenize_words(text)
48 return result
49
50 def tokenize_sentences(self, text) -> list:
51 tokenize_senteces = self.get_sentence_tokenizer_function()

Callers 2

test_tokenize_wordsMethod · 0.95
save_text_tokensMethod · 0.95

Calls 1

Tested by 1

test_tokenize_wordsMethod · 0.76