diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-07 17:16:22 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-07 17:16:22 +0200 |
commit | 9df3b86e6a5b087d441c161c03a6fb3298943864 (patch) | |
tree | d9e1c9f8d8e6794ba6834ec5938d5c08975f48f7 /phrase2_extraction | |
parent | 6c62dc57ae90fc6b016da507cae22d96fc128af2 (diff) | |
parent | 457ab6312a19281e1c33b54411cb13878913e774 (diff) |
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'phrase2_extraction')
-rwxr-xr-x | phrase2_extraction/phrase2_extraction.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phrase2_extraction/phrase2_extraction.rb b/phrase2_extraction/phrase2_extraction.rb index 01bdae9..1f268cd 100755 --- a/phrase2_extraction/phrase2_extraction.rb +++ b/phrase2_extraction/phrase2_extraction.rb @@ -7,7 +7,7 @@ module PhrasePhraseExtraction DEBUG = false MAX_NT = 1 # Chiang: 2 MAX_SEED_NUM_WORDS = 3 # Chiang: 10 words, -> phrases! -MAX_SRC_SZ = 7 # Chiang: 5 words, -> words! +MAX_SRC_SZ = 8 # Chiang: 5 words, -> words! FORBID_SRC_ADJACENT_SRC_NT = true # Chiang:true class Rule @@ -649,6 +649,8 @@ def PhrasePhraseExtraction.remove_adjacent_nt rules prev = false end } + b +=begin c = false prev = false r.target.each { |i| @@ -663,6 +665,7 @@ def PhrasePhraseExtraction.remove_adjacent_nt rules end } b || c +=end } end |