GithubHelp home page GithubHelp logo

texttiling's Introduction

  • Kevin Mu, Jonathan Miller, Stella Pantela, and Dianna Hu
  • CS187 - Computational Lingustics
  • Final Project (TextTiling) - Group Implementation
  • README

Setup Instructions


  1. If nltk is already installed, skip to step 5.

  2. Run "python ez_setup.py"

  3. Run (sudo) "easy_install pip"

  4. Run (sudo) "pip install -U nltk"

  5. Run "python", then type "import nltk"

  6. Type "nltk.download()". A new window should open, showing the nltk Downloader.

  7. Click the "corpora" tab.

  8. Select "Stopwords Corpus" (stopwords) and "WordNet" (wordnet), and click Download.

  9. Close the nltk downloader and exit python.


Running Instructions


  1. cd into the project directory

  2. Run: python texttiling.py a) The scores_outfile is the file where you want the results to be written

    e.g., python texttiling.py outfile.txt


Scraping Articles


  1. If you would like to scrape other articles using scraper.py, you can do that by first installing BeautifulSoup.
  2. Then change the 'seed' value in the main() function of scraper.py
  3. You can also adjust the number of articles you scrape (N).
  4. Run: python scraper.py
  5. Verify that the articles were correctly scraped and placed in the articles folder.

texttiling's People

Contributors

stylianipantela avatar m777z avatar

Watchers

kuonanhong 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.