From 88c3cc02b66f636f7df267adf8538e272b90b3bc Mon Sep 17 00:00:00 2001 From: James Salsman Date: Sat, 4 May 2024 07:33:15 -1000 Subject: [PATCH] Update _pocketsphinx.pyx make the pocketsphinx.Decoder.set_alignment example print something legible --- cython/_pocketsphinx.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cython/_pocketsphinx.pyx b/cython/_pocketsphinx.pyx index 15ded6243..76bd4959a 100644 --- a/cython/_pocketsphinx.pyx +++ b/cython/_pocketsphinx.pyx @@ -1701,7 +1701,7 @@ cdef class Decoder: for word in decoder.get_alignment(): for phone in word: for state in phone: - print(word, phone, state) + print(word.name, phone.name, state.start) That's a lot of code, so it may get simplified, either here or in a derived class, before release.