PTT-Chat-Generator icon indicating copy to clipboard operation
PTT-Chat-Generator copied to clipboard

請問這個專案有規定什麼版本的python才能執行嗎

Open kelvinng2017 opened this issue 5 years ago • 4 comments

kelvinng2017 avatar Jul 18 '19 00:07 kelvinng2017

這個專案是基於 python3。

zake7749 avatar Jul 18 '19 11:07 zake7749

最後輸出0.json 1.json 2.json 以此類推 json裡面沒有title 的key 和值 請問是以什麼方法找到和使用者輸入相識的標題

Justin Yang [email protected] 於 2019年7月18日 週四 19:49 寫道:

這個專案是基於 python3。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zake7749/PTT-Chat-Generator/issues/4?email_source=notifications&email_token=AF6OEILR2WWTPOIUGDQUJ43QABKEJA5CNFSM4IEVWS7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2IHGCA#issuecomment-512783112, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6OEINMMOKPGVWALXQE5RLQABKEJANCNFSM4IEVWS7A .

kelvinng2017 avatar Jul 18 '19 11:07 kelvinng2017

image image 大神,上圖是你的chatbot/demo_qa.py的操作,下圖是你的PTT-Chat-Generator/chat.py的操作,為什麼兩邊的回复不一樣

kelvinng2017 avatar Jul 19 '19 06:07 kelvinng2017

json裡面沒有title 的key 和值 請問是以什麼方法找到和使用者輸入相識的標題

輸出的標題會放置於 SegTitles.txt,比對方式預設為 BM25。

為什麼兩邊的回复不一樣

threshold 的設置有關,如果在語料中找不到相似的標題,那會直接採用預設的回覆。

zake7749 avatar Jul 19 '19 10:07 zake7749