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>2018-02-28 07:14:52 +0300
committerTaku Kudo <taku@google.com>2018-02-28 07:14:52 +0300
commitc6a1a196651789ba4c0334dbf41d5885b3334b2f (patch)
treea6e2b3a0e7a71b9d4d21e9f8800dc9b4b3cea94b /src/bpe_model.cc
parentab766cbdaac1332776ae2c457fed9380f500159b (diff)
Add Sample/NBestEncode
Diffstat (limited to 'src/bpe_model.cc')
-rw-r--r--src/bpe_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bpe_model.cc b/src/bpe_model.cc
index d226b0d..fdc5fd7 100644
--- a/src/bpe_model.cc
+++ b/src/bpe_model.cc
@@ -146,7 +146,7 @@ std::vector<std::pair<StringPiece, int>> Model::Encode(
MaybeAddNewSymbolPair(top->left, symbols[top->left].next);
}
- std::vector<std::pair<StringPiece, int>> output;
+ EncodeResult output;
for (int index = 0; index != -1; index = symbols[index].next) {
CHECK_GE(index, 0);
CHECK_LT(index, static_cast<int>(symbols.size()));