5hirish / adam_qas

ADAM - A Question Answering System. Inspired from IBM Watson
http://www.shirishkadam.com/
GNU General Public License v3.0
357 stars 106 forks source link

running in Jupyter #51

Open Mandyrose opened 4 years ago

Mandyrose commented 4 years ago

Hi, I'm trying to run the code in Jupyter, I have everything installed. but when running:

import sys sys.path.insert(0, '/the/path/in/my/computer')

import qas from qas import adam import spacy from qas.constants import EN_MODEL_MD, EN_MODEL_DEFAULT, EN_MODEL_SM

adam.main("when was WW2?")

I get the error:

usage: ipykernel_launcher.py [-h] [--version] [-l XX] [-n Y] [--lite] [--model XXX_XX] [-v] [-vv] "QUESTION" ipykernel_launcher.py: error: unrecognized arguments: h e n w a s W W 2 ?

An exception has occurred, use %tb to see the full traceback.

SystemExit: 2