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

Method Save

library/cpp/text_processing/dictionary/bpe_dictionary.cpp:211–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void TBpeDictionary::Save(IOutputStream* stream) const {
212 for (const auto& unit : BpeUnits) {
213 *stream << unit.Left << '\t' << unit.Right << '\t' << unit.Count << '\t' << GetBpeToken(unit.Left, unit.Right) << '\n';
214 }
215}
216
217void TBpeDictionary::Load(IInputStream* stream) {
218 TString line;

Callers 3

GetApplyToAllDictsFuncFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 6

AddPaddingFunction · 0.70
WriteLittleEndianFunction · 0.70
SaveFunction · 0.50
WriteMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected