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

關於demo.py, test.py執行之詢問 #33

Closed
Xenorock opened this issue May 31, 2018 · 1 comment
Closed

關於demo.py, test.py執行之詢問 #33

Xenorock opened this issue May 31, 2018 · 1 comment

Comments

@Xenorock
Copy link

您好 感謝提供這個資源讓我們可以使用
如同題目 我在運行demo.py時遇到了問題(下附錯誤敘述)
我參照了其他使用者所提問過的
得知word2vec的model需要進行訓練
於是參考了您的另一篇文章成功訓練完成
測試demo.py (word2vec的 非本chatbot之demo.py) 也運行無誤
然而我將該model代回chatbot時
將demo.py, demo_chatbot.py 等等需要撰寫model路徑的檔案都改變後
卻仍舊出現錯誤訊息
希望po主能幫我解答 感激不盡

https://images.plurk.com/3eU8qiGvmUsxseftD1eQ.jpg

@zake7749
Copy link
Owner

zake7749 commented Jun 1, 2018

您好,這是詞向量本身造成的錯誤,

您在圖中執行的檔案看起來是 test.py,而非Chatbot/demo.py。test.py 與 word2vec-tutorial 中的 demo.py 除了載入路徑外,其他程式碼是完全相同的,理論上不會發生不一致的行為。請先檢查看看,您放在 test.py 中的詞向量 model.bin,是否跟 word2vec-tutorial/demo.py 中使用的詞向量是同一個檔案。

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