Git Product home page Git Product logo

stackedmstparser's Introduction

StackedMstParser

Fork of code from "Stacking Dependency Parsers", Martins et al., EMNLP 2008, as released as part of SEMAFOR 2.1. Please cite the paper (bib) if you use this software in your research.

I'm using this forked version in SEMAFOR > 3.0. SEMAFOR's accuracy is consistently better (by about 1 pt F1) when using StackedMstParser than when using MaltParser or 3rd-order TurboParser. I didn't write most of this code; I just made it faster, the models smaller, and the output CoNLL compliant. I'm not planning on providing much maintainence or support. Feel free to open tickets, but no promises.

Compiling

./scripts/compile.sh

Running as a socket server

./scripts/runServer.sh <model-file> [<port>]

A pretrained model (trained on the Wall Street Journal section of Penn Treebank) is available here.

<port> defaults to 12345

Parsing files by connecting to a running server

./scripts/runClient.sh <input-file> <output-file> [<server-hostname> [<port>]]

<server-hostname> defaults to localhost

<port> defaults to 12345

Training

I haven't tried to retrain the model. If you want to retrain the model, you're on your own, but this might work (probably not):

./scripts/trainTestEval.sh

stackedmstparser's People

Contributors

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