[WIP] generate egs for age, emotion or TS task #2211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@pegahgh
I cleaned up my repository. Now the codes and scripts focus on your age, emotion or teacher-student task. Bear in mind, these codes make the egs in the same archive have distinct lengths and use "ranges in script-file lines" method. Please check the codes and see whether you have any other requirements.
In the comment of #2169 , you mentioned "The idea is that in future, specially the label can be even vector like posteriors (e.g. TS learning application)" for function "ProcessUttToLabelFile()".
According to my knowledge, the loss function of Teacher-Student Training is
loss = - sum_all_state {teacher_output(state, t) * log student_output(state, t)}
That means, for each frame, we need a posterior vector.
I think to supply this requirement, we simply modify the "ProcessUttToLabelFile()" is not feasible. Function "ProcessUttToLabelFile()" only uses utt_id to find the label so that we can use the label generates the one-hot vector later. However, to slove the problem, we need provide another file which contains the output of teacher system in matrix format or posterior format. If possible, please show me a file which you can provide and I will figure out a way to slove it.
Best,
Hang