From ffd8e9efb8c8ed18d72e62b0b7c6830fcca4b517 Mon Sep 17 00:00:00 2001 From: Xunkai Date: Mon, 12 Feb 2024 18:57:30 +0800 Subject: [PATCH] Fix a typo in api.md --- doc/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;