diff options
author | Patrick Simianer <patrick@lilt.com> | 2020-02-19 15:16:50 +0000 |
---|---|---|
committer | Patrick Simianer <patrick@lilt.com> | 2020-02-19 15:16:50 +0000 |
commit | 4bb4c4b4e35d00a4a8e96a3f1de4301f481b9cc6 (patch) | |
tree | 45565ce7e36ea343fef2fb7119d583e4c0329bc3 | |
parent | 276b954705f7a9d46c4241aa25e6bb19be8716e1 (diff) |
sentencepiece-decode
-rwxr-xr-x | sentencepiece-decode | 9 |
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 + |