Skip to content

Commit

Permalink
Fix sentence embeddings example in README (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Apr 1, 2023
1 parent f836e45 commit 31f9d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Generate sentence embeddings (vector representation). These can be used for appl
"each sentence is converted"
];

let output = model.predict(&sentences);
let output = model.encode(&sentences)?;
```
Output:
```
Expand Down

0 comments on commit 31f9d7f

Please sign in to comment.