Skip to content

Commit

Permalink
💚 Fixing CI Build.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrikerMan committed May 25, 2019
1 parent 3e56ecb commit 363bf54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions tests/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@

valid_x, valid_y = SMP2018ECDTCorpus.load_data('valid')

bert_path = get_file('bert_sample_model',
"https://storage.googleapis.com/kashgari/bert_sample_model.tar.bz2",
cache_dir=DATA_PATH,
untar=True)

sample_w2v_path = get_file('sample_w2v.txt',
"https://storage.googleapis.com/kashgari/sample_w2v.txt",
cache_dir=DATA_PATH)

bert_path = get_file('bert_sample_model',
"https://storage.googleapis.com/kashgari/bert_sample_model.tar.bz2",
cache_dir=DATA_PATH)

w2v_embedding = WordEmbedding(sample_w2v_path, task=kashgari.CLASSIFICATION)
w2v_embedding_variable_len = WordEmbedding(sample_w2v_path, task=kashgari.CLASSIFICATION, sequence_length='variable')

Expand Down
3 changes: 2 additions & 1 deletion tests/test_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def setUpClass(cls):
cls.embedding_class = BERTEmbedding
bert_path = get_file('bert_sample_model',
"https://storage.googleapis.com/kashgari/bert_sample_model.tar.bz2",
cache_dir=DATA_PATH)
cache_dir=DATA_PATH,
untar=True)
cls.config = {
'bert_path': bert_path
}
Expand Down

0 comments on commit 363bf54

Please sign in to comment.