-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update CTC Hypothesis docs #2117
Conversation
fc16165
to
dd12a38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
nit: KenLMLexiconDecoder.__call__
's return type signature is torchaudio.prototype.ctc_decoder.ctc_decoder.Hypothesis
so you might want to overwrite it.
|
||
|
||
Hypothesis = namedtuple("Hypothesis", ["tokens", "words", "score"]) | ||
class Hypothesis(NamedTuple): | ||
r"""Represents hypothesis generated by CTC beam search decoder ``KenLMLexiconDecoder``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
r"""Represents hypothesis generated by CTC beam search decoder ``KenLMLexiconDecoder``. | |
r"""Represents hypothesis generated by CTC beam search decoder :py:func`KenLMLexiconDecoder`. |
0cb2273
to
6788ced
Compare
@carolineechen has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: add documentaion for CTC decoder `Hypothesis` and include it in docs Pull Request resolved: pytorch#2117 Reviewed By: mthrok Differential Revision: D33370381 Pulled By: carolineechen fbshipit-source-id: cf6501a499e5303cda0410f733f0fab4e1c39aff
add documentaion for CTC decoder
Hypothesis
and include it in docs