pretokenizers/bertpretokenizer/bertpretokenizer.go
Method BertPreTokenizer.PreTokenize
has 6 return statements (exceeds 4 allowed). Open
Open
func (b *BertPreTokenizer) PreTokenize(pts *pretokenizedstring.PreTokenizedString) error {
isWhitespacePattern := splitpattern.FromFunc(func(r rune) bool {
return unicode.In(r, unicode.White_Space)
})
isBertPunctuationPattern := splitpattern.FromFunc(func(r rune) bool {
TODO found Open
Open
//TODO: (from Rust) char::is_ascii_punctuation(&x) || ...
- Exclude checks