From db6a6ecfa350cae29739c59df1210d8f76a479c9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 5 Dec 2013 07:56:38 +0100 Subject: init --- moses_1best | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 moses_1best (limited to 'moses_1best') diff --git a/moses_1best b/moses_1best new file mode 100755 index 0000000..5c6bf9d --- /dev/null +++ b/moses_1best @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +STDIN.set_encoding 'utf-8' +STDOUT.set_encoding 'utf-8' + +prev_idx = nil +while line = STDIN.gets + line.strip! + idx = line.split('|||')[0].to_i + if idx != prev_idx + puts line + prev_idx = idx + end +end + -- cgit v1.2.3