Giter Club home page Giter Club logo

bestlm's Introduction

bestLM

Run SRILM with different options to find the best language model(LM) given the training and test data.

Directory Structure: src/ Scripts run/ Experiment Folder /demo Sample experiment

How to run?

  • Set SRILM path in run/Makefile
  • Copy your LM training file and name it as train.tok.gz
  • Copy your test file and name it as test.tok.gz (this file is used to calculate perplexity)
  • Edit the vocabulary threshold according to your needs
  • run cd run/demo && make ppl.out
  • To run on 10 CPU run cd run/demo && make ppl.out NCPU=10
  • Each line of ppl.out will corresponds to an LM and its perplexity ppl.out format: training-set test-set vocabulary-thr ngram discount option prob ppl ppl2 time
  • Each LM has its own folder in the experiment folder (i.e., run/demo/).
  • In order to run experiments on different datasets create a folder under run and copy the Makefile in demo to this new directory and perform the above steps

Supported SRILM options:

  • An experiment will run the following discountings: ndiscount wbdiscount ukndiscount kndiscount
  • All discountings will be run with/without interpolation
  • All experiments will run for 4 and 5 grams
  • If you want to edit these settings please edit the src/lm-args.pl

bestlm's People

Contributors

myatbaz avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

eternity668

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.