diff options
author | Taku Kudo <taku@google.com> | 2020-05-07 19:38:35 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2020-05-07 19:38:35 +0300 |
commit | 910d95d1acc7f33fa1311772481b98f215727474 (patch) | |
tree | c53baab2830f8535df318721b70876472dc81e07 /src | |
parent | 329383b455a5795f3d182159eb0985a3f20f0fa2 (diff) |
Fixed test error.
Diffstat (limited to 'src')
-rw-r--r-- | src/sentencepiece_processor.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sentencepiece_processor.h b/src/sentencepiece_processor.h index 4f59a50..61486b8 100644 --- a/src/sentencepiece_processor.h +++ b/src/sentencepiece_processor.h @@ -384,19 +384,19 @@ class SentencePieceProcessor { // They are used in Python interface. Returns serialized proto. // In python module, we can get access to the full Proto after // deserialzing the returned byte sequence. - virtual std::string EncodeAsSerializedProto(absl::string_view input) const; + virtual util::bytes EncodeAsSerializedProto(absl::string_view input) const; - virtual std::string SampleEncodeAsSerializedProto(absl::string_view input, + virtual util::bytes SampleEncodeAsSerializedProto(absl::string_view input, int nbest_size, float alpha) const; - virtual std::string NBestEncodeAsSerializedProto(absl::string_view input, + virtual util::bytes NBestEncodeAsSerializedProto(absl::string_view input, int nbest_size) const; - virtual std::string DecodePiecesAsSerializedProto( + virtual util::bytes DecodePiecesAsSerializedProto( const std::vector<std::string> &pieces) const; - virtual std::string DecodeIdsAsSerializedProto( + virtual util::bytes DecodeIdsAsSerializedProto( const std::vector<int> &ids) const; ////////////////////////////////////////////////////////////// |