diff --git a/tutorials/training/source_en/use/load_dataset_text.md b/tutorials/training/source_en/use/load_dataset_text.md index bfa9705b00ea910d73e0a3799a64194c0f872539..d6388d4be50fb966b6f38df4634dfb40dcdf525d 100644 --- a/tutorials/training/source_en/use/load_dataset_text.md +++ b/tutorials/training/source_en/use/load_dataset_text.md @@ -23,6 +23,8 @@ In addition, MindSpore supports data loading in distributed scenarios. Users can This tutorial briefly demonstrates how to load and process text data using MindSpore. +> Some of the operators in this tutorial are not supported in Windows. Please try to use under the recommended system. + ## Preparations 1. Prepare the following text data. @@ -99,6 +101,8 @@ The following tutorial demonstrates how to construct a pipeline and perform oper 2. Perform `RegexReplace` on the dataset. + > Not supported under Windows. + ```python replace_op1 = text.RegexReplace("Beijing", "Shanghai") replace_op2 = text.RegexReplace("北京", "上海") @@ -122,6 +126,8 @@ The following tutorial demonstrates how to use the `WhitespaceTokenizer` to toke 1. Create a `tokenizer`. + > Not supported under Windows. + ```python tokenizer = text.WhitespaceTokenizer() ``` diff --git a/tutorials/training/source_zh_cn/use/load_dataset_text.md b/tutorials/training/source_zh_cn/use/load_dataset_text.md index f293dedca34fa0108e9d5136accc3bd8a4d181be..f5bd584f9986f50601327ca1dc69afa90a272681 100644 --- a/tutorials/training/source_zh_cn/use/load_dataset_text.md +++ b/tutorials/training/source_zh_cn/use/load_dataset_text.md @@ -25,6 +25,8 @@ MindSpore提供的`mindspore.dataset`模块可以帮助用户构建数据集对 下面,本教程将简要演示如何使用MindSpore加载和处理文本数据。 +> 本教程部分算子不支持Windows系统,请在推荐系统下尝试使用。 + ## 准备 1. 准备文本数据如下。 @@ -103,6 +105,8 @@ MindSpore目前支持的数据处理算子及其详细使用方法,可参考 2. 对数据集进行文本替换。 + > 不支持Windows系统。 + ```python replace_op1 = text.RegexReplace("Beijing", "Shanghai") replace_op2 = text.RegexReplace("北京", "上海") @@ -128,6 +132,8 @@ MindSpore目前支持的数据分词算子及其详细使用方法,可参考 1. 创建`tokenizer`。 + > 不支持Windows系统。 + ```python tokenizer = text.WhitespaceTokenizer() ```