zhaoyingjun / chatbot

ChatGPT带火了聊天机器人,主流的趋势都调整到了GPT类模式,本项目也与时俱进,会在近期更新GPT类版本。基于本项目和自己的语料可以训练出自己想要的聊天机器人,用于智能客服、在线问答、闲聊等场景。
3.51k stars 1.02k forks source link

pytorch模型中,执行execute.py ,提示没有seq.data #148

Closed luckfu closed 1 year ago

luckfu commented 1 year ago

python ./execute.py Traceback (most recent call last): File "/Users//chatbot/Chatbot_pytorch/Seq2seqchatbot/./execute.py", line 81, in input_tensor,input_lang,target_tensor,target_lang= read_data(gConfig['seq_data'], gConfig['max_train_data_size']) File "/Users//chatbot/Chatbot_pytorch/Seq2seqchatbot/./execute.py", line 74, in read_data input_lang,target_lang,pairs=create_dataset(path,num_examples) File "/Users/chatbot/Chatbot_pytorch/Seq2seqchatbot/./execute.py", line 25, in create_dataset lines = io.open(path, encoding='UTF-8').read().strip().split('\n') FileNotFoundError: [Errno 2] No such file or directory: 'train_data/seq.data'

luckfu commented 1 year ago

知道问题了,配置里语料文件不正确的时候,data_util.py没有提示就退出了,所以预处理没有执行

ubbm commented 1 year ago

你好,怎么解决这个问题,是要换语料文件吗?