Hugging Face (Meta-package)

0.0.1 · active · verified Fri Apr 17

The `huggingface` PyPI package (version 0.0.1) is a meta-package designed to simplify installation by pulling in the main Hugging Face libraries: `transformers`, `datasets`, and `huggingface_hub`. It does not provide its own direct API functionality. This package typically has a very low release cadence, primarily updating its dependencies.

Common errors

Warnings

Install

Imports

Quickstart

The `huggingface` package itself does not expose an API. This quickstart demonstrates common usage of the `transformers` library (specifically the `pipeline` abstraction), which is automatically installed as a dependency by `huggingface`. All direct functionality will come from `transformers`, `datasets`, or `huggingface_hub`.

from transformers import pipeline

# The huggingface meta-package itself does not provide an API.
# This quickstart demonstrates typical usage of the `transformers` library,
# which is installed as a dependency by `huggingface`.

classifier = pipeline("sentiment-analysis")
result = classifier("I love using Hugging Face libraries!")
print(result)

# Example of using a dataset (also installed by huggingface meta-package)
from datasets import load_dataset
# dataset = load_dataset("imdb") # Uncomment to load a large dataset
# print(dataset)

view raw JSON →