DreamAnalyzer
Natural Language Processing tool that automatically scores dream reports according to the Hall and Van de Castle’s scale. From each dream report, the tool extract nouns to identify people, animals, and fictional characters, and verbs to classify interactions in terms of friendly interactions or acts of aggression.
Install / Use
/learn @Alessandro727/DreamAnalyzerREADME
Before starting dream_analyzer.py execute the following commands inside the folder:
-
export CLASSPATH=~/stanford-postagger-full-2015-04-20/stanford-postagger.jar:~/stanford-ner-2015-04-20/stanford-ner.jar:~/stanford-parser-full-2015-04-20/stanford-parser.jar:~/stanford-parser-full-2015-04-20/stanford-parser-3.5.2-models.jar
-
export STANFORD_MODELS=~/stanford-postagger-full-2015-04-20/models:~/stanford-ner-2015-04-20/classifiers
-
insert dreams to be analyzed within the file 'dreams_to_analyze.txt' with format: id_dream dream_report (one dream for line)
-
run dream_analyzer.py
