ying135 / firstnlp

Simple seq2seq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is my first nlp code, seq2seq code to translate

with attention with beam search

preprocess.py

data (dictionary) structrue

key value (also dictionary)
'train' trains
'valid' valids
'test' tsts
'dicts' dicts

trains valids tests structure

key value (path to file)
'srcindf' *.src.ind
'tgtindf' *.tgt.ind
'srcstrf' *.src.str
'tgtstrf' *.tgt.str
'length' count

About

Simple seq2seq


Languages

Language:Python 66.0%Language:Perl 34.0%