thu-coai / cotk

Conversational Toolkit. An Open-Source Toolkit for Fast Development and Fair Evaluation of Text Generation
Apache License 2.0
128 stars 27 forks source link

[Maintenance] Remove magic number in bleu.py #407

Open hzhwcmhf opened 4 years ago

hzhwcmhf commented 4 years ago

if self.sample >= 1000 and self.cpu_count > 1:

1000 should replaced by a class variable.