summaryrefslogtreecommitdiff
path: root/moses_1best
blob: 1a0805d21f8a0b4f439e376e6ee5cd4728dc7a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby

require 'nlp_ruby'


prev_idx = nil
while line = STDIN.gets
  line.strip!
  idx = splitpipe(line)[0].to_i
  if idx != prev_idx
    puts line
    prev_idx = idx
  end
end