diff --git a/doc/api.md b/doc/api.md index ebde880..27b78c5 100644 --- a/doc/api.md +++ b/doc/api.md @@ -45,7 +45,7 @@ Calls `SentencePieceProcessor::Decode` method to detokenize a sequence of pieces ```C++ std::vector pieces = { "▁This", "▁is", "▁a", "▁", "te", "st", "." }; // sequence of pieces -std::string text +std::string text; processor.Decode(pieces, &text); std::cout << text << std::endl;