Skip to content
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

Multilevel text field #1216

Merged
merged 18 commits into from
Jan 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't output src_lengths in AudioDataset.make_examples since they're …
…no longer necessary
  • Loading branch information
flauted committed Jan 22, 2019
commit 3957afb611898f0e998f683aa25f9903ffe5e827
3 changes: 1 addition & 2 deletions onmt/inputters/audio_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def make_examples(
window_stride, window, normalize_audio
)

yield {side: spect, side + '_path': line.strip(),
side + '_lengths': spect.size(1), 'indices': i}
yield {side: spect, side + '_path': line.strip(), 'indices': i}


class AudioSeqField(Field):
Expand Down