diff options
author | Patrick Simianer <p@simianer.de> | 2017-07-25 02:17:07 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2017-07-25 02:17:07 +0200 |
commit | 93bdac797ed3cf04a427e276823f9896dcf19a2d (patch) | |
tree | f3d7b5c300125a276f4d1af8f34c8f6f28657caf /external | |
parent | b5897a62732dd7c13b2b10d7b132855d40afae0d (diff) |
lfpe 2017 (neural edition)
Diffstat (limited to 'external')
l--------- | external/apply_bpe.py | 1 | ||||
-rwxr-xr-x | external/de-bpe | 8 | ||||
-rwxr-xr-x | external/de-bpe.rb | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/external/apply_bpe.py b/external/apply_bpe.py new file mode 120000 index 0000000..5b15a8b --- /dev/null +++ b/external/apply_bpe.py @@ -0,0 +1 @@ +../../subword-nmt/apply_bpe.py
\ No newline at end of file diff --git a/external/de-bpe b/external/de-bpe new file mode 100755 index 0000000..fde1ef1 --- /dev/null +++ b/external/de-bpe @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + +STDOUT.sync = true + +while line = STDIN.gets + puts line.gsub(/@@ /, "") +end + diff --git a/external/de-bpe.rb b/external/de-bpe.rb new file mode 100755 index 0000000..65e1506 --- /dev/null +++ b/external/de-bpe.rb @@ -0,0 +1,4 @@ +#!/bin/zsh + +sed "s|@@ ||g" + |