Code Monkey home page Code Monkey logo

csci544-hw2's Introduction

To run perceplearn.py, do python3 perceplearn.py <trainfile> <modelfile> . In it I've implemented an averaged perceptron learning algorithm.

To run percepclassify.py, do cat <testfile> | python3 percepclassify.py <modelfile>. The output is written to the console, so please redirect this to a file if you desire.

My postagging and ner code both use perceplearn.py and percepclassify.py as modules in order to perform the underlying learning and classification.

1. Accuracy of part-of-speech tagger:

When testing on the POS development dataset, I obtained an accuracy of 96.2%

2. Named Entity Recognizer

Entity Type Precision Recall F-Score
LOC (Location) 0.757 0.611 0.676
MISC (Miscellaneous) 0.581 0.508 0.542
ORG (Organization) 0.712 0.714 0.713
PER (Person) 0.773 0.845 0.807
Overall F-Score: 0.716735

3. What happens if you use Naive Bayes classifier instead of perceptron classifier?

The performance suffers greatly across the board. This is explained by the Naive Bayes assumption. In this setting, the conditional independence assumption does not hold up whatsoever because the POS tags and NER tags of nearby words have a large effect on the POS tag and NER tag of any particular word.

csci544-hw2's People

Contributors

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