this line code in the run_ner_crf.py file, how to solves it ? a simple method is like the following:
init_logger(log_file=args.output_dir + r'/{args.model_type}-{args.task_name}-{time_}.log')
but the file name will become "{args.model_type}-{args.taskname}-{time}.log"
I think I know the reason, "You are on windows that uses backslash as path separator . However for python this is escape char, so you need to use forward slash or raw string or escape the backslash. change these types of addresses:" in the OSError: [Errno 22]
but I tried selves times to solve this problem , I failed and took 3 hours , who can tell me how to solve it?
init_logger(log_file=args.output_dir + f'/{args.model_type}-{args.task_name}-{time_}.log')
this line code in the run_ner_crf.py file, how to solves it ? a simple method is like the following:
init_logger(log_file=args.output_dir + r'/{args.model_type}-{args.task_name}-{time_}.log')
but the file name will become "{args.model_type}-{args.taskname}-{time}.log"
I think I know the reason, "You are on windows that uses backslash as path separator . However for python this is escape char, so you need to use forward slash or raw string or escape the backslash. change these types of addresses:" in the OSError: [Errno 22]
but I tried selves times to solve this problem , I failed and took 3 hours , who can tell me how to solve it?