Posterior-Knowledge-Selection icon indicating copy to clipboard operation
Posterior-Knowledge-Selection copied to clipboard

Error(not bug)

Open Bobby-xb opened this issue 2 years ago • 2 comments

How can I get vocab.json? Thanks for your reply:)

Bobby-xb avatar Apr 02 '22 04:04 Bobby-xb

Sorry for my stupidity... I should run train.py first, and then demo.py

Bobby-xb avatar Apr 02 '22 11:04 Bobby-xb

when I run demo.py, an error occured: answer += vocab.itos[idx] + " " TypeError: can only concatenate tuple (not "str") to tuple

How can I solve this problem plz? Besides, if I print the context of vocab.itos, it's confusing.(Why?) I have run install.sh, download_glove.sh, train.py before. Looking forward to your reply

Bobby-xb avatar Apr 03 '22 04:04 Bobby-xb