Skip to content
Snippets Groups Projects
Commit f713e76a authored by Benoit Favre's avatar Benoit Favre
Browse files

t push -u origin master

parents
No related branches found
No related tags found
No related merge requests found
###### Firoj Alam ######
###### SIS Lab, University of Trento, Trento, Italy ######
###### Mood Prediction system from articles and comments ######
###### Mood type include Amused, Disappointed, Indignant, Satisfied and Worried ######
Update: 18 March, 2016.
Pre-requisite:
Java 7
## Run classifier to annotate comment and/or article
java -classpath Sensei.jar com.sensei.socialmedia.ml.classifier.text.AnnotatorPipeline -i json_list_all.txt -c config_mood.txt -m b -d ./data/json
java -classpath Sensei.jar com.sensei.socialmedia.ml.classifier.text.AnnotatorPipeline -i sample/26317629333331569012339992531.json -c config_mood.txt -d ./data/json
Input: There are two options as follows,
- A single json file with .json extension
- A file containing a list of json files with full path. Please see the json_list_all.txt file.
Output:
json file in a chosen directory
## Classifiers' performance
Please see the predicted system's results in results/Mood_prediction_18March2016_V0.2.pdf
QUICKSTART GUIDE
SENSEI Conversational Repository
1. INSTALLATION
The server needs to run Mongo DB and Apache Tomcat. (If Mongo DB is
running on a different machine, you will need to edit the
configuration file unpacked from the repository.war file.)
Find the repository.war file and deploy it as an Apache Tomcat
servlet.
EITHER
copy it to Tomcat's "webapps" directory and restart or start the
Tomcat server
OR
Use Tomcat's browser interface to deploy the repository.war file.
2. TESTING
The repository URL will be as follows:
http://<host>:<port>/repository
where the Tomcat server is running on port <port> on machine <host>.
You can use "localhost" for <host> from the machine on which Tomcat is
running, or if you use ssh tunnelling to connect a port on your
machine to the Tomcat port on a remote machine.
Test that the service is running with the following GET URLs (from a
web browser or curl):
http://<host>:<port>/repository?_wadl
(to return the WADL document)
http://<host>:<port>/repository/documents
(to get a list of all documents in the service)
Further details are given in the repository manual (PDF).
QUICKSTART INSTALLATION GUIDE
SENSEI Web User Interface
The user interface is written in PHP and JavaScript and uses the
Bootstrap and jQuery libraries, which are included in the zip files.
This system requires PHP 5.3.3 or newer on the server, and must be
able to connect to the SENSEI conversational repository.
Unzip the archive file into a directory accessible to the PHP server.
Edit the config.json file so that the value of "repository" is the URL
of the SENSEI repository to be used, typically
"http://<host>:<port>/repository".
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment