feat: 수령 자서전 데이터 파이프라인과 맞춤 요약 추가

This commit is contained in:
HyeongBaeYang committed 2026-08-20 16:59:17 +09:00
1 parent 5386222f1b
commit 946e9e9474
17 files changed
+437 -48

No files matched your search

+6 -2
View File
@@ -199,8 +199,10 @@ python scripts/build_ai_training_dataset.py --xlsx episodes.xlsx --inspect
# ② 빌드
python scripts/build_ai_training_dataset.py \
--xlsx episodes.xlsx \
--text-column "에피소드 본문" --book-column "도서명" \
--text-column "에피소드 본문" --book-column "자서전 제목" \
--id-column id --group-column id --anonymize \
--ai-jsonl data/training/ai_samples.jsonl \
--ai-group-field source_group \
--out data/training/ai_dataset.jsonl
```
@@ -214,7 +216,7 @@ python scripts/build_ai_training_dataset.py \
분할 단위는 개별 텍스트가 아니라 **`source_group`** 입니다.
- human: `book:<도서명>` (도서 정보가 없으면 `sheet:<시트명>`)
- human: 수령 데이터는 `id`를 HMAC 가명화한 `author:<hash>`
- AI: `ai:<generator>` (또는 `--ai-group-field` 로 지정)
같은 책의 에피소드가 train 과 test 에 동시에 들어가면 모델이 문체가 아니라 **그
@@ -223,6 +225,8 @@ python scripts/build_ai_training_dataset.py \
분할은 해시 기반이라 결정적이며(`--seed`), 라벨별로 비율을 맞춥니다. 정규화 후
완전 중복 텍스트는 제거합니다(`recovered.csv` 에서 9,633행 중복이 나온 전례).
원문과 같은 소재 그룹에서 만든 AI 대조문은 `source_group`을 같게 넣어
원문-생성물 페어가 분할을 가로지르지 않게 합니다.
### 5.3 학습