Skip to content

Commit

Permalink
modified description
Browse files Browse the repository at this point in the history
  • Loading branch information
onadegibert committed Sep 20, 2023
1 parent 546135f commit 0b86280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/transforms/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _parse_opts(self):
self.word_ratio_threshold = self.opts.word_ratio_threshold

def apply(self, example, **kwargs):
"""Return None if too long else return as is."""
"""Return None if the word length ratio is smaller than the threshold."""
src_len = len(example['src'].split())
tgt_len = len(example['tgt'].split())
lengths = sorted([src_len, tgt_len])
Expand Down

0 comments on commit 0b86280

Please sign in to comment.