Skip to content

Commit

Permalink
Fix the comment of allow_partial in rnnt_decode (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool committed Nov 3, 2022
1 parent c3a7404 commit 28fa76c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions k2/csrc/rnnt_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ class RnntDecodingStreams {
ever received).
It MUST satisfy `num_frames.size() == num_streams_`, and
`num_frames[i] <= srcs_[i].prev_frames.size()`.
@param [in] allow_partial If true, we will treat all the states on the
last frame to be final state. If false, we only
@param [in] allow_partial If true and there is no final state active,
we will treat all the states on the last frame
to be final state. If false, we only
care about the real final state in the decoding
graph on the last frame when generating lattice.
@param [out] ofsa The output lattice will write to here, its num_axes
Expand Down
5 changes: 3 additions & 2 deletions k2/python/k2/rnnt_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def format_output(
stream (note: the frames we have ever received for the corresponding
stream). It MUST satisfy `len(num_frames) == self.num_streams`.
allow_partial:
If true, we will treat all the states on the last frame to be final
state. If false, we only care about the real final state in the
If true and there is no final state active, we will treat all the
states on the last frame to be final state.
If false, we only care about the real final state in the
decoding graph on the last frame when generating lattice.
Default False.
Expand Down

0 comments on commit 28fa76c

Please sign in to comment.