Python script for batch evaluation of Watson Q&A API. It reads in questions from questions.txt
(one per line) and sends them to Watson. It then passes Watson's answer to the function good_answer()
, where you can put your code to evaluate the answer.
Note this script only has placeholder code for evaluating the answer. You need to write that yourself for the CS4046 assessment.
- Python 2.7
- Python's Requests package (
pip install requests
)
pip install requests
- Make sure the URL points to your Watson instance
- Put your username/password for the Watson instance into the
username
/password
variables - Run script with
python huskyville.py
This script is licensed under MIT license