Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

無法執行 #47

Closed
kelvinng2017 opened this issue Jul 10, 2019 · 10 comments
Closed

無法執行 #47

kelvinng2017 opened this issue Jul 10, 2019 · 10 comments

Comments

@kelvinng2017
Copy link

大神你我因功課需要,需要製作聊天機器人
image
但是我無法執行這個專案

@zake7749
Copy link
Owner

請確認是否有正確安裝 scipy

@kelvinng2017
Copy link
Author

kelvinng2017 commented Jul 11, 2019 via email

@zake7749
Copy link
Owner

都可以,我比較建議使用 conda 安裝。

@kelvinng2017
Copy link
Author

kelvinng2017 commented Jul 11, 2019 via email

@kelvinng2017
Copy link
Author

image
大神QA模式這樣正常嗎,我執行ddemo_qa.py
還有一定要有w2v_model才能執行chatbot.py嗎

@kelvinng2017
Copy link
Author

image
大神不好意思又來煩你,請問上圖的的json檔案VOTE,content是什麼意思
demo_qa.py是以什麼方式進行執行,例如我輸入"笑話",讓後機器人就回复我"廢到笑不出來"

@zake7749
Copy link
Owner

從第一張圖來看,demo_qa 的運作是正常的。
QA 模組的設計是基於搜索,
它會比對使用者輸入跟語料庫中所有的文章標題,
找出最相似的文章後,再 sample 其他 users 對該文章的推文作為回覆。

還有一定要有w2v_model才能執行chatbot.py嗎

預設是如此。關於 w2v_model 的用途,可參考 #31
如果您沒有這些需求的話,可以用 demo_qa 的方式執行這個專案。

第二張圖的 User / Vote 和本專案沒有直接關係,具體細節請參見 PTT-Crawler

@kelvinng2017
Copy link
Author

kelvinng2017 commented Jul 16, 2019 via email

@kelvinng2017
Copy link
Author

image
大神請問請問上圖的JSON格式能應用在QA模式嗎

@zake7749
Copy link
Owner

不行,要先按實驗簡述進行前處理。

不過,如果您打算自己實作匹配算法,只是想取得處理後的問答對做為語料的話,可以直接用 Gossiping-Chinese-Corpus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants