text: '''
  Created on Dec 8, 2021
  
  @author: vivi
  '''
  
  
  import argparse
  
  import sys
  sys.path.append("../voxseg/")
  
  from data import utils
  
      
  if __name__ == '__main__':
      parser = argparse.ArgumentParser()
  
      #parser.add_argument('-files_dir', default="/home/vivi/Data/Segmentation/humans/shipibo_lena.jaico", help="Path to the dataset")    
      parser.add_argument('-files_dir', default="/home/vivi/Data/Segmentation/birds/R3428_final/049", help="Path to the dataset")
  
      parser.add_argument('-name', default="049_split_binary", help="name of dataset/animal/experiment")
  
      parser.add_argument('-split', default = None, help="The (mat) file with the split into train, dev and test")
      
  #    parser.add_argument('-data_path', default="/home/vivi/Data/Segmentation/classification", help="top level for classification data. each animal will have its own subdir, with the necessary mat files")    
      parser.add_argument('-data_path', default="/home/vivi/Data/Segmentation/voxseg/", help="top level for classification data. each animal will have its own subdir, with the necessary mat files")
          
      parser.add_argument('-wav_ext', default="wav")
      parser.add_argument('-annot_ext', default="csv")
      parser.add_argument('-sep', default=",", help="field separator in the annotations file")
      
      args = parser.parse_args()
  
      args.files_dir = args.files_dir.rstrip("/")
      #name = args.files_dir.split("/")[-1]
      name = args.name
          
      #if "birds" in args.files_dir:  ##this is because this data is exported from flatclust, and has one annotations file for all recordings
      #    utils.make_voxseg_zf(args.files_dir, name, args.data_path, utils.get_annot_file(args.files_dir, args.annot_ext))
      #else:
      utils.make_voxseg(args.files_dir, name, args.data_path, args.split, args.wav_ext, args.annot_ext, args.sep)
          
  