Snorkel is a Python library for writing labeling functions, combining them into probabilistic labels, and managing training sets without exhaustive manual annotation.
Overview
Snorkel helps machine learning teams generate supervised signal by applying user-defined labeling functions over unlabeled data, then modeling their agreement to produce training labels. It grew from Stanford research emphasizing programmatic data creation instead of hand-labeling every example.
The open-source library supports Python 3.11+ installs via pip or conda, with tutorials covering classification, extraction, and integration patterns. Documentation and a separate tutorial repository walk through domain examples that can serve as templates.
The maintainers now focus commercial effort on Snorkel Flow, a broader platform for weak supervision, monitoring, and deployment, while keeping the library available for experimentation and extension. Community contributions continue through GitHub issues and pull requests.
Researchers and engineers use it when heuristics, patterns, and external knowledge can collectively approximate expensive ground-truth labels at scale.
Key features
- Labeling function API
- Training data management
- Python 3.11+ support
- Tutorial repository examples
- Pip and conda installs
- Community contribution workflow
Use cases
- Weakly label text datasets
- Combine heuristic annotators
- Bootstrap NLP classifiers
- Research programmatic labeling