cywang97 / StreamingTransformer

Apache License 2.0
271 stars 42 forks source link

Missing import in streaming_transformer.py #10

Closed francampillo closed 3 years ago

francampillo commented 3 years ago

Hi! I'm currently trying to run the viterbi decoding with asr_recog.py, and when it gets to viterbi_decode in streaming_transformer.py it crashes because it doesn't find the viterbi_align function.

This seems to be solved by adding

from espnet.nets.viterbi_align import viterbi_align

at the beginning of the module.

Is this a right solution? If not, any idea why I'm getting this error?

To give a broader picture, I'm working with commit 19bcd9d9.

Thank you very much in advance!