sugardata
sugardata is a Python package that helps you generate synthetic datasets for NLP tasks, enabling experimentation, prototyping, and training when labeled data is limited or unavailable.
Installation
You can install sugardata via pip:
pip install sugardata
Quick Start
sugardata supports multiple NLP tasks out of the box.
Task 1: Sentiment Analysis
import sugardata as su
# generate synchronously
results = su.generate_sentiment_data(concept="online shopping")
# generate asynchronously
results = await su.generate_sentiment_data_async(concept="online shopping")
# generate concurrently with multiple vendors
vendors = {
"openai": "gpt-4o-mini",
"gemini": "gemini-2.0-flash-lite",
"groq": "meta-llama/llama-4-scout-17b-16e-instruct",
"ollama": "gemma3:12b",
}
results = await su.generate_sentiment_multi_vendor_async(
concept="online shopping",
vendors=vendors
)
# augment synchronously
examples = [
# some text
...
]
results = su.augment_sentiment_data(examples=examples)
# augment asynchronously
results = await su.augment_sentiment_data_async(examples=examples)
# augment concurrently with multiple vendors
vendors = {
"openai": "gpt-4o-mini",
"gemini": "gemini-2.0-flash-lite",
"groq": "meta-llama/llama-4-scout-17b-16e-instruct",
"ollama": "gemma3:12b",
}
results = await su.augment_sentiment_multi_vendor_async(
examples=examples,
vendors=vendors
)
Task 2: Named Entity Recognition (NER) Localization
import sugardata as su
examples = [
{
"text": "John works at Acme Corp in New York",
"ner_tags": [{"John": "PER", "Acme Corp": "ORG", "New York": "LOC"}]
},
# more examples...
]
entity_labels = {"PER": (1, 2), "ORG": (3, 4), "LOC": (5, 6)}
# localize synchronously
results = su.localize_ner_data(
examples=examples,
language="Turkish",
entity_labels=entity_labels
)
# localize asynchronously
results = await su.localize_ner_data_async(
examples=examples,
language="Turkish",
entity_labels=entity_labels
)
# localize concurrently with multiple vendors
vendors = {
"openai": "gpt-4o-mini",
"gemini": "gemini-2.0-flash-lite",
"groq": "meta-llama/llama-4-scout-17b-16e-instruct",
"ollama": "gemma3:12b",
}
results = await su.localize_ner_data_multi_vendor_async(
examples=examples,
language="Turkish",
entity_labels=entity_labels,
vendors=vendors
)
To learn more about configuration options, advanced parameters, and integration tips, please visit tutorials.
Metadata
Release files for sugardata 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sugardata-0.0.5.tar.gz | 25.0 kB | Without provenance | Details for sugardata-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sugardata-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sugardata-0.0.5-py3-none-any.whl |
Total release size: 70.1 kB
Release files / sugardata-0.0.5.tar.gz
| Download URL | sugardata-0.0.5.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5c67bdff4d19bce2652ae443091cdd41be5e0ce32fd8e73aef19bf40cffd5bd
|
|
BLAKE2b-256 checksum How to use checksums |
ab22c235b4516f2258fc54f02da76af0874d473d6e2fd56c751e3ea45f2aa9d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|
Release files / sugardata-0.0.5-py3-none-any.whl
| Download URL | sugardata-0.0.5-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e7630d587e8a32c359aabc9972810a37c2a294062dd4106414d6509ce5caa73
|
|
BLAKE2b-256 checksum How to use checksums |
9f376dd7692deeae9da4aeaf3a50b75f0601ecd6156a5a578266277c89799f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|
Security for sugardata 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.