Git Product home page Git Product logo

partofspeechtagging's Introduction

#Part of Speech Tagging with Java

A rudimentary implementation of stochastic POS tagging using bigram probabilities obtained from the BNC-Baby Corpus. The CLAWS5 tagset is used.

##Overview Stochastic POS taggers take an arbitrary string of text and assign a tag to each word (in simple instances, 'adjective' or 'noun', this implementation uses the CLAWS5 tagset listed here.)

The tagger aims to assign the most likely tag sequence given the whole phrase. In other words, it attempts to calculate:

equation

This cannot be calculated directly from the corpus, so it is transformed via Bayes' Theorem into an equation that can:

equation

The denominator is constant across all potential tag sequences, so the algorithm only attempts to maximise the numerator.

For a given tag sequence, both terms can be estimated from an annotated corpus. This implementation uses the BNC Baby Corpus, a small subset of the full British National Corpus.

The first term is estimated as follows:

equation

i.e. the words are assumed to be independent of each other. The individual probabilities are estimated from the corpus as follows:

equation

Cw,t is the number of instances of word w tagged with tag t in the annotated corpus, and Ct is the total number of words tagged with tag t. Currently, no smoothing is done so 0 probabilities are possible. In the future, I will use +1 smoothing here.

Usage instructions to come.

partofspeechtagging's People

Contributors

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