blissend / hqtrivia-automation

Automate finding better answers in HQ Trivia. This is for educational purposes only!
GNU General Public License v3.0
49 stars 15 forks source link

Vocabulary module does not have an option for timeout #2

Closed natefanaro closed 6 years ago

natefanaro commented 6 years ago

https://github.com/blissend/hqtrivia-automation/blob/master/hqtrivia-automation.py#L64

timeout is not implemented in tasdikrahman/vocabulary I noticed the issue you raised here https://github.com/tasdikrahman/vocabulary/issues/60 and am guessing there is a custom version of vocabulary floating around (but wasn't publicly forked)

For now removing timeout works, but the script is too slow without it.

blissend commented 6 years ago

Yes, I just ended up editing my local vocabulary for timeouts. Then I made it use nltk (local dictionary) first before using vocabulary (online dictionary). In the next update each lookup will be in its own process/thread rather than each answer to speed things up even more.

I will make sure to remove what you pointed out until vocabulary has this in officially. Should have it out by tomorrow.