AI Project
Priyanka Harlalka {priyah@iitk.ac.in}
Puneet Singh      {puneets@iitk.ac.in}
IIT Kanpur

---------------------------------------------------------
Using stanford ner and not nltk.

Integrating TreeTagger
Install treetagger stuffs from http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/
Add cmd and bin path in path variable in '~/.profile' file
To use python module of treetagger(https://github.com/miotto/treetagger-python)-
Download treetagger.py
Install nltk (http://www.nltk.org/install.html)
Add environmental variable- sudo gedit etc/environment
							add in end of file "export TREETAGGER_HOME='/home/priyanka/Desktop/mysafestpath/treetagger/cmd'"
							execute "source /etc/environment" in every shell where you want the variables to be updated
Finally able to run mytree.py
Don't forget to execute "source /etc/environment" in every new terminal

Used convex hull code from http://www.ics.uci.edu/~eppstein/161/python/diameter.py
----------------------------------------------------------

How to run??????

In stanford-ner-2012-11-11 folder, run ner server by
java -mx1000m -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz -port 1234 -outputFormat inlineXML

In spatio-analysis folder, run
python lsa.py
for latent semantic analysis for classification of articles as crime or non-crime
and then run,
python mecheck.py article_path
for updating new article's crime in crime record using spatio-analysis

In temporal_analysis folder, run
source("ARIMA(2,0,1)ANN(2,x,1).R") in R prompt
for determining future crime probabilities at all locations given upto now number of crimes at all locations at different times in temporal_analysis folder as 1.csv, 2.csv,..,163.csv and providing prior probabilities in spatio_analysis/crimerecords.csv file.
Make sure you have R>=3.0.3 version.

In user folder, run
python user.py 
for finding safest path.

Make sure you have internet access in terminal as spatio-analysis is using google-api for determining lattitude and longitude of each toponyms.



