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

Method Load

library/cpp/text_processing/dictionary/bpe_dictionary.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void TBpeDictionary::Load(IInputStream* stream) {
218 TString line;
219 while (stream->ReadLine(line)) {
220 TBpeUnit unit;
221 TString _;
222 StringSplitter(line).Split('\t').Limit(4).CollectInto(&unit.Left, &unit.Right, &unit.Count, &_);
223 BpeUnits.push_back(unit);
224 }
225 InitBpeTokens();
226}
227
228void TBpeDictionary::Load(const TString& dictionaryPath, const TString& bpePath) {
229 TFileInput dictInput(dictionaryPath);

Callers

nothing calls this directly

Calls 13

StringSplitterFunction · 0.85
memcmpFunction · 0.85
MakeArrayRefFunction · 0.85
LoadOrFailMethod · 0.80
SkipPaddingFunction · 0.70
ReadLittleEndianFunction · 0.70
LoadFunction · 0.50
ReadLineMethod · 0.45
LimitMethod · 0.45
SplitMethod · 0.45
push_backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected