| 215 | } |
| 216 | |
| 217 | void 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 | |
| 228 | void TBpeDictionary::Load(const TString& dictionaryPath, const TString& bpePath) { |
| 229 | TFileInput dictInput(dictionaryPath); |
nothing calls this directly
no test coverage detected