Giter Club home page Giter Club logo

nlp_pos_tagger's Introduction

A2: Perplexity is a measurement of how well a probability distribution or probability model predicts a sample In this case, bettermodels of the unknown distributions tend to have lower perplexities due to higher x(xi) in the equation b^(-1/N)sum(q(xi)). Thus the model with linear interpolation drastically outperforms the model without for unigrams and bigrams. However for trigrams, the model without interpolation outperforms the model with interpolation. The perplexities are as follows:
A2.uni.txt: 1104.83292814
A2.bi.txt: 57.2215464238
A2.tri.txt: 5.89521267642

A3:
A3.txt: 13.0759217039

A4:
In A2, the trigrams are more accurate than bigrams which are more accurate than unigrams as more information is present in trigrams leading to better tags. The perplexity of A2.tri is less than A3.txt because all the trigrams were found since the training data and the test were the same sentences. This means that the trigrams do a better job at tagging than linear interpolation because the linear interpolation takes in the weighted average of unigrams, bigrams, and trigrams.

A5: The perplexities run on Sample1_scored.txt and Sample2_scored.txt are as follows?
Sample1: The perplexity is 11.6492786046
Sample2: The perplexity is 1611241155.03
Since the perplexity for Sample1 is closer than Sample2, this means that Sample1 belongs in the data set

B5:
93.7008827776

B6:
96.9354729304

B5 and B6 are similar in tag accuracy but B6 performs slightly better than B5. This is because our HMM model only considers the trigrams whereas  B6 has backoffs to account for the ngrams not found in the testing data.

nlp_pos_tagger's People

Contributors

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