CharizardAcademy / convtransformer

Code for the ACL2020 paper Character-Level Translation with Self-Attention
32 stars 7 forks source link

Request the latest version of convtransformer #2

Open doublejingz opened 3 years ago

doublejingz commented 3 years ago

hello, could you please provide the latest code for test? I found that there are several changes in arguments, such as when I test interactive.py, it shows errors:

usage: interactive.py [-h] [--no-progress-bar] [--log-interval N] [--log-format {json,none,simple,tqdm}] [--tensorboard-logdir DIR] [--tbmf-wrapper] [--seed N] [--cpu] [--fp16] [--memory-efficient-fp16] [--fp16-init-scale FP16_INIT_SCALE] [--fp16-scale-window FP16_SCALE_WINDOW] [--fp16-scale-tolerance FP16_SCALE_TOLERANCE] [--min-loss-scale D] [--threshold-loss-scale THRESHOLD_LOSS_SCALE] [--user-dir USER_DIR] [--criterion {adaptive_loss,binary_cross_entropy,composite_loss,cross_entropy,label_smoothed_cross_entropy,masked_lm_loss}] [--optimizer {adadelta,adafactor,adagrad,adam,lamb,nag,sgd}] [--lr-scheduler {cosine,fixed,inverse_sqrt,polynomial_decay,reduce_lr_on_plateau,triangular}] [--task TASK] [--num-workers N] [--skip-invalid-size-inputs-valid-test] [--max-tokens N] [--max-sentences N] [--required-batch-size-multiple N] [--dataset-impl FORMAT] [--gen-subset SPLIT] [--num-shards N] [--shard-id ID] [--path FILE] [--remove-bpe [REMOVE_BPE]] [--quiet] [--model-overrides DICT] [--results-path RESDIR] [--beam N] [--nbest N] [--max-len-a N] [--max-len-b N] [--min-len N] [--match-source-len] [--no-early-stop] [--unnormalized] [--no-beamable-mm] [--lenpen LENPEN] [--unkpen UNKPEN] [--replace-unk [REPLACE_UNK]] [--sacrebleu] [--score-reference] [--prefix-size PS] [--no-repeat-ngram-size N] [--sampling] [--sampling-topk PS] [--temperature N] [--diverse-beam-groups N] [--diverse-beam-strength N] [--print-alignment] [--buffer-size N] [--input FILE] [--momentum M] [--weight-decay WD] [--force-anneal N] [--lr-shrink LS] [--warmup-updates N] [-s SRC] [-t TARGET] [--lazy-load] [--raw-text] [--left-pad-source BOOL] [--left-pad-target BOOL] [--max-source-positions N] [--max-target-positions N] [--upsample-primary UPSAMPLE_PRIMARY] data interactive.py: error: unrecognized arguments: -source_sentence -path_checkpoint checkpoints-conv-multi-fres-en/checkpoint30.pt -data_bin UN-bin/multilingual/fres-en/test-es/

CharizardAcademy commented 3 years ago

thank you, please try the latest interactive.py and let us know if it

credits to @sharad461