summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2020-02-19 15:16:50 +0000
committerPatrick Simianer <patrick@lilt.com>2020-02-19 15:16:50 +0000
commit4bb4c4b4e35d00a4a8e96a3f1de4301f481b9cc6 (patch)
tree45565ce7e36ea343fef2fb7119d583e4c0329bc3
parent276b954705f7a9d46c4241aa25e6bb19be8716e1 (diff)
sentencepiece-decode
-rwxr-xr-xsentencepiece-decode9
1 files changed, 9 insertions, 0 deletions
diff --git a/sentencepiece-decode b/sentencepiece-decode
new file mode 100755
index 0000000..5e07ffa
--- /dev/null
+++ b/sentencepiece-decode
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+require 'zipf'
+
+while line = STDIN.gets
+ line = line.split.join ""
+ puts line.gsub "▁", " "
+end
+