rgcottrell / pytorch-human-performance-gec

A PyTorch implementation of "Reaching Human-level Performance in Automatic Grammatical Error Correction: An Empirical Study"
Apache License 2.0
50 stars 19 forks source link

fairseq #6

Closed xiaoshengjun closed 4 years ago

xiaoshengjun commented 5 years ago

hi, which version 'fairseq' are you used, when I run genetate.py, for example: sh generate_lang8.sh, Traceback (most recent call last): File "./generate.py", line 238, in main(args) File "./generate.py", line 89, in main sampling=args.sampling, sampling_topk=args.sampling_topk, sampling_temperature=args.sampling_temperature, AttributeError: 'Namespace' object has no attribute 'sampling_temperature'.

Could you share the fairseq you used, case I only find the latest version in github, thank you very much.

tianfeichen commented 4 years ago

When we created the project we have to clone / modify a few files so they are included as git submodule.

There has been lots of change in fairseq. You should grab an older version of fairseq committed / tagged around Oct 4, 2018.