Skip to content

Commit

Permalink
Update _pocketsphinx.pyx
Browse files Browse the repository at this point in the history
make the pocketsphinx.Decoder.set_alignment example print something legible
  • Loading branch information
jsalsman authored May 4, 2024
1 parent 7be89aa commit 88c3cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cython/_pocketsphinx.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 88c3cc0

Please sign in to comment.