You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.dataset.text.to_str.rst 448 B

4 years ago
1234567891011
  1. .. py:method:: mindspore.dataset.text.to_str(array, encoding='utf8')
  2. 基于 `encoding` 字符集对每个元素进行解码,借此将 `bytes` 的NumPy数组转换为 `string` 的数组。
  3. **参数:**
  4. - **array** (numpy.ndarray) - 表示 `bytes` 类型的数组,代表字符串。
  5. - **encoding** (str) - 表示用于解码的字符集。
  6. **返回:**
  7. numpy.ndarray,表示 `str` 的NumPy数组。