IR based question answering
- The first time
virtualenv irqa
source irqa/bin/activate
pip install cython
wget https://github.com/kivy/pyjnius/archive/master.zip
unzip master.zip
cd pyjnius-master
python setup.py install
cd ..
rm -rf pyjnius-master
- Later on
source irqa/bin/activate
- place documents.json and questions.json in {project_root}/data
- Lucene
# index
python pyluceneIndex.py
#query
python pyluceneQuery.py
- Whoosh(deprecated)
# index
python bindex.py [datapath] [indexpath]
# index:example
python bindex.py /home/jack/text /home/jack/indexdir
- luceneInterface.jar is compiled from the lucene python interface project