| ag_news_sample | R Documentation |
A 100-row subset of the AG News Topic Classification dataset consisting of 25 documents from each of the four classes (World, Sports, Business, Sci/Tech). The sample is intended for quick demonstrations and tests without requiring the full external dataset.
data(ag_news_sample)
A data frame with 100 rows and 3 character columns:
News topic label ("World", "Sports", "Business", or "Sci/Tech").
Headline of the news article.
Short description for the article.
The sample was obtained from textdata::dataset_ag_news() (Zhang et al.,
2015) using a fixed random seed to ensure reproducibility. It is provided
solely for illustrative purposes.
Zhang, X., Zhao, J., & LeCun, Y. (2015). "Character-level Convolutional Networks for Text Classification." arXiv:1509.01626. Original data distributed via the AG News Topic Classification dataset.
[textdata::dataset_ag_news()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.