Skip to content

Commit 4bcfaae

Browse files
author
Elad Hoffer
committed
remove subword-nmt submodule
1 parent 51461eb commit 4bcfaae

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "seq2seq/tools/subword-nmt"]
2-
path = seq2seq/tools/subword-nmt
3-
url = https://github.com/rsennrich/subword-nmt
41
[submodule "seq2seq/tools/utils"]
52
path = seq2seq/tools/utils
63
url = https://github.com/eladhoffer/utils.pytorch

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pandas
55
sacrebleu
66
sacremoses
77
sentencepiece
8+
subword-nmt

seq2seq/tools/subword-nmt

-1
This file was deleted.

seq2seq/tools/tokenizer.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
from .config import *
1212

1313
try:
14-
sys.path.append(os.path.abspath(os.path.join(
15-
os.path.dirname(__file__), './subword-nmt')))
16-
import learn_bpe
17-
import apply_bpe
14+
from subword_nmt import learn_bpe, apply_bpe
1815
_BPE_AVAILABLE = True
1916
except:
2017
_BPE_AVAILABLE = False

0 commit comments

Comments
 (0)