Skip to content

Commit

Permalink
docs: Update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulooh007 committed Oct 19, 2023
1 parent 280c208 commit c1fa0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laser_encoders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tokenizer = initialize_tokenizer(lang="igbo")
tokenized_sentence = tokenizer.tokenize("nnọọ, kedu ka ị mere")

# Initialize the LASER sentence encoder
encoder = LaserEncoderPipeline(lang="igbo")
encoder = LaserEncoderPipeline(lang="igbo", tokenize=False)

# Encode sentences into embeddings
embeddings = encoder.encode_sentences([tokenized_sentence])
Expand Down

0 comments on commit c1fa0c1

Please sign in to comment.