GithubHelp home page GithubHelp logo

lm-sdsl's Introduction

For the faster and lateset version (supporting Modified Kneser-Ney and its extensions) please see:

https://github.com/eehsan/cstlm

Welcome to LM-SDSL

This is our implementation used in the following paper:

@inproceedings{shareghicompact,
  author={Shareghi, Ehsan and Petri, Matthias and Haffari, Gholamreza and Cohn, Trevor},
  title={Compact, Efficient and Unlimited Capacity: Language Modeling with Compressed Suffix Trees},
  booktitle={Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, September 19-21, 2015, Lisbon, Portugal},
  year={2015},
}

Compile instructions

  1. Check out reprository
  2. git submodule init
  3. git submodule update
  4. cd build
  5. cmake ..

Usage

Create a collection:

./create-collection.x -i toyfile.txt -c ../collections/toy

Build index:

./build-index.x -c ../collections/toy/

Query index:

./query-index-knm.x -c ../collections/toy/ -p toyquery.txt -n 3

Single CST method

The default is the Dual CST. To call the faster and more space efficient version, Single CST method, pass -b:

./query-index-knm.x -c ../collections/toy/ -p toyquery.txt -n 3 -b

Running unit tests

rm -r ../collections/unittest/
./create-collection.x -i ../UnitTestData/data/training.data -c ../collections/unittest
./unit-test.x 

Note: This version requires the training and test data to be numberized.

lm-sdsl's People

Contributors

eehsan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dowobeha

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.