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

Method Apply

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

Source from the content-addressed store, hash-verified

11 }
12
13 void TDictionaryProxy::Apply(TConstArrayRef<TStringBuf> tokens, TText* text) const {
14 TVector<ui32> tokenIds;
15 DictionaryImpl->Apply(tokens, &tokenIds);
16 *text = TText{std::move(tokenIds)};
17 }
18
19 ui32 TDictionaryProxy::Size() const {
20 return DictionaryImpl->Size();

Callers 5

AddTextMethod · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
CreateTextDataForTestMethod · 0.45
CalcFeaturesFunction · 0.45

Calls 3

TTokenIdClass · 0.85
moveFunction · 0.50
ApplyClass · 0.50

Tested by

no test coverage detected