e06fe8e8c6
Secret Leaks / trufflehog (push) Failing after 1s
Build documentation / build (push) Failing after 1s
Build documentation / build_other_lang (push) Failing after 0s
CodeQL Security Analysis / CodeQL Analysis (push) Failing after 0s
PR CI / pr-ci (push) Failing after 1s
Slow tests on important models (on Push - A10) / Get all modified files (push) Failing after 1s
Slow tests on important models (on Push - A10) / Model CI (push) Has been skipped
Self-hosted runner (benchmark) / Benchmark (aws-g5-4xlarge-cache) (push) Has been cancelled
New model PR merged notification / Notify new model (push) Has been cancelled
Update Transformers metadata / build_and_package (push) Has been cancelled
1.4 KiB
1.4 KiB
Tokenizers的工具
并保留格式:此页面列出了tokenizers使用的所有实用函数,主要是类
[~tokenization_utils_base.PreTrained TokenizerBase] 实现了常用方法之间的
[PreTrained Tokenizer] 和 [PreTrained TokenizerFast] 以及混合类
[~tokenization_utils_base.SpecialTokens Mixin]。
其中大多数只有在您研究库中tokenizers的代码时才有用。
PreTrainedTokenizerBase
autodoc tokenization_utils_base.PreTrainedTokenizerBase - call - all
Enums和namedtuples(命名元组)
autodoc tokenization_utils_base.TruncationStrategy
autodoc tokenization_utils_base.CharSpan
autodoc tokenization_utils_base.TokenSpan