Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Latest commit

 

History

History
30 lines (26 loc) · 1.39 KB

readme.md

File metadata and controls

30 lines (26 loc) · 1.39 KB

Bytenet - A Pytorch Implementation

Introduction

This is a PyTorch version of Bytenet, a fully convolutional encoder-decoder network for machine translation. Notable features of this network include the stacked nature of the encoder and the decoder, the dilated (atrous) convolutions of exponentially expanding size in the encoder and decoder, and the masked (casual) convolutions in the decoder.

Requirements

Datasets

How to use

  • Install PyTorch. I suggest using Anaconda
  • Clone this repo
git clone https://github.com/dhpollack/bytenet.pytorch.git --recursive
  • Download and unzip datasets
  • Edit, config.json to point to the location of your datasets
  • Train full network
python train_bytenet_wmt.py
  • Predict training samples
  • Score predictions with sacrebleu