Skip to content

Commit

Permalink
update the example in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
avidale committed Nov 16, 2023
1 parent 1f5b2e5 commit 93bbbad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ The package can be installed simply with `pip install laser_encoders` and used a
```python
from laser_encoders import LaserEncoderPipeline
encoder = LaserEncoderPipeline(lang="eng_Latn")
embeddings = encoder.encode_sentences(["Hi!", "This is a sentence encoder."])
print(embeddings.shape) # (2, 1024)
```

The laser_encoders [readme file](laser_encoders) provides more examples of its installation and usage.
Expand Down

0 comments on commit 93bbbad

Please sign in to comment.