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

Method AddIdeograph

library/cpp/tokenizer/nlpparserbase.h:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 Y_ASSERT(NlpType == NLP_WORD || NlpType == NLP_MARK || NlpType == NLP_INTEGER);
74 }
75 void AddIdeograph(size_t len) {
76 Y_ASSERT(Subtokens.empty());
77 Subtokens.push_back(0, len, TOKEN_WORD);
78 NlpType = NLP_WORD;
79 }
80 void SwapSubtokens(TTokenStructure& other) {
81 Subtokens.swap(other);
82 }

Callers 3

ProcessSurrogatePairsMethod · 0.45
ProcessIdeographsMethod · 0.45
AddIdeographMethod · 0.45

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected