From aa85eee07656ccfa0f96f8d630630df45332336d Mon Sep 17 00:00:00 2001 From: shenwei41 Date: Mon, 8 Feb 2021 16:09:39 +0800 Subject: [PATCH] modify file bug --- mindspore/dataset/text/transforms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mindspore/dataset/text/transforms.py b/mindspore/dataset/text/transforms.py index a615ab4742..2be7f2518c 100644 --- a/mindspore/dataset/text/transforms.py +++ b/mindspore/dataset/text/transforms.py @@ -199,14 +199,15 @@ class JiebaTokenizer(TextTensorOperation): Add user defined word to JiebaTokenizer's dictionary. Args: - user_dict (Union[str, dict]): Dictionary to be added, file path or Python dictionary, + user_dict (Union[str, dict]): One of the two loading methods is file path(str) loading + (according to the Jieba dictionary format) and the other is Python dictionary(dict) loading, Python Dict format: {word1:freq1, word2:freq2,...}. Jieba dictionary format : word(required), freq(optional), such as: .. code-block:: word1 freq1 - word2 + word2 None word3 freq3 Examples: