- Install
Anaconda
. - Install
python3.9
environment. - Install packages
pip install networkx pip install pandas pip install matplotlib conda install spacy pip install pytextrank
- Install the corpus
python -m spacy download en_core_web_sm
If you cannot see this screenshot clearly, please click on it or download it. graph.py is the code to implement the graph visualization. marvel.png is the screenshot of the graph visualization.
Statistical visualization and Text visualization
radar.py is the code to preprocess the data for the statistical visualization.
textrank.py is the code for extracting a keyword from a line.
test_textrank.py is the code for testing textrank algorithm. (i.e. main function)