Skip to content

Commit a41e77a

Browse files
authored
bug fix of editdistance (PaddlePaddle#1058)
1 parent be5bdff commit a41e77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ EditDistance
2525
batch_size = 128
2626
2727
# 初始化编辑距离管理器
28-
distances_evaluator = fluid.metrics.EditDistance("EditDistance")
28+
distance_evaluator = fluid.metrics.EditDistance("EditDistance")
2929
# 生成128个序列对间的编辑距离,此处的最大距离是10
3030
edit_distances_batch0 = np.random.randint(low = 0, high = 10, size = (batch_size, 1))
3131
seq_num_batch0 = batch_size

0 commit comments

Comments
 (0)