Skip to content

Commit

Permalink
Add tokenize_kwargs parameter definition in the FeatureExtractionPipe…
Browse files Browse the repository at this point in the history
…line (huggingface#22031)

add tokenize_kwargs doc in the FeatureExtractionPipeline
  • Loading branch information
anruijian authored Mar 8, 2023
1 parent a5392ee commit b427b26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/pipelines/feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class FeatureExtractionPipeline(Pipeline):
device (`int`, *optional*, defaults to -1):
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id.
tokenize_kwargs (`dict`, *optional*):
Additional dictionary of keyword arguments passed along to the tokenizer.
"""

def _sanitize_parameters(self, truncation=None, tokenize_kwargs=None, return_tensors=None, **kwargs):
Expand Down

0 comments on commit b427b26

Please sign in to comment.