diff options
Diffstat (limited to 'edit_distance.py')
-rw-r--r-- | edit_distance.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/edit_distance.py b/edit_distance.py index d76cc00..6c118e8 100644 --- a/edit_distance.py +++ b/edit_distance.py @@ -8,6 +8,10 @@ def batch_edit_distance(a, a_len, b, b_len): B = a.shape[0] assert b.shape[0] == B + for i in range(B): + print "A:", a[i, :a_len[i]] + print "B:", b[i, :b_len[i]] + q = max(a.shape[1], b.shape[1]) * numpy.ones((B, a.shape[1]+1, b.shape[1]+1), dtype='int32') q[:, 0, 0] = 0 |