Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
✅ (cli) add test to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
imgarylai committed Mar 28, 2019
1 parent 6fcec0a commit 064af2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bert Embeddings

[![Build Status](https://travis-ci.org/imgarylai/bert-embedding.svg?branch=master)](https://travis-ci.org/imgarylai/bert-embedding) [![PyPI version](https://badge.fury.io/py/bert-embedding.svg)](https://pypi.org/project/bert-embedding/) [![Documentation Status](https://readthedocs.org/projects/bert-embedding/badge/?version=latest)](https://bert-embedding.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/imgarylai/bert-embedding.svg?branch=master)](https://travis-ci.org/imgarylai/bert-embedding) [![codecov](https://codecov.io/gh/imgarylai/bert-embedding/branch/master/graph/badge.svg)](https://codecov.io/gh/imgarylai/bert-embedding) [![PyPI version](https://badge.fury.io/py/bert-embedding.svg)](https://pypi.org/project/bert-embedding/) [![Documentation Status](https://readthedocs.org/projects/bert-embedding/badge/?version=latest)](https://bert-embedding.readthedocs.io/en/latest/?badge=latest)


[BERT](https://arxiv.org/abs/1810.04805), published by [Google](https://github.com/google-research/bert), is new way to obtain pre-trained language model word representation. Many NLP tasks are benefit from BERT to get the SOTA.
Expand Down
10 changes: 10 additions & 0 deletions bert_embedding/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import subprocess
import time


def test_bert_embedding():
process = subprocess.check_call(['python', './bert_embedding/cli.py',
'--model', 'bert_12_768_12', '--dataset_name', 'book_corpus_wiki_en_uncased',
'--max_seq_length', '25', '--batch_size', '256',
'--oov_way', 'avg', '--sentences', '"is this jacksonville ?"'])
time.sleep(5)

0 comments on commit 064af2e

Please sign in to comment.