GithubHelp home page GithubHelp logo

whusym / textualanalysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 45.38 MB

Textual Analysis of Books by British Philosophers (and others ;p )

License: Apache License 2.0

Jupyter Notebook 98.12% R 0.21% Python 1.67%
natural-language-processing nlp textual-analysis data-mining

textualanalysis's Introduction

Textual Analysis of Modern British Philosophers


  • In this project, I analyze the works of modern British empiricists, including Thomas Hobbes, John Locke, George Berkeley, David Hume, Jeremy Bentham, John Stuart Mill and Henry Sidgwick.
  • How to use: run analysis.py. You can also open analysis.ipynb to see the details and results in Jupyter Notebook
  • Dependencies: nltk, sklearn, numpy, pandas, matplotlib, textblob (for sentiment analysis), gensim (for LDA modeling), Jupyter notebook (if users want to check the notebook)
  • Add text files into /authorCorpus folder and change AUTHOR_FILES variable to get keyword frequencies for each file.
    • Plotting results of keyword frequencies are in the /keywordResults folder
  • Add text files into /authorBooks folder and change BOOK_LIST to get classification results.
  • Files in the TEST_FILES list in the program are for testing the classification results. These files are also in the /authorBooks folder
  • The R file is for text scraping. I only provide an example for Sidgwick. Others' files are available too. Just change the URLs in the list.

textualanalysis's People

Contributors

whusym avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.