(text, allow_special = false)
| 904 | }, |
| 905 | |
| 906 | encode(text, allow_special = false) { |
| 907 | const allowedSpecial = allow_special ? "all" : new Set(); |
| 908 | const disallowedSpecial = new Set(); |
| 909 | return tokenizer.encode(text, allowedSpecial, disallowedSpecial); |
| 910 | }, |
| 911 | |
| 912 | encodeRole(role) { |
| 913 | const tokens = []; |
no test coverage detected
searching dependent graphs…