| 构造器和说明 |
|---|
QwenTokenizer() |
public List<Integer> encodeOrdinary(String text)
encodeOrdinary 在接口中 Tokenizertext - The input.public List<Integer> encode(String text, String allowedSpecial) throws NoSpecialTokenExists, UnSupportedSpecialTokenMode
encode 在接口中 Tokenizertext - The input to be encode.allowedSpecial - The special token options can be "all"|"none"|"none_raise", if
none_raise, then an error is raised if any special token is encountered in text, if null,
use "all"NoSpecialTokenExists - No special token in the input.UnSupportedSpecialTokenMode - the allowedSpecial is not["all"|"none"|"none_raise"]Copyright © 2024. All rights reserved.