diff options
author | Michael Denkowski <michael.j.denkowski@gmail.com> | 2012-12-23 22:43:43 -0500 |
---|---|---|
committer | Michael Denkowski <michael.j.denkowski@gmail.com> | 2012-12-23 22:43:43 -0500 |
commit | dd708f2931ff416eae781e29f27ddb61c1632c9e (patch) | |
tree | 4d269b3cbd6fac963d7c38e174d07891a7452356 /python/src/sa | |
parent | 80686468fc5afcacc1c47820d4498b3e87859905 (diff) |
Working test
Diffstat (limited to 'python/src/sa')
-rwxr-xr-x | python/src/sa/online_extractor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/src/sa/online_extractor.py b/python/src/sa/online_extractor.py index 8aae3959..03a46b3b 100755 --- a/python/src/sa/online_extractor.py +++ b/python/src/sa/online_extractor.py @@ -94,6 +94,7 @@ class OnlineGrammarExtractor: phrases = set() f_len = len(f_words) + e_len = len(e_words) # Pre-compute alignment info al = [[] for i in range(f_len)] @@ -105,7 +106,7 @@ class OnlineGrammarExtractor: # Target side word coverage # TODO: Does Cython do bit vectors? - cover = [0] * f_len + cover = [0] * e_len # Extract all possible hierarchical phrases starting at a source index # f_ i and j are current, e_ i and j are previous |