Ticket #29179: patch-scripts.diff
File patch-scripts.diff, 872 bytes (added by humem (humem), 13 years ago) |
---|
-
ctext2class
old new 1 #!/usr/ local/bin/ruby1 #!/usr/bin/env ruby 2 2 delimiter = "+" 3 3 print_count = false 4 4 -
text2class
old new 1 #!/usr/ local/bin/ruby1 #!/usr/bin/env ruby 2 2 while gets 3 3 s = chop.split 4 4 c = [] -
text2idtext
old new 1 #!/usr/ local/bin/ruby1 #!/usr/bin/env ruby 2 2 3 3 def usage 4 4 STDERR.print "text2idtext [-verbose] -vocab .vocab [.text]\n" -
reverseword
old new 1 #!/ bin/awk -f1 #!/usr/bin/env awk -f 2 2 { 3 3 for (i=NF; i>1;i--) { 4 4 printf "%s ",$i