Read novels without effort!
data/
: contains books and datasets
legacy/
: contains legacy code for named entity and character description
www/
: folder to contain the Augmented Novel
- Python 2.7
- NLTK
- numpy and scipy
- scikit-learn (only for weight.py)
- Open
main.py
and change variabletxt_file
to open the desired book. - Adjust
max_chars
to control the number of characters in the generated graph - Adjust parameter
smallest
ofdraw_graphviz
to scale the generated graph - Run
main.py
It will generate www/peopleA.html
the Augmented Novel with dialog segmentation and character detection.
It will also generate www/graph.gv
which you can open with GraphViz Neato to generate the interactions graph.
- Open
legacy/main.py
and change variablefiletoread
to open the desired book. - Run
legacy/main.py
It will print word associations with each detected character.
- Open
weight.py
and change the book file - Adjust
num_segments
and constants as desired - Run
weight.py
It will generate www/scores.html
which contains the highlighted text.