GithubHelp home page GithubHelp logo

wbengine / trf Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 4.0 5.81 MB

The source code of trans-dimensional random field language models

License: Apache License 2.0

Python 3.42% Makefile 0.48% C++ 95.78% Forth 0.32%

trf's Introduction

Trans-dimensional random field language model

Here includes the source code of Trans-dimensional random field language model (TRFLM), and the scripts of experiment on several dataset, such PTB corpus.

Use make all to complie the code and the executables are generated in bin/

The package is organized as follows:

  • src/ includes the C++ source code
  • exp/ includes the scripts and data of the language modeling experiments
    • exp/Word/ is a word morphology expeirment, a pilot expeirment to modeling English words (character sequences)
    • exp/PTB/ is the LM experments on Penn Treebank (PTB) dataset.
    • exp/Word/data/ and exp/PTB/data/ contain all the training, valid and test data for LM training.
      • *.lext is the vocabulary for ngram LMs;
      • *.list is the vocabulary used by TRFLMs. The only difference between *.lext and *.list is that *.list removes the begin and end symbols '<s>' and' </s>'. 'c10' or 'c200' in the file name denote the class number is 10 or 200.
      • *.no is the dataset corresponding to the vocabulary *.lext, used by ngram LMs
      • *.id is the dataset corresponding to the vocabulary *.list, used by TRFLMs
    • exp/Word/ngram/ and exp/PTB/ngram/ contain the python scripts for ngram LMs
    • exp/Word/trf/ and exp/PTB/trf/ contain the python scripts for TRFLM training

For a detial introduction of TRFLM, see

Wang, Bin, Zhijian Ou, and Zhiqiang Tan. "Trans-dimensional random fields for language modeling." ACL,2015.

For more speech recognition experiments, see https://arxiv.org/abs/1603.09170

trf's People

Contributors

wbengine avatar

Stargazers

Ramsey avatar 黄培松 avatar Yike Zhang avatar Kan Deng avatar JiangyuXzy avatar Bruno Cabral avatar

Watchers

James Cloos avatar JiangyuXzy avatar  avatar paper2code - bot 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.