mindspore/docs/api/api_python/dataset_text/mindspore.dataset.text.Unic...

13 lines
438 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.text.UnicodeCharTokenizer
===========================================
.. py:class:: mindspore.dataset.text.UnicodeCharTokenizer(with_offsets=False)
使用Unicode分词器将字符串分词为Unicode字符。
参数:
- **with_offsets** (bool, 可选) - 是否输出标记(token)的偏移量默认值False。
异常:
- **TypeError** - 参数 `with_offsets` 的类型不为bool。