    def finish(self, state: LMState):
        """
        Evaluate eos for language model based on the current lm state

        Returns:
        --------
        (LMState, float): pair of (new state, score for the current word)
        """
        return self.score(state, self.dictionary.eos())
Evaluate eos for language model based on the current lm state

Returns:
--------
(LMState, float): pair of (new state, score for the current word)
examples/speech_recognition/w2l_decoder.py