summaryrefslogtreecommitdiff
path: root/add_ln
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-05-29 09:17:43 +0200
committerPatrick Simianer <p@simianer.de>2015-05-29 09:17:43 +0200
commit181c0bd79b0e7db2891047305dc87d20ca04097b (patch)
tree186f5030cf6b269dbdd4f599c634c8df71d12a72 /add_ln
parentaf156ba147ed29c2e4b02bc24533e5286902a84a (diff)
add_ln: add line numbers, filter_features: filter text reps of sparse vectors, split_*: split kbest lists and by line
Diffstat (limited to 'add_ln')
-rwxr-xr-xadd_ln8
1 files changed, 8 insertions, 0 deletions
diff --git a/add_ln b/add_ln
new file mode 100755
index 0000000..35bc44d
--- /dev/null
+++ b/add_ln
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+
+i = 0
+while line = STDIN.gets
+ puts "#{i}\t#{line}"
+ i += 1
+end
+