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

Method ProcessIdeographs

library/cpp/tokenizer/nlpparser.cpp:430–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void TNlpParser::ProcessIdeographs(const wchar16* ts, const wchar16* te) {
431 for (const wchar16* p = ts; p != te; ++p) {
432 Base.AddIdeograph(1);
433 Y_ASSERT(Base.GetTokenCount() == 1);
434 MakeMultitokenEntry(Base.GetToken(0), p);
435 Base.ResetTokens();
436 }
437}
438
439void TNlpParser::Execute(const wchar16* text, size_t len, const wchar16** textStart) {
440 if (!len)

Callers

nothing calls this directly

Calls 4

GetTokenCountMethod · 0.80
ResetTokensMethod · 0.80
AddIdeographMethod · 0.45
GetTokenMethod · 0.45

Tested by

no test coverage detected