XinyaoShen / KEDY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KEDY

Dependencies

  • CUDA > 11
  • Prepare requirements: pip3 install -r requirements.txt.

Training KEDY

1 Seq2Seq

  • python make_dataset.py -config config/demo/demo-prep.yml: convert raw corpus to dealable datasets.

  • python preprocess.py -config config/demo/demo-prep.yml: opennmt style preprocess.

  • python train.py -config config/demo/demo-train.yml

  • python translate.py -config config/demo/demo-transl.yml -model exp/demo/models/DEMO_step_0.pt

2 Graph

  • Use my_feature_extractor.py and ccig.py to build graph.
  • We can do train and inference with train.py.
  • For evaluation, Use multi-bleu.perl.

About


Languages

Language:Python 97.8%Language:Perl 2.2%