Giter VIP home page Giter VIP logo

linmt's Introduction

LiNMT

Neural Machine Translation system developed by Qiang Li

Email : [email protected]
Date : 10/30/2016
Time : 13:01

  1. Required

    a) gcc 4.9.3
    b) boost 1_55_0
    c) CUDA_8.0 or CUDA_7.5

  2. Install gcc-4.9.3

    first you should download gcc-4.9.3.tar.bz2, then

    # yum install libmpc-devel mpfr-devel gmp-devel
    $ tar xvfj gcc-4.9.3.tar.bz2
    $ cd gcc-4.9.3
    $ ./configure --disable-multilib --enable-languages=c,c++
    $ make -j 4
    # make install
    $ ln -s /usr/local/lib64/libstdc++.so.6.0.20 path/LiNMT // where you want to run LiNMT, you should link libstdc++.6.0.20

  3. Install boost_1_55_0

    first you should download boost_1_55_0.tar.gz, then

    $ rpm -qa boost // if show something, then use the second command, otherwise use the third command
    # yum remove boost // uninstall boost, then use 'rpm -qa boost', you will see nothing
    $ tar xzvf boost_1_55_0.tar.gz
    $ cd boost_1_55_0
    $ ./bootstrap.sh
    $ ./b2
    $ ./b2 install

  4. Install CUDA_8.0 or CUDA_7.5

    $ ./cuda_8.0.44_linux.run --tmpdir=. // all option is 'yes'
    $ sudo vi /etc/profile.d/cuda.sh // write enviroment variable
    # export PATH=$PATH:/usr/local/cuda/bin
    # export LD_LIBRARY_PATH=$PATH:/usr/local/cuda/lib64
    $ source /etc/profile.d/cuda.sh
    $ nvidia-smi // check

  5. Compile the LiNMT

    $ cd LiNMT/
    $ tar xzvf eigen.tar.gz
    $ make
    $ vim ~/.bashrc // add 'export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH'
    $ source ~/.bashrc

  6. Training a NMT model

    $ cd LiNMT/scripts/
    $ perl LiNMT.pl -config ../config/LiNMT-nmt-training.config

  7. Decoding a file with source sentences

    $ cd LiNMT/scripts/
    $ perl LiNMT.pl -config ../config/LiNMT-nmt-decoding.config

  8. Features

    8.1 Train neural machine translation system
    8.2 decoder sentences with NMT model
    8.3 Train bpe model
    8.4 Segment with bpe model
    8.5 library for python
    8.6 simple service interface

linmt's People

Contributors

liqiangnlp avatar

Stargazers

 avatar

Watchers

James Cloos 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.