Skip to content

Commit

Permalink
test embed_sentences used with a string
Browse files Browse the repository at this point in the history
  • Loading branch information
yannvgn committed Dec 18, 2019
1 parent dac8cfc commit 4048636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def test_laser():
lang='en').shape == (2, 1024)
assert laser.embed_sentences(['hello world!', "j'aime les pâtes"],
lang=['en', 'fr']).shape == (2, 1024)
assert laser.embed_sentences('hello world!',
lang='en').shape == (1, 1024)


def test_similarity(test_data):
Expand Down

0 comments on commit 4048636

Please sign in to comment.