mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
Change Jieba::Locate to be static function.
This commit is contained in:
parent
7db3f87b5f
commit
5102b8a5c3
@ -50,7 +50,7 @@ class Jieba {
|
||||
void CutSmall(const string& sentence, vector<string>& words, size_t max_word_len) const {
|
||||
mp_seg_.Cut(sentence, words, max_word_len);
|
||||
}
|
||||
void Locate(const vector<string>& words, vector<LocWord>& loc_words) const {
|
||||
static void Locate(const vector<string>& words, vector<LocWord>& loc_words) {
|
||||
loc_words.resize(words.size());
|
||||
size_t begin = 0;
|
||||
for (size_t i = 0; i < words.size(); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user