From cb1a04331b27cc19445de63cedcd4fd30b8a9016 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 13:40:12 +0200 Subject: Expose complete language prediction API and simplify CLI --- liblangdet/sentencepiece.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liblangdet/sentencepiece.c') diff --git a/liblangdet/sentencepiece.c b/liblangdet/sentencepiece.c index 6c30ba1..33efab8 100644 --- a/liblangdet/sentencepiece.c +++ b/liblangdet/sentencepiece.c @@ -856,7 +856,7 @@ int *tok_spm_encode_with_workspace(const tok_spm_t *tok, const char *text, int *out_n_tokens) { if (out_n_tokens) - *out_n_tokens = 0; + *out_n_tokens = -1; if (!tok || !ws || !text) return NULL; int n = 0; -- cgit v1.3.1