diff --git a/doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst b/doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst index e68181da01b83..c7900c401e3cb 100644 --- a/doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst +++ b/doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst @@ -25,7 +25,7 @@ EditDistance batch_size = 128 # 初始化编辑距离管理器 - distances_evaluator = fluid.metrics.EditDistance("EditDistance") + distance_evaluator = fluid.metrics.EditDistance("EditDistance") # 生成128个序列对间的编辑距离,此处的最大距离是10 edit_distances_batch0 = np.random.randint(low = 0, high = 10, size = (batch_size, 1)) seq_num_batch0 = batch_size