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

Method Add

library/cpp/text_processing/dictionary/bpe_builder.cpp:74–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void TBpeDictionaryBuilder::Add(TConstArrayRef<TStringBuf> tokens, ui64 weight) {
75 AddImpl(tokens, weight, SkipUnknown, *Alphabet, &TokenIdsLists, &PairStats, &Counts);
76}
77
78void TBpeDictionaryBuilder::Add(TConstArrayRef<TString> tokens, ui64 weight) {
79 AddImpl(tokens, weight, SkipUnknown, *Alphabet, &TokenIdsLists, &PairStats, &Counts);

Callers 5

BuildDictionaryMethod · 0.45
BuildBpeWordFunction · 0.45
BuildBpeLetterFunction · 0.45
Y_UNIT_TESTFunction · 0.45
CalcModelFunction · 0.45

Calls 1

AddImplFunction · 0.85

Tested by

no test coverage detected