From 93bbbada1c5c60e7b71413f6537d1b73262d39d5 Mon Sep 17 00:00:00 2001 From: David Dale Date: Thu, 16 Nov 2023 02:29:21 -0800 Subject: [PATCH] update the example in the readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 16a52490..d86de2c6 100644 --- a/README.md +++ b/README.md @@ -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.