Closed pkufool closed 2 years ago
@csukuangfj I tried to generate training data from just one Nbest object, but it is too complicate, we need the init score (before second pass recoring) as one of the features, if with just one Nbest object (after rescoring) we should pass one more parameter, say, old_scores
.
So, I thought passing two Nbest objects to the function would be the simplest way.
To generate more training data(by swapping keys and queries), we have to do second pass rescoring two times, one for each Nbest object.
The training time for this special is probably going to be very small, so I wouldn't worry too much about it.
Functions to generate training features for special model for nbest score estimation.
Require https://github.com/k2-fsa/k2/pull/786