David Lanz

Results 4 comments of David Lanz

請問我想使用自己的語料,不是小黃鴨的,請問原始的小黃鴨資料格式為何呢? 大感謝!

請問您 train_chatbot.py裡,word_index_dict與index_word_dict這兩個變量是怎麼產生的呢?

謝謝您,請問是在訓練集每句話 {問句+答句} 的全部的統計結果嗎? 比方說「鸡」,他的key是17,即: word_index_dict['鸡'] => 17,是重複了17次對嗎,不知道理解有沒有錯誤? for k,v in enumerate(word_index_dict, start=0): print(("k=%s, v=%s") % (k,v))

如我放置的源代碼: https://github.com/DavidLanz/ChatBot-PyTorch/blob/master/save_qa_corpus_to_pickle.py ,是以分"字"做的,不是分詞,還是您方便可以下載我的.py下去試試看,產生的word_index_dict以及index_word_dict兩個檔案,我嘗試dump之後的結果,和你的pickle幾乎是一樣的,只是我不能確認shape對或是不對。