docstr: Extracts the transcript from the database-reference text file
  
  Args:
  text_file (str) : Path to the database-reference text file
  
  Return:
  (str) The text transcript
docstr_tok: ["Extracts","the","transcript","from","the","database-reference","text","file","Args",":","text_file","(","str",")",":","Path","to","the","database-reference","text","file","Return",":","(","str",")","The","text","transcript"]
code: def read_text(text_file: str) -> str:
      """Extracts the transcript from the database-reference text file
  
      Args:
      text_file (str) : Path to the database-reference text file
  
      Return:
      (str) The text transcript
      """
      with open(text_file, encoding="ISO-8859-1") as f:
          first_line = f.readline()
      text_val = first_line.split("Text:")[1]
      text_val = text_val.strip("\n")
      text_val = text_val.replace(
          "{LG}", ""
      )  # Special code to avoid scoring seg-fault due to utterance n706Sqp20Mk_50005
      return text_val
  
file_path: espnet/egs2/lrs3/asr1/local/data_prep.py
imports: import argparse
  import logging
  import os
  from pathlib import Path
  from typing import List, Union
  import numpy
label_desc: Use image node_id 1 for calling the Utils obj's underlying member method code with example usage: obj.read_text(text_file) and returns: text_val