Skip to content

Commit

Permalink
remove language option for pass test (still working on jap subword mo…
Browse files Browse the repository at this point in the history
…dels)
  • Loading branch information
libofang committed Jul 11, 2018
1 parent a8a590b commit ebd4cf9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,3 @@ def test_train_word2vec_subword(self):
run_module('vecto.embeddings.train_word2vec',
['--path_corpus', path_corpus, '--path_out', '/tmp/vecto/embeddings/', '--dimension', '5',
'--subword', '_none'])


def test_train_word2vec_subword_jap(self):
path_corpus = "./tests/data/corpora/plain/"
sio = io.StringIO()
with contextlib.redirect_stderr(sio):
run_module('vecto.embeddings.train_word2vec',
['--path_corpus', path_corpus, '--path_out', '/tmp/vecto/embeddings/', '--dimension', '5',
'--subword', 'cnn1d'])


Tests().test_train_word2vec_subword_jap()
2 changes: 0 additions & 2 deletions vecto/embeddings/train_word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def parse_args():
help='number of epochs to learn')
parser.add_argument('--model', '-m', choices=['skipgram', 'cbow'],
default='skipgram', help='model type ("skipgram", "cbow")')
parser.add_argument('--language', '-m', choices=['eng', 'jap'],
default='eng', help='the language, current only support english and japanese')
parser.add_argument('--subword', '-sw',
choices=['none', '_none', 'cnn1d', 'lstm', 'lstm_sum', 'bilstm', 'bilstm_sum', 'avg', 'sum'],
default='none',
Expand Down

0 comments on commit ebd4cf9

Please sign in to comment.