philosophy word counts

Top 20 Word Occurance in...
Note from the Author

These web pages are generated using the *index.py* file.

The link to the Python code in the repository is Here

The data source Here

This started as a project to find the mode of the words in Hegel's Phenomenology of Spirit.

I realized I could generalize it to the whole dataset. It got out of hand, but I retamed it.

My Python CsvFigs class uses this flow:

CSV --> Pandas DataFrame --> Plotly GraphObject --> text file

For the DataFrame, I use the collections module from the Python standard library to quickly get the counts for each word from the list of sentence strings.

Then, the imported NLTK module determines whether one of the top 20 occuring words is a noun or a verb to color the bar red in Plotly.

Top 20 Word Occurance in...