资源算法sockeye-toy-models

sockeye-toy-models

2020-04-02 | |  34 |   0 |   0

sockeye-toy-models

This repo provides sample code that eventually trains a toy Sockeye model. It downloads and installs all software and data, preprocesses data and trains a model. After that, there is a script that demonstrates how evaluation typically works.

This will train a toy model that does not output meaningful translations. All commands assume training and translation should run on CPU, rather than GPU. If you have a multicore machine, consider increasing num_threads in the scripts.

Requirements

  • This only works on a Unix-like system, with bash.

  • Python 3 must be installed on your system, i.e. the command python3 must be available

  • Make sure virtualenv is installed on your system. To install, e.g.

    pip install virtualenv

Steps

Clone this repository in the desired place:

git clone https://github.com/bricksdont/sockeye-toy-models
cd sockeye-toy-models

Create a new virtualenv that uses Python 3. Please make sure to run this command outside of any virtual Python environment:

./scripts/make_virtualenv.sh

Important: Then activate the env by executing the source command that is output by the shell script above.

Download and install required software:

./scripts/download_install_packages.sh

Download and split data:

./scripts/download_split_data.sh

Preprocess data:

./scripts/preprocess.sh

Then finally train a model:

./scripts/train.sh

The training process can be interrupted at any time. Interrupted trainings can usually be continued from the point where they left off.

Evaluate a trained model with

./scripts/evaluate.sh


上一篇: Copper-Sockeye-Inseason

下一篇:BTSPAS_Taku_sockeye

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • shih-styletransfer

    shih-styletransfer Code from Style Transfer ...