From a5e5c92aea1e99cb84d7342bd63826ca6cd884c4 Mon Sep 17 00:00:00 2001 From: DamonGuzman <106456287+DamonGuzman@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:52:51 -0700 Subject: [PATCH] Fixed typo in comments/documentation for Pipelines documentation (#30170) Update feature_extraction.py - Fixed typo in comments/documentation --- src/transformers/pipelines/feature_extraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/pipelines/feature_extraction.py b/src/transformers/pipelines/feature_extraction.py index e8adb11b687da6..7d67a615ac02d2 100644 --- a/src/transformers/pipelines/feature_extraction.py +++ b/src/transformers/pipelines/feature_extraction.py @@ -24,7 +24,7 @@ class FeatureExtractionPipeline(Pipeline): >>> extractor = pipeline(model="google-bert/bert-base-uncased", task="feature-extraction") >>> result = extractor("This is a simple test.", return_tensors=True) - >>> result.shape # This is a tensor of shape [1, sequence_lenth, hidden_dimension] representing the input string. + >>> result.shape # This is a tensor of shape [1, sequence_length, hidden_dimension] representing the input string. torch.Size([1, 8, 768]) ```