-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
38 lines (23 loc) · 1.25 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This is a slightly adapted version of the Personality Recognizer :
http://farm2.user.srcf.net/research/personality/recognizer
A few modifications has been made to the original code:
- Use Maven for building, runnning and deploying the application
- Include the dependencies in the source.
- Add an extra command line argument : -s
This option allows a directory input with 1 subject per file,
without standardizing the features over the whole corpus.
- Add an extra command line argument : -r
This option writes the output to JSON files instead of stdout.
- Fix a bug where not all models where used due to naming differences.
# To compile the application :
$ mvn clean compile
# To run the compiled application (1 text file per subject in a directory) :
$ mvn exec:java -Dexec.args="-i <INDIR> -s -t 1 -m 4"
# Output the anaysis to JSON files (1 per subject) :
$ mvn exec:java -Dexec.args="-i <INDIR> -r <OUTDIR> -s -t 1 -m 4"
# Package the application to a distributable JAR :
$ mvn package
# The resulting JAR is ./target/personality-recognizer-1.0-jar-with-dependencies.jar :
$ java -jar personality-recognizer-1.0-jar-with-dependencies.jar -i <INDIR> -s -t 1 -m 4
# Generate javadocs to ./target/apidocs/ :
$ mvn javadoc:jar