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

Class TruncationStrategy

bert/tokenization_utils_base.py:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86class TruncationStrategy(ExplicitEnum):
87 ONLY_FIRST = "only_first"
88 ONLY_SECOND = "only_second"
89 LONGEST_FIRST = "longest_first"
90 DO_NOT_TRUNCATE = "do_not_truncate"
91
92
93class PaddingStrategy(ExplicitEnum):

Callers 2

truncate_sequencesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected