From c10d86e00d74eaa3c768a11b5325593e7397bbf3 Mon Sep 17 00:00:00 2001 From: Xiao Tianci Date: Sat, 20 Feb 2021 11:16:16 +0800 Subject: [PATCH] change - to _ in docs of Ngram --- mindspore/dataset/text/transforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/dataset/text/transforms.py b/mindspore/dataset/text/transforms.py index e91207055b..3069532237 100644 --- a/mindspore/dataset/text/transforms.py +++ b/mindspore/dataset/text/transforms.py @@ -316,8 +316,8 @@ class Ngram(TextTensorOperation): `pad_width` will be capped at n-1. For example, specifying left_pad=("_", 2) would pad left side of the sequence with "__" (default=None). right_pad (tuple, optional): Padding performed on right side of the sequence shaped like - ("pad_token", pad_width). `pad_width` will be capped at n-1. For example, specifying right_pad=("-", 2) - would pad right side of the sequence with "--" (default=None). + ("pad_token", pad_width). `pad_width` will be capped at n-1. For example, specifying right_pad=("_", 2) + would pad right side of the sequence with "__" (default=None). separator (str, optional): Symbol used to join strings together. For example. if 2-gram is ["mindspore", "amazing"] with separator="-", the result would be ["mindspore-amazing"] (default=None, which will use whitespace as separator).