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
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>IfGPT DATASET Quality Components</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
| 10 |
+
max-width: 900px;
|
| 11 |
+
margin: 2em auto;
|
| 12 |
+
padding: 0 1.5em;
|
| 13 |
+
line-height: 1.6;
|
| 14 |
+
color: #24292f;
|
| 15 |
+
background-color: #ffffff;
|
| 16 |
+
}
|
| 17 |
+
h1 {
|
| 18 |
+
border-bottom: 2px solid #d0d7de;
|
| 19 |
+
padding-bottom: 0.3em;
|
| 20 |
+
font-size: 2em;
|
| 21 |
+
}
|
| 22 |
+
h2 {
|
| 23 |
+
border-bottom: 1px solid #d0d7de;
|
| 24 |
+
padding-bottom: 0.3em;
|
| 25 |
+
margin-top: 1.8em;
|
| 26 |
+
font-size: 1.5em;
|
| 27 |
+
}
|
| 28 |
+
code {
|
| 29 |
+
background-color: #f6f8fa;
|
| 30 |
+
padding: 0.2em 0.4em;
|
| 31 |
+
border-radius: 4px;
|
| 32 |
+
font-family: "SF Mono", Menlo, Consolas, monospace;
|
| 33 |
+
font-size: 0.9em;
|
| 34 |
+
}
|
| 35 |
+
pre {
|
| 36 |
+
background-color: #f6f8fa;
|
| 37 |
+
padding: 1em;
|
| 38 |
+
border-radius: 6px;
|
| 39 |
+
overflow-x: auto;
|
| 40 |
+
font-family: "SF Mono", Menlo, Consolas, monospace;
|
| 41 |
+
font-size: 0.9em;
|
| 42 |
+
}
|
| 43 |
+
pre code {
|
| 44 |
+
background: none;
|
| 45 |
+
padding: 0;
|
| 46 |
+
}
|
| 47 |
+
ul {
|
| 48 |
+
padding-left: 1.5em;
|
| 49 |
+
}
|
| 50 |
+
li {
|
| 51 |
+
margin-bottom: 0.6em;
|
| 52 |
+
}
|
| 53 |
+
hr {
|
| 54 |
+
border: none;
|
| 55 |
+
border-top: 1px solid #d0d7de;
|
| 56 |
+
margin: 2em 0;
|
| 57 |
+
}
|
| 58 |
+
a {
|
| 59 |
+
color: #0969da;
|
| 60 |
+
text-decoration: none;
|
| 61 |
+
}
|
| 62 |
+
a:hover {
|
| 63 |
+
text-decoration: underline;
|
| 64 |
+
}
|
| 65 |
+
.footer {
|
| 66 |
+
font-size: 0.9em;
|
| 67 |
+
color: #57606a;
|
| 68 |
+
}
|
| 69 |
+
</style>
|
| 70 |
+
</head>
|
| 71 |
+
<body>
|
| 72 |
+
|
| 73 |
+
<h1>IfGPT DATASET Quality Components</h1>
|
| 74 |
+
|
| 75 |
+
<h2>Objectives of the project IfGPT</h2>
|
| 76 |
+
<p>
|
| 77 |
+
The <strong>IfGPT Quality Pipeline</strong> is developed within the project
|
| 78 |
+
<strong>IfGPT: Infrastructure for Fine-tuning Pre-trained Large Language Models</strong>,
|
| 79 |
+
which aims to establish a freely accessible infrastructure for the selection and
|
| 80 |
+
pre-processing of large datasets for Bulgarian as well as tailored data for particular
|
| 81 |
+
industries and fine-tuning suitable freely available large language models for specific purposes.
|
| 82 |
+
</p>
|
| 83 |
+
|
| 84 |
+
<h2>IfGPT Dataset Quality Pipeline</h2>
|
| 85 |
+
<p>
|
| 86 |
+
Modular Java pipeline to process and add new text documents to the IfGPT Dataset,
|
| 87 |
+
which includes cleaning, deduplication and quality evaluation of Bulgarian texts.
|
| 88 |
+
</p>
|
| 89 |
+
<p>The pipeline includes:</p>
|
| 90 |
+
<ul>
|
| 91 |
+
<li>
|
| 92 |
+
<strong>Source-specific extraction</strong> — metadata and plain text extracted from
|
| 93 |
+
heterogeneous corpora (MARCELL, CURLICAT, BulNC, Wikipedia), each handled by a
|
| 94 |
+
dedicated class that implements the shared <code>SourceProcessor</code> interface and
|
| 95 |
+
extends <code>BaseSourceProcessor</code>.
|
| 96 |
+
</li>
|
| 97 |
+
<li>
|
| 98 |
+
<strong>Sentence splitting</strong> — <code>BulgarianSentenceSplitter</code> wraps the
|
| 99 |
+
Apache OpenNLP Bulgarian UD sentence-detection model, splitting every document into a
|
| 100 |
+
sentence-per-line sidecar file used by all downstream stages.
|
| 101 |
+
</li>
|
| 102 |
+
<li>
|
| 103 |
+
<strong>Boilerplate cleaning</strong> — <code>FileCleanProcessor</code> learns
|
| 104 |
+
site-specific boilerplate from a sample directory (lines appearing in ≥ 50 % of files)
|
| 105 |
+
and removes them alongside hardcoded patterns for HTML tags, navigation menus, URLs,
|
| 106 |
+
cookie banners, and more.
|
| 107 |
+
</li>
|
| 108 |
+
<li>
|
| 109 |
+
<strong>MinHash / LSH deduplication</strong> — <code>DeduplicationProcessor</code>
|
| 110 |
+
builds a MinHash signature index over the full existing corpus and detects
|
| 111 |
+
near-duplicate sentences in the new batch (Jaccard ≥ 0.90), writing a ranked TSV
|
| 112 |
+
report and optionally removing duplicates.
|
| 113 |
+
</li>
|
| 114 |
+
<li>
|
| 115 |
+
<strong>Per-sentence PII scoring</strong> — <code>PIIDetector</code> runs every
|
| 116 |
+
sentence through the Phileas engine (names, emails, phone numbers, IBANs, IP
|
| 117 |
+
addresses, etc.) and stores the proportion of flagged tokens as the
|
| 118 |
+
<code>PersonallyIdentifiableInformation</code> vector in metadata.
|
| 119 |
+
</li>
|
| 120 |
+
<li>
|
| 121 |
+
<strong>Per-sentence bias scoring</strong> — <code>BiasAnalyser</code> matches tokens
|
| 122 |
+
against <code>BiasLexicon</code> (3 787-entry Bulgarian Bias Dictionary v4) to detect
|
| 123 |
+
signal–evaluator pairs across five categories (gender, race/ethnicity, religion,
|
| 124 |
+
disability, appearance), storing the per-sentence coverage ratio as the
|
| 125 |
+
<code>BiasedInformation</code> vector in metadata.
|
| 126 |
+
</li>
|
| 127 |
+
</ul>
|
| 128 |
+
|
| 129 |
+
<p>
|
| 130 |
+
The full schema is enforced by <code>DocumentMetadata</code> (15 mandatory + 8 optional
|
| 131 |
+
fields) and the complete flow is managed by <code>IfGPTPipeline</code>, with
|
| 132 |
+
<code>IfGPTDatasetProcessor</code> as the main entry point.
|
| 133 |
+
</p>
|
| 134 |
+
|
| 135 |
+
<pre><code>source processors → sentence split → clean → deduplication → PII → bias → counts → final structuring</code></pre>
|
| 136 |
+
|
| 137 |
+
<h2>License</h2>
|
| 138 |
+
<p>Creative Commons Attribution 4.0 International (CC-BY-4.0)</p>
|
| 139 |
+
|
| 140 |
+
<hr>
|
| 141 |
+
|
| 142 |
+
<p class="footer">
|
| 143 |
+
This work is part of the project <strong>Infrastructure for Fine-tuning Pre-trained
|
| 144 |
+
Large Language Models</strong>, Grant Agreement No. ПВУ – 55 from 12.12.2024
|
| 145 |
+
/BG-RRP-2.017-0030-C01/.<br>
|
| 146 |
+
<a href="https://ifgpt.dcl.bas.bg/en/">https://ifgpt.dcl.bas.bg/en/</a>
|
| 147 |
+
</p>
|
| 148 |
+
|
| 149 |
+
</body>
|
| 150 |
+
</html>
|