summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rwxr-xr-xavg_weights2
-rwxr-xr-xfirstlower2
-rwxr-xr-xkbest_bleu_oracles2
-rwxr-xr-xkmeans2
-rwxr-xr-xlin_reg2
-rwxr-xr-xlog_reg2
-rwxr-xr-xmedian2
-rwxr-xr-xmerge_files2
-rwxr-xr-xmerge_ttable2
-rwxr-xr-xmin_max2
-rwxr-xr-xmoses_1best2
-rwxr-xr-xng2
-rwxr-xr-xno_empty2
-rwxr-xr-xper_sentence_bleu2
-rwxr-xr-xper_sentence_bleu_kbest2
-rwxr-xr-xper_sentence_ter2
-rwxr-xr-xtc2
-rwxr-xr-xtf-idf2
-rwxr-xr-xtraintestsplit2
20 files changed, 21 insertions, 21 deletions
diff --git a/README.md b/README.md
index 3212e4b..b129ef3 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,6 @@ scripts
=======
A number of NLP related scripts.
-Some scripts require my nlp_ruby gem,
-see https://github.com/pks/nlp_ruby
+Some scripts require my zipf gem,
+see https://github.com/pks/zipf
diff --git a/avg_weights b/avg_weights
index 71ffdd9..1f9053f 100755
--- a/avg_weights
+++ b/avg_weights
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
require 'zlib'
diff --git a/firstlower b/firstlower
index fb63fcd..682a9b7 100755
--- a/firstlower
+++ b/firstlower
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
while line = STDIN.gets
diff --git a/kbest_bleu_oracles b/kbest_bleu_oracles
index adc695e..2ac344b 100755
--- a/kbest_bleu_oracles
+++ b/kbest_bleu_oracles
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/kmeans b/kmeans
index 02c9c42..ec28897 100755
--- a/kmeans
+++ b/kmeans
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/lin_reg b/lin_reg
index d512104..168e7df 100755
--- a/lin_reg
+++ b/lin_reg
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/log_reg b/log_reg
index c0a95d4..e6f47eb 100755
--- a/log_reg
+++ b/log_reg
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'matrix'
require 'trollop'
diff --git a/median b/median
index 3797164..9499c95 100755
--- a/median
+++ b/median
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
a = []
diff --git a/merge_files b/merge_files
index 051ad6d..0b4941e 100755
--- a/merge_files
+++ b/merge_files
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
def usage
diff --git a/merge_ttable b/merge_ttable
index 7c58c5f..20d86d3 100755
--- a/merge_ttable
+++ b/merge_ttable
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/min_max b/min_max
index 653cde3..17dc566 100755
--- a/min_max
+++ b/min_max
@@ -1,6 +1,6 @@
#!/usr/bin/ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/moses_1best b/moses_1best
index 1a0805d..849ebf1 100755
--- a/moses_1best
+++ b/moses_1best
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
prev_idx = nil
diff --git a/ng b/ng
index dbc59eb..0a29898 100755
--- a/ng
+++ b/ng
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
cfg = Trollop::options do
diff --git a/no_empty b/no_empty
index cd825c0..96c9ce4 100755
--- a/no_empty
+++ b/no_empty
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
files = []
diff --git a/per_sentence_bleu b/per_sentence_bleu
index b7243df..76fcf38 100755
--- a/per_sentence_bleu
+++ b/per_sentence_bleu
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/per_sentence_bleu_kbest b/per_sentence_bleu_kbest
index 475da03..4d821b3 100755
--- a/per_sentence_bleu_kbest
+++ b/per_sentence_bleu_kbest
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/per_sentence_ter b/per_sentence_ter
index eb7083b..8b04be5 100755
--- a/per_sentence_ter
+++ b/per_sentence_ter
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
require 'tempfile'
diff --git a/tc b/tc
index 07eab5d..993086a 100755
--- a/tc
+++ b/tc
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
while line = STDIN.gets
diff --git a/tf-idf b/tf-idf
index ce3400a..fc12d30 100755
--- a/tf-idf
+++ b/tf-idf
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'
diff --git a/traintestsplit b/traintestsplit
index eb71354..ec88df1 100755
--- a/traintestsplit
+++ b/traintestsplit
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'nlp_ruby'
+require 'zipf'
require 'trollop'