docstr: ReadFile is responsible to read and process all input files in the Case Recommender
  
  We used as default csv files with delimiter '   '. e.g: user item    score
  
  
  :param input_file: Input File with at least 2 columns.
  :type input_file: str
  
  :param sep: Delimiter for input files
  :type sep: str, default '       '
  
  :param header: Skip header line (only work with method: read_with_pandas)
  :type header: int, default None
  
  :param names: Name of columns (only work with method: read_with_pandas)
  :type names: str, default None
  
  :param as_binary: If True, the explicit feedback will be transform to binary
  :type as_binary: bool, default False
  
  :param binary_col: Index of columns to read as binary (only work with method: read_with_pandas)
  :type binary_col: int, default 2
docstr_tok: ["ReadFile","is","responsible","to","read","and","process","all","input","files","in","the","Case","Recommender","We","used","as","default","csv","files","with","delimiter","'","'",".","e.g",":","user","item","score",":","param","input_file",":","Input","File","with","at","least","2","columns",".",":","type","input_file",":","str",":","param","sep",":","Delimiter","for","input","files",":","type","sep",":","str",",","default","'","'",":","param","header",":","Skip","header","line","(","only","work","with","method",":","read_with_pandas",")",":","type","header",":","int",",","default","None",":","param","names",":","Name","of","columns","(","only","work","with","method",":","read_with_pandas",")",":","type","names",":","str",",","default","None",":","param","as_binary",":","If","True",",","the","explicit","feedback","will","be","transform","to","binary",":","type","as_binary",":","bool",",","default","False",":","param","binary_col",":","Index","of","columns","to","read","as","binary","(","only","work","with","method",":","read_with_pandas",")",":","type","binary_col",":","int",",","default","2"]
code: def __init__(
      self,
      input_file,
      sep="\t",
      header=None,
      names=None,
      as_binary=False,
      binary_col=2,
  ):
      """
      ReadFile is responsible to read and process all input files in the Case Recommender
  
      We used as default csv files with delimiter '\t'. e.g: user item    score\n
  
      :param input_file: Input File with at least 2 columns.
      :type input_file: str
  
      :param sep: Delimiter for input files
      :type sep: str, default '\t'
  
      :param header: Skip header line (only work with method: read_with_pandas)
      :type header: int, default None
  
      :param names: Name of columns (only work with method: read_with_pandas)
      :type names: str, default None
  
      :param as_binary: If True, the explicit feedback will be transform to binary
      :type as_binary: bool, default False
  
      :param binary_col: Index of columns to read as binary (only work with method: read_with_pandas)
      :type binary_col: int, default 2
  
      """
  
      self.input_file = input_file
      self.sep = sep
      self.header = header
      self.names = names
      self.as_binary = as_binary
      self.binary_col = binary_col
  
      check_error_file(self.input_file)
  
file_path: CaseRecommender/caserec/utils/process_data.py
imports: import pandas
  from caserec.utils.extra_functions import check_error_file
label_desc: Use image node_id 1 to create a new ReadFile object from inherited base classes: object with example: obj = ReadFile(input_file, sep, header, names, as_binary, binary_col)