Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 3afbc8a May 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
encdec Add example of input text May 16, 2019
LICENSE Modify README in encdec Apr 9, 2019

Positional Encoding to Control Output Sequence Length

This repository contains source files we used in our paper

Positional Encoding to Control Output Sequence Length

Sho Takase, Naoaki Okazaki

Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies


  • Python 3.6 or later for training
  • Python 2.7 for calculating rouge
  • PyTorch 0.4

Test data

Test data used in our paper for each length


A large portion of this repo is borrowed from the following repos: and

You can’t perform that action at this time.