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

Method GetTopTokens

catboost/private/libs/text_processing/dictionary.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 TVector<TTokenId> TDictionaryProxy::GetTopTokens(ui32 topSize) const {
38 topSize = Min(topSize, DictionaryImpl->Size());
39 return xrange(topSize);
40 }
41
42 void TDictionaryProxy::Save(IOutputStream* stream) const {
43 WriteMagic(DictionaryMagic.data(), MagicSize, Alignment, stream);

Callers 3

CalcMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 3

xrangeFunction · 0.85
MinFunction · 0.50
SizeMethod · 0.45

Tested by

no test coverage detected