Giter Site home page Giter Site logo

hermawanhermawan / word-frequency Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 946 KB

Use web scraping and NLP to find the most frequent words in one of two pieces of classic literature: Herman Melville's novel, Moby Dick, or Peter Pan by J. M. Barrie.

Jupyter Notebook 1.22% HTML 98.78%
natural-language-processing nltk-python web-scraping word-frequency

word-frequency's Introduction

PROJECT DESCRIPTION

In this Project, we will scrape a novel from the website Project Gutenberg (which contains a large corpus of books) using the Python package requests. Then we will extract words from this web data using BeautifulSoup. Finally, we will dive into analyzing the distribution of words using the Natural Language ToolKit (nltk).

The natural language processing tools used here apply to much of the data that data scientists encounter as a vast proportion of the world's data is unstructured data and includes a great deal of text. To complete this Project, we will demonstrate how to import web data into Python and how to work with natural language text.

PROJECT DETAIL

  1. Tools for text processing
  2. Request Moby Dick
  3. Get the text from the HTML
  4. Extract the words
  5. Make the words lowercase
  6. Load in stop words
  7. Remove stop words in Moby Dick
  8. We have the answer
  9. The most common word

word-frequency's People

Contributors

hermawanhermawan avatar

Watchers

 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.