File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.18)
22project (
33 libtokenizers
44 LANGUAGES C CXX
5- VERSION 0.0.1
5+ VERSION 0.0.2
66)
77
88# Options
Original file line number Diff line number Diff line change 1+ ## 0.0.2
2+ + Fixed compile error due to naming in ` tokenizer::from_file ` method.
3+
14## 0.0.1
25+ First pre-release.
Original file line number Diff line number Diff line change @@ -137,11 +137,11 @@ namespace huggingface::tokenizers {
137137 static tokenizer from_file (const std::filesystem::path& path) {
138138 if (!std::filesystem::exists (path))
139139 throw std::runtime_error (" Failed to create tokenizer because tokenizer file could not be found" );
140- hft_tokenizer* tokenizer = nullptr ;
141- hft_status status = hft_tokenizer_create_from_file (path.string ().c_str (), &tokenizer );
140+ hft_tokenizer* tok = nullptr ;
141+ hft_status status = hft_tokenizer_create_from_file (path.string ().c_str (), &tok );
142142 if (status != HFT_OK)
143143 throw std::runtime_error (" Failed to create tokenizer from file" );
144- return tokenizer (tokenizer );
144+ return tokenizer (tok );
145145 }
146146
147147 private:
You can’t perform that action at this time.
0 commit comments