Giter VIP home page Giter VIP logo

nlp-tools's Introduction

nlp-tools

This project contains the C++ source code for a general-purpose part-of-speech (POS) tagger using the lookahead tagging algorithm described in [1].

This source is based on the reference implementation provided by the paper authors (http://www.logos.t.u-tokyo.ac.jp/~tsuruoka/lapos/), originally under MIT license.

Building

This project uses CMake. On GNU/Linux, use the following commands to compile:

% mkdir build
% cd build
% cmake ..  

Training

You can build a tagging model using your own annotated corpus. Use the tool_train command:

% ./tool_train -m model.dat -i tagged-training.txt 

Predicting

Once you have trained the model, you can use it with tool_predict to predict tags for other sentences.

% ./tool_predict -m modal.dat -i untagged-test.txt > tmp

Note that the input must be one-sentence-per-line, and the words need to be already tokenized with white spaces.

Evaluating

You can evaluate tagging accuracy by the tool_evaluate command.

% ./tool_evaluate tagged-test.txt tmp

References

  [1] Yoshimasa Tsuruoka, Yusuke Miyao and Jun'ichi Kazama;
  Learning with Lookahead: Can History-based Models Rival Globally Optimized Models?
  In Proceedings of the Fifteenth Conference on Computational Natural Language Learning (CoNLL), 
  pp. 238-246, 2011.

License

Except where explicitly indicated otherwise, all source codes of this project are provide under Apache License 2.0.

nlp-tools's People

Contributors

brunexgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nlp-tools's Issues

Missing header files

The package is missing 2 header files i.e. : #include "Feature.hh" and #include "StringBag.hh" and hence the project can not build on Windows

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.