class_docstr: Scorer interface for beam search.
  
  The scorer performs scoring of the all tokens in vocabulary.
  
  Examples:
      * Search heuristics
          * :class:`espnet.nets.scorers.length_bonus.LengthBonus`
      * Decoder networks of the sequence-to-sequence models
          * :class:`espnet.nets.pytorch_backend.nets.transformer.decoder.Decoder`
          * :class:`espnet.nets.pytorch_backend.nets.rnn.decoders.Decoder`
      * Neural language models
          * :class:`espnet.nets.pytorch_backend.lm.transformer.TransformerLM`
          * :class:`espnet.nets.pytorch_backend.lm.default.DefaultRNNLM`
          * :class:`espnet.nets.pytorch_backend.lm.seq_rnn.SequentialRNNLM`
class_docstr_tok: ["Scorer","interface","for","beam","search",".","The","scorer","performs","scoring","of","the","all","tokens","in","vocabulary",".","Examples",":","*","Search","heuristics","*",":","class",":","`","espnet.nets.scorers.length_bonus.LengthBonus","`","*","Decoder","networks","of","the","sequence-to-sequence","models","*",":","class",":","`","espnet.nets.pytorch_backend.nets.transformer.decoder.Decoder","`","*",":","class",":","`","espnet.nets.pytorch_backend.nets.rnn.decoders.Decoder","`","*","Neural","language","models","*",":","class",":","`","espnet.nets.pytorch_backend.lm.transformer.TransformerLM","`","*",":","class",":","`","espnet.nets.pytorch_backend.lm.default.DefaultRNNLM","`","*",":","class",":","`","espnet.nets.pytorch_backend.lm.seq_rnn.SequentialRNNLM","`"]
docstr: Score eos (optional).
  
  Args:
      state: Scorer state for prefix tokens
  
  Returns:
      float: final score
docstr_tok: ["Score","eos","(","optional",")",".","Args",":","state",":","Scorer","state","for","prefix","tokens","Returns",":","float",":","final","score"]
code: def final_score(self, state: Any) -> float:
      """Score eos (optional).
  
      Args:
          state: Scorer state for prefix tokens
  
      Returns:
          float: final score
  
      """
      return 0.0
  
file_path: espnet/espnet/nets/scorer_interface.py
imports: import warnings
  from typing import Any, List, Tuple
  import torch
label_desc: Use image node_id 4 for calling the ScorerInterface obj's underlying member method code with example usage: obj.final_score(state) and returns: int