Fix a typo in api.md

This commit is contained in:
Xunkai 2024-02-12 18:57:30 +08:00 committed by GitHub
parent 03243af616
commit ffd8e9efb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ Calls `SentencePieceProcessor::Decode` method to detokenize a sequence of pieces
```C++
std::vector<std::string> pieces = { "▁This", "▁is", "▁a", "▁", "te", "st", "." }; // sequence of pieces
std::string text
std::string text;
processor.Decode(pieces, &text);
std::cout << text << std::endl;