CoolFace
Datasetpublic

duarteocarmo/fineweb2-bagaco

Bagaço 🍷🇵🇹 Bagaço is a pretraining dataset for European Portuguese. It filters the Fineweb2 dataset to URLs from Portuguese domains (e.g., .pt/). Each document is classified into one of 9 categories and scored for educational quality. Filtering Source: HuggingFaceFW/fineweb-2, subset por_Latn, split train Filter: URLs containing .pt/ (Portuguese top-level domain) Document classification Each document is classified into one of 9 categories:… See the full description on the dataset page: https://huggingface.co/datasets/duarteocarmo/fineweb2-bagaco.

sourceHugging Faceodc-byupdated 7mo agoView on Hugging Face
2likes1kdownloads
Dataset Card

Bagaço 🍷🇵🇹

Bagaço is a pretraining dataset for European Portuguese. It filters the Fineweb2 dataset to URLs from Portuguese domains (e.g., .pt/). Each document is classified into one of 9 categories and scored for educational quality.

Filtering

  • Source: HuggingFaceFW/fineweb-2, subset por_Latn, split train
  • Filter: URLs containing .pt/ (Portuguese top-level domain)

Document classification

Each document is classified into one of 9 categories: Society, Arts, Business, Science, Sports, Lifestyle, Health, Games, News.

Labeling:

  • Model: Gemini 2.5 Flash Lite
  • Labeled samples: 3,500
  • Prompt:
System: Classify the Portuguese web text into one category.
User: <first 800 chars of document>
Response format: { category: Society | Arts | Business | Science | Sports | Lifestyle | Health | Games | News }

Classifier:

  • Embeddings: intfloat/multilingual-e5-small
  • Model: Logistic Regression (C=1.0, class_weight='balanced')
  • Validation: 20% held-out split (700 samples)
CategoryPrecisionRecallF1-ScoreSupport
Arts0.600.830.7059
Business0.810.780.79131
Games0.750.910.8223
Health0.770.870.8153
Lifestyle0.810.750.78111
News0.800.710.75131
Science0.420.870.5715
Society0.720.570.64101
Sports0.890.870.8876
Accuracy0.76700
Macro Avg0.730.800.75700
Weighted Avg0.770.760.76700

Educational score

Each document is assigned an educational quality score (0-5).

Labeling:

  • Model: Qwen3 235B A22B
  • Labeled samples: 30,000
  • Prompt (adapted from FineWeb-Edu):
Below is an extract from a web page. Evaluate whether the page has a high educational value
and could be useful in an educational setting for teaching from primary school to grade school
levels using the additive 5-point scoring system described below. The text will be in Portuguese.
Evaluate its educational value based on content quality, not language.

- 1 point: basic information relevant to educational topics, even with ads/promotional material.
- 2 points: addresses elements pertinent to education but doesn't align closely with standards.
- 3 points: appropriate for educational use, introduces key concepts relevant to school curricula.
- 4 points: highly relevant for grade school education, clear writing, substantial content.
- 5 points: outstanding educational value, perfectly suited for primary/grade school teaching.

The extract: <first 1500 chars of document>

After examining the extract, briefly justify your total score (up to 100 words)
and provide the educational score (0-5).
Response format: { justification: str, educational_score: int }

Classifier:

  • Embeddings: intfloat/multilingual-e5-small
  • Model: Logistic Regression (C=1.0, class_weight='balanced')
  • Validation: 20% held-out split (train=24,000, test=6,000)
ScorePrecisionRecallF1-ScoreSupport
00.660.820.732,056
10.830.530.653,438
20.230.510.31369
30.210.600.31131
40.000.000.006
Accuracy0.636,000
Macro Avg0.390.490.406,000
Weighted Avg0.720.630.656,000
Confusion Matrix:
[[1679  319   40   15    3]
 [ 847 1839  564  172   16]
 [   7   65  189  101    7]
 [   1    3   40   78    9]
 [   0    0    3    3    0]]

Notes

  • references contains the labeled datasets used to train the classifiers
  • scripts contains the scripts used to train classifiers, classify documents, and process the dataset