Confidence score for beam search (`sequence_score` from `scores`)
Hello!I’m trying to make use ofscoresto calculatesequence_scorefor beam search generation.Is it possible to perform this task?I managed to do this with softmax and max functions for each step, for greedy search.But I wonder if is it possible for beam search, where beam can be replaced during calculation (worst is replaced) and then scores can no longer be related to previous ones in given beam (?).So the question is, how can I recreatesequence_scorewithscores(andsequence) and is it even possible? How should I know which beam achieved the best result and its value is insequence_score?Thanks in advance for your help!