GithubHelp home page GithubHelp logo

tokenisation-smoothing's Introduction

Tokenisation-Smoothing

Dataset

The dataset contains data from three subreddits. In all the tasks of this assignment, they have to be run through your code separately.

Report

Along with your code, you must submit a report which contains analysis, observations and answers to some questions in the assignment.

Tokenisation

The data contains some challenging aspects for tokenisation. Observe the data and include them in the report. Implement a tokeniser which can handle these problems. Mention your design choices and how your algorithm handles these problems.

Language Modeling

  1. Implement unigram, bigram and trigram language models.
  2. Plot log-log curve and zipf curve for the above
  3. Implement laplace smoothing. Compare the effect of smoothing on different values for V (200, 2000, current size of vocabulary, 10*size of vocabulary). Plot these to compare.
  4. Implement Witten-Bell backoff.
  5. Implement Kneser-Ney smoothing.
  6. Compare the effects of the three smoothing techniques. (Plot)
  7. In Kneser-Ney, what happens if we use the estimates from laplace and wittenbell in the absolute discounting step ?. (Plot & Compare)
  8. Using KN-estimates from the three sources, generate text with unigram, bigram and trigram probabilities.

Naive Bayes

  1. Plot the zipf's curves of all the three sources on one graph. Where do they match ? Where don't they match ?
  2. Formulate tokenisation as a supervised problem. Annotate a small section of each source. Use the language models you have implemented. Implement naive bayes algorithm for this problem.
  3. How does it perform ? .

tokenisation-smoothing's People

Contributors

fleetadmiral avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.