diff options
author | Taku Kudo <taku@google.com> | 2019-04-13 19:21:50 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2019-04-13 19:21:50 +0300 |
commit | ffa2c8218f7afbb06d0c1bb87c82efb6867db41a (patch) | |
tree | 669c0437181994aab0d179bc9c3ab451f513f5e0 /python/sentencepiece_wrap.cxx | |
parent | 53e511657f34ff5812c4e70365780b3343f8c7a1 (diff) |
fixed bug of is_unknown in Python module
Diffstat (limited to 'python/sentencepiece_wrap.cxx')
-rw-r--r-- | python/sentencepiece_wrap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sentencepiece_wrap.cxx b/python/sentencepiece_wrap.cxx index 422ecef..e33a71a 100644 --- a/python/sentencepiece_wrap.cxx +++ b/python/sentencepiece_wrap.cxx @@ -3632,7 +3632,7 @@ SWIGINTERN float sentencepiece_SentencePieceProcessor_get_score(sentencepiece::S return self->GetScore(id); } SWIGINTERN bool sentencepiece_SentencePieceProcessor_is_unknown(sentencepiece::SentencePieceProcessor const *self,int id){ - return self->IsUnused(id); + return self->IsUnknown(id); } SWIGINTERN bool sentencepiece_SentencePieceProcessor_is_control(sentencepiece::SentencePieceProcessor const *self,int id){ return self->IsControl(id); |