from transformers import pipeline pipeline_cache_dir = "./pipeline_cache" sentiment_pipeline = pipeline("sentiment-analysis", cache_dir=pipeline_cache_dir)