MCPcopy Create free account
hub / github.com/catboost/catboost / OnToken

Method OnToken

library/cpp/tokenizer/split.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 void OnToken(const TWideToken& token, size_t, NLP_TYPE type) override {
15 if (!Params.HandledMask.SafeTest(type)) {
16 return;
17 }
18
19 Tokens->push_back(TUtf16String(token.Token, token.Leng));
20 }
21
22 private:
23 TVector<TUtf16String>* Tokens;

Callers 4

MakeMultitokenEntryMethod · 0.45
CutTooLongMultitokenMethod · 0.45
MakeEntryMethod · 0.45

Calls 2

SafeTestMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected