Traceback (most recent call last):


 "/opt/conda/bin/fairseq-generate", line 33, in <module>

sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-generate')())


 "/workspace/fairseq/fairseq_cli/generate.py", line 281, in cli_main

main(args)


 "/workspace/fairseq/fairseq_cli/generate.py", line 38, in main

return _main(args, sys.stdout)


 "/workspace/fairseq/fairseq_cli/generate.py", line 272, in _main

'Generate {} with beam={}: {}'.format(args.gen_subset, args.beam, scorer.result_string()),


 "/workspace/fairseq/fairseq/scoring/bleu.py", line 63, in result_string

return self.sacrebleu.corpus_bleu(self.sys, [self.ref]).format()
AttributeError: 'BLEU' object has no attribute 'format'

Traceback (most recent call last):


 "wordstree.py", line 906, in <module>

app()


 "wordstree.py", line 903, in app

RecursiveDescentApp(grammar, sent).mainloop()


 "wordstree.py", line 120, in __init__

self._init_grammar(self._top)


 "wordstree.py", line 166, in _init_grammar

self._productions = list(self._parser.grammar().productions())
AttributeError: PCFG instance has no attribute 'productions'
