Skip to content

Commit

Permalink
bug fix of editdistance (PaddlePaddle#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
xsrobin authored Jul 29, 2019
1 parent be5bdff commit a41e77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/fluid/api_cn/metrics_cn/EditDistance_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a41e77a

Please sign in to comment.