Coder Social home page Coder Social logo

nlp_project2's Introduction

NLP Project 2

Instructions

  1. Unzip the package.
  2. This zip package includes 2 Python files(preprocessing.py and NB.py), a report, a README, a file of toy data(corpus provided in the instruction pdf), and a file of real data.
  3. Launch terminal.
  4. The toy data file includes a directory of training and test, and each includes a directory of comedy and action files. The toy data file also includes parameter.txt and output.txt.
  5. Before running the code, you can store those two files somewhere else.
  6. Navigate to the directory by using "cd".
  7. If you run the code at this time, it will train on the toy data and output the result for the small corpus in PDF.
  8. In NB.py, to run the code on real data, please comment out lines 163 - 169 and uncomment out lines 171 - 177.
  9. Run the code by typing "python3 NB.py" in the terminal.

nlp_project2's People

Contributors

shthf avatar

Watchers

Kostas Georgiou 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.