Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaku Kudo <taku@google.com>2019-04-13 19:21:50 +0300
committerTaku Kudo <taku@google.com>2019-04-13 19:21:50 +0300
commitffa2c8218f7afbb06d0c1bb87c82efb6867db41a (patch)
tree669c0437181994aab0d179bc9c3ab451f513f5e0 /python/sentencepiece_wrap.cxx
parent53e511657f34ff5812c4e70365780b3343f8c7a1 (diff)
fixed bug of is_unknown in Python module
Diffstat (limited to 'python/sentencepiece_wrap.cxx')
-rw-r--r--python/sentencepiece_wrap.cxx2
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);