You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this new script recently and my program crashed at line 134(as referenced above), the error log says num_sources is not an int.
In python 3, though both len(row) and dim are ints, and len(row) is divisible by dim, the type of the result is still "float", which caused that error.
The text was updated successfully, but these errors were encountered:
I think if you put c = a // b it should work. Can you also change the shebang (first line) to python3, remove the from __future__ statements (no longer needed), re-test, and if it works, make a PR?
kaldi/egs/wsj/s5/steps/segmentation/internal/merge_targets.py
Line 114 in abd4869
kaldi/egs/wsj/s5/steps/segmentation/internal/merge_targets.py
Line 134 in abd4869
I tried this new script recently and my program crashed at line 134(as referenced above), the error log says
![divi](https://user-images.githubusercontent.com/11681498/54169766-0aa40e00-44af-11e9-95a4-2c7e6f71b29a.png)
num_sources
is not an int.In python 3, though both
len(row)
anddim
are ints, and len(row) is divisible by dim, the type of the result is still "float", which caused that error.The text was updated successfully, but these errors were encountered: