Fix tiny typo (#20841)

* Fix typo

* Update README.md

* Update run_mlm_flax_stream.py

* Update README.md
This commit is contained in:
fzyzcjy
2022-12-20 16:17:59 +08:00
committed by GitHub
parent 7ef3f19c3c
commit ae3cbbcaf6
4 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ class BeamSearchTester:
self.do_early_stopping = do_early_stopping
self.num_beam_hyps_to_keep = num_beam_hyps_to_keep
# cannot be randomely generated
# cannot be randomly generated
self.eos_token_id = vocab_size + 1
def prepare_beam_scorer(self, **kwargs):
@@ -283,7 +283,7 @@ class ConstrainedBeamSearchTester:
constraints = [PhrasalConstraint(force_tokens), DisjunctiveConstraint(disjunctive_tokens)]
self.constraints = constraints
# cannot be randomely generated
# cannot be randomly generated
self.eos_token_id = vocab_size + 1
def prepare_constrained_beam_scorer(self, **kwargs):