class_docstr: Hypothesis data type.
docstr: Convert data to JSON-friendly dict.
docstr_tok: ["Convert","data","to","JSON-friendly","dict","."]
code: def asdict(self) -> dict:
      """Convert data to JSON-friendly dict."""
      return self._replace(
          yseq=self.yseq.tolist(),
          score=float(self.score),
          scores={k: float(v) for k, v in self.scores.items()},
      )._asdict()
  
imports: import logging
  from itertools import chain
  from typing import Any, Dict, List, NamedTuple, Tuple, Union
  import torch
  from espnet.nets.e2e_asr_common import end_detect
  from espnet.nets.scorer_interface import PartialScorerInterface, ScorerInterface
label_desc: Use image node_id 1 for calling the Hypothesis obj's underlying member method code with example usage: obj.asdict() and returns: self