Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.51 KB

README.md

File metadata and controls

62 lines (45 loc) · 1.51 KB

nlpbox

A Vagrant environment providing a variety of NLP toolkits, including:

This project is inspired by (Madnani, 2009), particularly the swig-srilm project to provide Python bindings to the SRILM C code.

Requirements

Installation

To install ansible:

sudo pip install ansible --upgrade

Then, inside the repository, run:

vagrant up

Usage

You can log into the machine using:

vagrant ssh

and use the installed packages in that environment. Try importing the package in iPython:

$ ipython

In [1]: import srilm

In [2]: srilm.<tab>
srilm.corpusStats      srilm.getCorpusPpl     srilm.getSentencePpl   srilm.getUnigramProb   srilm.howManyNgrams    srilm.readLM
srilm.deleteLM         srilm.getCorpusProb    srilm.getSentenceProb  srilm.getWordForIndex  srilm.initLM
srilm.getBigramProb    srilm.getIndexForWord  srilm.getTrigramProb   srilm.getWordProb      srilm.numOOVs