machinalis / quepy

A python framework to transform natural language questions to queries in a database query language.
Other
1.25k stars 296 forks source link

Insufficient documentation #53

Open akanimax opened 6 years ago

akanimax commented 6 years ago

I am facing some issues in understanding the api usage since I couldn't find enough examples. Besides the existing examples are unfortunately not very clear. It would be a great help if successful users of this framework could provide links to their projects.

mounaTay commented 6 years ago

@akanimax were you able to start an app with quepy?? it keeps raising " File "/usr/local/bin/quepy", line 77 print "Error: folder '{}' already exists".format(folder)"

akanimax commented 6 years ago

@mounaTay yes I am able to start the quepy app. Could you please send the complete stack trace of the error you obtained, we will be better able to debug the error. From what I perceive, Your error is perhaps related to the setting up of the parser, tagger and the default corpus of nltk. Please go through the installation instructions (link here -> http://quepy.readthedocs.io/en/latest/installation.html#set-up-the-pos-tagger and try again.

mounaTay commented 6 years ago

thanks, the installation was not done effectively, however now when i'm starting an app, i'm missing the parsing.py and settings.py files from the directory's tree image image

akanimax commented 6 years ago

@mounaTay I think I had the same problem too (If I remember correctly, but it was quite similar to this). The way I solved it was by creating a virtualEnv local to my project and installed quepy on that virtualenv. Not sure why, but for some reason installing quepy in the global python env causes errors like these. Perhaps @rafacarrascosa would be better able to help here.

mounaTay commented 6 years ago

I've tried that but still not working for me

mounaTay commented 6 years ago

I had to copy an existing settings.py file to make it work

akanimax commented 6 years ago

@mounaTay well, that's a bit odd. But, I am glad that solved your problem. cheers!

brazierd commented 5 years ago

I had this problem too, I found that /usr/local/lib/python2.7/dist-packages/quepy-0.2-py2.7.egg/ was a zip archive not a directory. So I installed unzip (sudo apt install unzip) and then replaced the archive with its contents, if you see what I mean - then there was a directory /usr/local/lib/python2.7/dist-packages/quepy-0.2-py2.7.egg/ where the startapp expected to find the settings.py. Seemed to work but perhaps it would be safer to remove quepy entirely, install unzip and then reinstall quepy.