##Term Recognition Tool
-
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
-
tar -xvzf Python-3.4.3.tgz
-
chmod 777 -R Python-3.4.3
-
/home/ac1jgx/Python-3.4.3$ ./configure --prefix=/mnt/Python34 && make
-
sudo chmod 777 -R /mnt/Python34
-
sudo apt-get install libssl-dev libsqlite3-dev
-
sudo make install && chmod -v 755 /mnt/Python-3.4.3/libpython3.4m.a
-
sudo chmod 777 -R /mnt/Python34
-
sudo wget https://bootstrap.pypa.io/get-pip.py
-
/mnt$ sudo /mnt/Python34/bin/python3.4 get-pip.py
-
sudo apt-get install libblas-dev checkinstall
-
sudo apt-get install libblas-doc checkinstall
-
sudo apt-get install liblapacke-dev checkinstall
-
sudo apt-get install liblapack-doc checkinstall
-
apt-get install libatlas-base-dev
-
sudo apt-get update
sudo apt-get install gfortran
-
sudo /mnt/Python34/bin/pip3.4 install NLTK==3.0
-
sudo /mnt/Python34/bin/python3.4 -m nltk.downloader all
-
sudo /mnt/Python34/bin/pip3.4 install -U pandas
-
sudo /mnt/Python34/bin/pip3.4 install -U httplib2
-
sudo /mnt/Python34/bin/pip3.4 install -U chardet
-
sudo /mnt/Python34/bin/pip3.4 install -U beautifulsoup4
-
sudo /mnt/Python34/bin/pip3.4 install -U Flask
-
sudo apt-get install git
-
sudo git clone https://github.com/jerrygaoLondon/flask-mako.git
/mnt/flask-mako$ sudo /mnt/Python34/bin/python3.4 setup.py install
-
modify config/config
required:
- the local solr url('solr_core_url')
- path of 'pos_sequence_filter'
- path of 'stopwords'
optional:
- path of 'dictionary_file'
- ...
- modify log file path in config/logging.conf
- change log file path in 'args' of "handler_fileHandler"
- modify src/integration.py for integration task
- remote solr for retrieving source documents ('remote_solr_server')
- local/internal solr for term recognition computation and indexing ('local_solr_server')
- setup term recognition as scheduled task in linux
Solution:
- use crontab via "crontab -e"
- e.g., run batch processing every night:
29 0 * * * /mnt/SPEEAK-PC-TermRecognition/batch_processing_speeak-pc_attachments.sh
-
modify solr core url in /TATA-Steel-Web-Demo/web/js/tatasteel.js
-
deploy/copy 'TATA-Steel-Web-Demo' to tomcat server at dedicated port