From 001f5b5714a68b060488cf38f0554e0b91f8021d Mon Sep 17 00:00:00 2001 From: John Hewitt Date: Thu, 8 Sep 2016 12:01:29 -0400 Subject: [PATCH 1/2] update link to original paper --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f1d0ec..d6e8443 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ fast_align `fast_align` is a simple, fast, unsupervised word aligner. If you use this software, please cite: -* [Chris Dyer](http://www.cs.cmu.edu/~cdyer), [Victor Chahuneau](http://victor.chahuneau.fr), and [Noah A. Smith](http://www.cs.cmu.edu/~nasmith). (2013). [A Simple, Fast, and Effective Reparameterization of IBM Model 2](http://www.ark.cs.cmu.edu/cdyer/fast_valign.pdf). In *Proc. of NAACL*. +* [Chris Dyer](http://www.cs.cmu.edu/~cdyer), [Victor Chahuneau](http://victor.chahuneau.fr), and [Noah A. Smith](http://www.cs.cmu.edu/~nasmith). (2013). [A Simple, Fast, and Effective Reparameterization of IBM Model 2](http://www.aclweb.org/anthology/N13-1073). In *Proc. of NAACL*. The source code in this repository is provided under the terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). From 1189ce77a2c014360c2b8f1227e05d4e210d92a9 Mon Sep 17 00:00:00 2001 From: John Hewitt Date: Thu, 8 Sep 2016 12:02:02 -0400 Subject: [PATCH 2/2] fix DiagonalAlignment arithmetic bug --- src/da.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/da.h b/src/da.h index 80f7529..bfc6c45 100644 --- a/src/da.h +++ b/src/da.h @@ -86,7 +86,7 @@ struct DiagonalAlignment { const double x_1 = a_1 * g_1; const double g_2 = g_1 * r; const double rm1 = r - 1; - return (a_n * g_np1 - x_1) / rm1 - d*(g_np1 - g_2) / (rm1 * rm1); + return (a_n * g_np1 - x_1) / rm1 + d*(g_np1 - g_2) / (rm1 * rm1); } };