Closed nelson-liu closed 7 years ago
I think I would actually prefer to standardize the other way, removing "max" entirely. For example, the keys that you used in the AS Reader are formatted like num_*
: https://github.com/allenai/deep_qa/blob/b000dc22924a15d0817062e6acc682851b718409/deep_qa/models/reading_comprehension/attention_sum_reader.py#L121-L124.
(Wanted to do this before it fell off my radar). This PR renames the canonical keys we use in the
max_length
dictionary (used to set the max lengths for padding) to match the class variables intext_trainer
.Fairly trivial PR, i just ran:
with a
git commit
after each.renaming
_get_word_sequence_lengths
to_get_max_sentence_lengths
was unintended, but I kind of like the new name --- thoughts? it should actually probably get a new name altogether since you can get both themax_sentence_length
and themax_word_length
from it...