MCPcopy Create free account
hub / github.com/SooLab/CGFormer / max_len

Method max_len

bert/tokenization_utils_base.py:1049–1053  ·  view source on GitHub ↗

Kept here for backward compatibility. Now renamed to `model_max_length` to avoid ambiguity.

(self)

Source from the content-addressed store, hash-verified

1047
1048 @property
1049 def max_len(self) -> int:
1050 """ Kept here for backward compatibility.
1051 Now renamed to `model_max_length` to avoid ambiguity.
1052 """
1053 return self.model_max_length
1054
1055 @property
1056 def max_len_single_sentence(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected