diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /remove-devtest | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'remove-devtest')
| -rwxr-xr-x | remove-devtest | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remove-devtest b/remove-devtest index 8e026f9..f322a6e 100755 --- a/remove-devtest +++ b/remove-devtest @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require 'zipf' +require "zipf" train_src = ReadFile.new ARGV[0] train_tgt = ReadFile.new ARGV[1] @@ -39,7 +39,7 @@ while line_src = train_src.gets line_src_downcase = line_src line_tgt_downcase = line_tgt end - + if not devtest_h_src.has_key? line_src_downcase and not devtest_h_src.has_key? line_tgt_downcase \ and not devtest_h_tgt.has_key? line_src_downcase and not devtest_h_tgt.has_key? line_tgt_downcase train_src_out.write line_src |
