Machine Learning Section
- First, you have to make sure that Python3 has already installed in your computer. You can get Python3 by typing:
$ sudo apt-get update && sudo apt-get install -y build-essential git libjpeg-dev $ apt-get install python3 $ apt-get install python3-pip - Install dependencies by typing:
and (create virtualenv first):
$ bash setup.sh
$ pip install -r requirements.txt
- Move to folder
scripts. Renameconfig.py-exintoconfig.pyand fill every variables with the corresponding and correct values. - You can test the program by typing
python3 hoax_analyzer.py [filename]. For example:Please note that you have to have the ../dataset/idn-hoax/1.txt file beforehand$ python3 hoax_analyzer.py ../dataset/idn-hoax/1.txt
- First, you have to make sure that Java has already installed in your computer. For further information, you can visit http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html.
- Copy
resourcefolder contents toresource(if you want to execute the Python program) andlib/resource(if you want to execute in the lib folder). The folder contains resources to execute HoaxAnalyzer.jar. You can find the folder injava/HoaxAnalyzer/. - You can try to execute the jar file by typing
java -jar HoazAnalyzer.jar [type] [filename]in thelibfolder. For example:Please note that you have to have the ../dataset/idn-hoax/1.txt and ../dataset/idn-fact/1.txt files beforehand$ java -jar HoaxAnalyzer.jar preprocess ../dataset/idn-hoax/1.txt $ java -jar HoaxAnalyzer.jar extract ../dataset/idn-fact/1.txt