Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
endyul committed Feb 27, 2017
1 parent 4296e6b commit a94bed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segmentor/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ void Preprocessor::set_flags(std::vector<int>& flags, const size_t& from,
void Preprocessor::special_token(const std::string& sentence,
std::vector<int>& flags) const {

size_t pos = 0;
for (size_t i = 0; i < ltp::segmentor::special_tokens_size; ++i){
size_t pos = 0;
const std::string& special_token = ltp::segmentor::special_tokens[i];
while((pos = sentence.find(special_token, pos)) != std::string::npos){
size_t pos_end = pos + special_token.length();
Expand Down

0 comments on commit a94bed7

Please sign in to comment.