Add the tally-groups subcommand settling results/groups.csv

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 22:38:41 +08:00
co-authored by Claude Fable 5
parent 7917d23d6e
commit 854bfe5c4b
8 changed files with 614 additions and 3 deletions
+7 -3
View File
@@ -131,9 +131,13 @@
- **三次執行**:同一份定義檔、同一份輸入檔,獨立執行
三次,歸檔並列(`runs/04-group/run1``run2``run3`)。
- **多數決**:一個(群,編碼)配對,三次執行中至少兩次
入選即屬該群;不在 101 碼詞彙表內的輸出項無效。計票由
確定性子命令 `tally-groups` 完成,定案分群寫入
`results/groups.csv`(欄位:群、編碼、票數)。
入選即屬該群;不在 101 碼詞彙表內的輸出項無效,每筆
丟棄印於標準錯誤。計票由確定性子命令 `tally-groups`
完成:`tally-groups <執行歸檔 1> <執行歸檔 2> <執行歸檔
3> <合法碼清單> <輸出 CSV>`,合法碼清單之產法同步驟 3。
定案分群寫入 `results/groups.csv`,欄位 `Group`
`Keyword``Votes`,列序先依群名、再依編碼,一律以
Unicode 碼位比較,換行為 CRLF。
## 女性力量候選集