Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in SentenceEmbeddingsTokenizerOuput #368

Merged
merged 1 commit into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix typo in SentenceEmbeddingsTokenizerOuput
  • Loading branch information
SpirosMakris committed May 5, 2023
commit 4ad0722fb566e999235cfcec8fe93975cf801bd8
2 changes: 1 addition & 1 deletion src/pipelines/sentence_embeddings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub use config::{
};
pub use pipeline::{
SentenceEmbeddingsModel, SentenceEmbeddingsModelOutput, SentenceEmbeddingsOption,
SentenceEmbeddingsTokenizerOuput,
SentenceEmbeddingsTokenizerOutput,
};

pub use resources::{
Expand Down
8 changes: 4 additions & 4 deletions src/pipelines/sentence_embeddings/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl SentenceEmbeddingsModel {
}

/// Tokenizes the inputs
pub fn tokenize<S>(&self, inputs: &[S]) -> SentenceEmbeddingsTokenizerOuput
pub fn tokenize<S>(&self, inputs: &[S]) -> SentenceEmbeddingsTokenizerOutput
where
S: AsRef<str> + Sync,
{
Expand Down Expand Up @@ -327,7 +327,7 @@ impl SentenceEmbeddingsModel {
.map(|input| Tensor::of_slice(&(input)))
.collect::<Vec<_>>();

SentenceEmbeddingsTokenizerOuput {
SentenceEmbeddingsTokenizerOutput {
tokens_ids,
tokens_masks,
}
Expand All @@ -341,7 +341,7 @@ impl SentenceEmbeddingsModel {
where
S: AsRef<str> + Sync,
{
let SentenceEmbeddingsTokenizerOuput {
let SentenceEmbeddingsTokenizerOutput {
tokens_ids,
tokens_masks,
} = self.tokenize(inputs);
Expand Down Expand Up @@ -457,7 +457,7 @@ impl SentenceEmbeddingsModel {
}

/// Container for the SentenceEmbeddings tokenizer output.
pub struct SentenceEmbeddingsTokenizerOuput {
pub struct SentenceEmbeddingsTokenizerOutput {
pub tokens_ids: Vec<Tensor>,
pub tokens_masks: Vec<Tensor>,
}
Expand Down
Loading