Practical overview
When it fits
Use AttrPrompt when you need a research-oriented framework, codebase or published dataset for LLM-generated text-classification training data.
Who it is for
- Researchers studying synthetic or attributed training data for text classification.
- Machine-learning practitioners exploring generated examples for classifier training.
- Teams comparing training-data generation approaches across text domains.
Documented uses
- Load original train, validation and test splits from published datasets.
- Load named generated-data files for supported tasks.
- Explore code for generating training data and training classifiers.
- Compare data-generation approaches across news, reviews, social media, forums and research papers.
Requirements & limits
The public GitHub repository is licensed under Apache-2.0. The README links datasets hosted on Hugging Face and provides Python loading examples.
- The repository covers both generated training data and classifier-training code.
- Published tasks include multiclass classification and multilabel arXiv classification.
- The README documents dataset-loading examples, but points to separate directories for generation and classifier-training implementation details.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Load an AttrPrompt dataset split
Load a published dataset split from Hugging Face for inspection or downstream work.
Before you start
- Python
- The Hugging Face
datasetslibrary
Steps
Import
load_datasetfromdatasets.Call
load_dataset("yyu/nyt-attrprompt", split="train")to load the NYT training split.Use
split="valid"orsplit="test"to load the corresponding splits.
Expected outcome
The selected NYT dataset split is available as a loaded dataset object.
Guide limitations
- The README demonstrates this example for NYT; it does not document installation steps for the library.
- This recipe loads dataset splits and does not run data generation or train a classifier.
Load a named generated-data file
Load the AttrPrompt-generated NYT training data file from the dataset repository.
Before you start
- Python
- The Hugging Face
datasetslibrary
Steps
Import
load_datasetfromdatasets.Call
load_dataset("yyu/nyt-attrprompt", data_files="attrprompt-v1.jsonl", split="train").
Expected outcome
The named `attrprompt-v1.jsonl` file is loaded as a training split.
Guide limitations
- The README’s command is specific to this named file and dataset repository.
- The recipe loads existing data; it does not generate a new dataset.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- yueyu1030/AttrPrompt · Official homepage title · retained in its source language

