FastChat
FastChat copied to clipboard
`TypeError: not a string` after pressing to special characters use delete
今天(2023年6月29日)星期几为星期四。
USER: 而且4月6号是 星期四 # --> 是{ }星, here is not space, after pressing to special characters use delete, throws an error
│ py:316 in _EncodeAsPieces │
│ │
│ 313 │ │ return _sentencepiece.SentencePieceProcessor__EncodeAsIds(self, text, enable_sam │
│ 314 │ │
│ 315 │ def _EncodeAsPieces(self, text, enable_sampling, nbest_size, alpha, add_bos, add_eos │
│ ❱ 316 │ │ return _sentencepiece.SentencePieceProcessor__EncodeAsPieces(self, text, enable_ │
│ 317 │ │
│ 318 │ def _EncodeAsSerializedProto(self, text, enable_sampling, nbest_size, alpha, add_bos │
│ 319 │ │ return _sentencepiece.SentencePieceProcessor__EncodeAsSerializedProto(self, text │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: not a string
After pressing to special characters use delete, throws an error.