MCPcopy Create free account
hub / github.com/THUDM/GLM / Train

Method Train

data_utils/tokenization.py:511–513  ·  view source on GitHub ↗

train a tokenizer on a data corpus and save model for future use

(self, corpus)

Source from the content-addressed store, hash-verified

509 raise NotImplementedError('TextTokenizer exists method not implemented')
510
511 def Train(self, corpus):
512 """train a tokenizer on a data corpus and save model for future use"""
513 raise NotImplementedError('TextTokenizer Train not implemented')
514
515 def EncodeAsIds(self, text, process_fn=None):
516 """

Callers 1

TrainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected