code: def __init__(
      self,
      lm_score_file,
      lm_dict=None,
      prefix_len=None,
      bpe_symbol=None,
      target_prefix_frac=None,
  ):
      (
          lm_sentences,
          lm_sen_scores,
          lm_sen_pos_scores,
          lm_no_bpe_sentences,
          lm_bpe_tokens,
      ) = parse_lm(
          lm_score_file,
          prefix_len=prefix_len,
          bpe_symbol=bpe_symbol,
          target_prefix_frac=target_prefix_frac,
      )
  
      self.sentences = lm_sentences
      self.score = lm_sen_scores
      self.pos_score = lm_sen_pos_scores
      self.lm_dict = lm_dict
      self.no_bpe_sentences = lm_no_bpe_sentences
      self.bpe_tokens = lm_bpe_tokens
  
imports: import math
  import os
  import re
  import subprocess
  from contextlib import redirect_stdout
  from fairseq import options
  from fairseq_cli import eval_lm, preprocess
label_desc: Use image node_id 1 to create a new LMOutput object from inherited base classes: object with example: obj = LMOutput(lm_score_file, lm_dict, prefix_len, bpe_symbol, target_prefix_frac)