File tree 1 file changed +0
-4
lines changed
include/pytorch/tokenizers
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -111,17 +111,13 @@ static Result<std::unique_ptr<IRegex>> build_special_token_regex(
111
111
std::string special_pattern;
112
112
const std::size_t count = special_token_map.size ();
113
113
114
- std::cout << " iterating" << std::endl;
115
114
for (std::size_t i = 0 ; i < count; ++i) {
116
- std::cout << " i: " << i << " /" << count << std::endl;
117
115
const auto & [token, _] = special_token_map.getElement (i);
118
- std::cout << " token: " << token << std::endl;
119
116
if (!special_pattern.empty ()) {
120
117
special_pattern += " |" ;
121
118
}
122
119
special_pattern += re2::RE2::QuoteMeta (std::string (token));
123
120
}
124
- std::cout << " special pattern: " << special_pattern << std::endl;
125
121
126
122
if (special_pattern.empty ()) {
127
123
return static_cast <std::unique_ptr<IRegex>>(nullptr );
You can’t perform that action at this time.
0 commit comments