diff options
author | Taku Kudo <taku@google.com> | 2018-02-28 07:14:52 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2018-02-28 07:14:52 +0300 |
commit | c6a1a196651789ba4c0334dbf41d5885b3334b2f (patch) | |
tree | a6e2b3a0e7a71b9d4d21e9f8800dc9b4b3cea94b /src/bpe_model.cc | |
parent | ab766cbdaac1332776ae2c457fed9380f500159b (diff) |
Add Sample/NBestEncode
Diffstat (limited to 'src/bpe_model.cc')
-rw-r--r-- | src/bpe_model.cc | 2 |
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())); |