summaryrefslogtreecommitdiff
path: root/phrase2_extraction
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-06-07 17:16:22 +0200
committerPatrick Simianer <p@simianer.de>2016-06-07 17:16:22 +0200
commit9df3b86e6a5b087d441c161c03a6fb3298943864 (patch)
treed9e1c9f8d8e6794ba6834ec5938d5c08975f48f7 /phrase2_extraction
parent6c62dc57ae90fc6b016da507cae22d96fc128af2 (diff)
parent457ab6312a19281e1c33b54411cb13878913e774 (diff)
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'phrase2_extraction')
-rwxr-xr-xphrase2_extraction/phrase2_extraction.rb5
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