Datasets:
Restructure technical report to ACL format, add Phase 0 gold eval methodology
Browse files- Rewrite TECHNICAL_REPORT_v1.1.md to ACL Long Paper format: Abstract,
Introduction, Related Work, Dataset, AL Framework, Experiments, Results,
Analysis, Conclusion, Limitations, Ethics Statement, References, Appendices
- Add Phase 0 gold evaluation set (500 random sentences, 250 dev + 250 test)
to PLAN_v1.1 and technical report, following AL evaluation best practices
- Add BKTreebank (Nguyen 2018) to Related Work with treebank comparison table
- Add comprehensive Limitations section (8 items) and Ethics Statement
- Add 7 new citations: VLSP 2013, VnCoreNLP, Zhang 2022 survey, Bouma 2017,
Farquhar 2021, Luth 2023, Marcus 1993, BKTreebank
- Add AL Cycle 1 report, gold annotations, references, and research materials
- Update annotation tooling and regenerate dataset with fix pipeline
- AL_CYCLE1_REPORT.md +357 -0
- PLAN_v1.1.md +250 -50
- TECHNICAL_REPORT_v1.1.md +493 -384
- TECHNICAL_REPORT_v1.1_REVIEW.md +263 -0
- WS_FIX_REPORT.md +289 -181
- al_cycle0_ranked.tsv +0 -0
- al_cycle0_top500.tsv +0 -0
- al_cycle2_top200.tsv +201 -0
- gold_ws_cycle1.txt +1782 -0
- guidelines/01. Word Segmentation/Annotation Guideline v1.1.md +336 -0
- ls_export_cycle1.json +0 -0
- ls_import_cycle1.json +0 -0
- ls_import_cycle2.json +0 -0
- references/1998.conll.brants/paper.md +1260 -0
- references/2004.cl.hwa/paper.md +1954 -0
- references/2004.emnlp.baldridge/paper.md +767 -0
- references/2008.emnlp.settles/paper.md +1459 -0
- references/2016.acl.li/paper.md +1492 -0
- references/2017.udw.bouma/paper.md +798 -0
- references/2018.lrec.nguyen/data/dev +0 -0
- references/2018.lrec.nguyen/data/lexicon +0 -0
- references/2018.lrec.nguyen/data/test +0 -0
- references/2018.lrec.nguyen/data/train +0 -0
- references/2018.lrec.nguyen/paper.md +486 -0
- references/2018.naacl.nguyen/paper.md +589 -0
- references/2021.cl.demarneffe/paper.md +0 -0
- references/2021.naacl.shi/paper.md +1411 -0
- references/2022.emnlp.zhang/paper.md +0 -0
- references/2023.emnlp.zhang/paper.md +2665 -0
- research/active_learning/AL_CLAIMS_VERIFICATION.md +596 -0
- research/mwe_analysis/id_gsd-ud-dev.conllu +0 -0
- research/mwe_analysis/ja_gsd-ud-dev.conllu +0 -0
- research/mwe_analysis/km_ktb-ud-test.conllu +1 -0
- research/mwe_analysis/ko_gsd-ud-dev.conllu +0 -0
- research/mwe_analysis/th_pud-ud-test.conllu +0 -0
- research/mwe_analysis/vi_vtb-ud-dev.conllu +0 -0
- research/mwe_analysis/zh_gsd-ud-dev.conllu +0 -0
- src/al_score_ws.py +1 -1
- src/build_dict_plugin.py +0 -403
- src/dict_data.json +0 -0
- src/dict_plugin.html +0 -0
- src/dict_plugin.js +0 -225
- src/dict_search.html +0 -0
- src/eval_ws_gold.py +409 -0
- src/fetch_ws_sentences.py +10 -4
- src/fix_ws_errors.py +318 -11
- src/ls_config_ws.xml +0 -2
- src/ls_import_ws.py +16 -90
- src/merge_gold_silver.py +140 -0
- udd-ws-v1.1-dev.conllu +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AL Cycle 1 Report — Word Segmentation
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
| Item | Value |
|
| 6 |
+
|------|-------|
|
| 7 |
+
| Cycle | 1 (first gold annotation round) |
|
| 8 |
+
| Source | Top 100 highest-uncertainty sentences from AL Cycle 0 |
|
| 9 |
+
| Annotation tool | Label Studio (project 4, labels.ankiren.com) |
|
| 10 |
+
| Annotator | 1 person |
|
| 11 |
+
| Tasks imported | 100 |
|
| 12 |
+
| Tasks annotated | 95 (5 not annotated) |
|
| 13 |
+
| Tasks exported | 92 (3 skipped due to annotation gaps) |
|
| 14 |
+
| Output | `gold_ws_cycle1.txt` (BIO format), `ls_export_cycle1.json` |
|
| 15 |
+
|
| 16 |
+
## Sentence Selection
|
| 17 |
+
|
| 18 |
+
Sentences were selected by CRF token marginal uncertainty scoring from AL Cycle 0:
|
| 19 |
+
- CRF model: `tree-1/models/word_segmentation/udd_ws_v1_1-20260212_065135/`
|
| 20 |
+
- Scored 20,000 sentences (dev + test splits)
|
| 21 |
+
- Top 100 by composite score: mean uncertainty × (1 + boundary_weight) + 0.01 × n_long_tokens
|
| 22 |
+
- These represent the **hardest** sentences for the CRF, not a random sample
|
| 23 |
+
|
| 24 |
+
## Domain Distribution
|
| 25 |
+
|
| 26 |
+
| Domain | Count | % |
|
| 27 |
+
|--------|------:|---|
|
| 28 |
+
| Fiction | 28 | 30.4% |
|
| 29 |
+
| Wikipedia | 28 | 30.4% |
|
| 30 |
+
| Non-fiction | 24 | 26.1% |
|
| 31 |
+
| News | 8 | 8.7% |
|
| 32 |
+
| Legal | 4 | 4.3% |
|
| 33 |
+
|
| 34 |
+
Fiction and Wikipedia are overrepresented because they contain more difficult segmentation cases (literary names, Hán-Việt compounds, foreign names).
|
| 35 |
+
|
| 36 |
+
## Skipped Sentences
|
| 37 |
+
|
| 38 |
+
3 sentences skipped due to annotation gaps (syllables left untagged in Label Studio):
|
| 39 |
+
|
| 40 |
+
| sent_id | Issue |
|
| 41 |
+
|---------|-------|
|
| 42 |
+
| `uvn-3488` | Foreign product names (Derma peel One) left untagged |
|
| 43 |
+
| `uvb-n-10657` | Single syllable "là" left untagged |
|
| 44 |
+
| `uvb-f-10312` | Punctuation "»" left untagged |
|
| 45 |
+
|
| 46 |
+
## CRF Silver vs Gold Evaluation
|
| 47 |
+
|
| 48 |
+
### Overall Metrics (92 sentences, 1,506 syllables)
|
| 49 |
+
|
| 50 |
+
| Metric | Score |
|
| 51 |
+
|--------|-------|
|
| 52 |
+
| Syllable Accuracy | **0.8665** (1,305/1,506) |
|
| 53 |
+
| Word Precision | 0.7934 |
|
| 54 |
+
| Word Recall | 0.7685 |
|
| 55 |
+
| Word F1 | **0.7808** |
|
| 56 |
+
|
| 57 |
+
**Context**: The CRF baseline on silver data achieves Word F1 = 0.9834. The much lower F1 = 0.7808 on these 92 gold sentences confirms that AL successfully selected the most error-prone sentences.
|
| 58 |
+
|
| 59 |
+
### Boundary Change Statistics
|
| 60 |
+
|
| 61 |
+
| Change | Count | Meaning |
|
| 62 |
+
|--------|------:|---------|
|
| 63 |
+
| B→I | 83 | Silver has B (word start), gold has I (continuation) → silver over-splits |
|
| 64 |
+
| I→B | 118 | Silver has I (continuation), gold has B (word start) → silver over-merges |
|
| 65 |
+
| **Total changes** | **201** | 13.3% of all syllables have wrong boundary tags |
|
| 66 |
+
|
| 67 |
+
### Per-Domain Breakdown
|
| 68 |
+
|
| 69 |
+
| Domain | N | Syllables | Syl Acc | Precision | Recall | F1 |
|
| 70 |
+
|--------|---|-----------|---------|-----------|--------|-----|
|
| 71 |
+
| News | 8 | 213 | 0.9061 | 0.8485 | 0.8296 | **0.8390** |
|
| 72 |
+
| Non-fiction | 24 | 414 | 0.8889 | 0.8235 | 0.8235 | 0.8235 |
|
| 73 |
+
| Fiction | 28 | 412 | 0.8786 | 0.8264 | 0.8041 | 0.8151 |
|
| 74 |
+
| Legal | 4 | 81 | 0.8395 | 0.7347 | 0.6923 | 0.7129 |
|
| 75 |
+
| Wikipedia | 28 | 386 | 0.8317 | 0.7289 | 0.6868 | **0.7072** |
|
| 76 |
+
|
| 77 |
+
**Wikipedia is the hardest domain** (F1 = 0.707) due to Hán-Việt classical text, foreign names, and specialized terminology. Legal is also low (F1 = 0.713) but with only 4 sentences.
|
| 78 |
+
|
| 79 |
+
## Error Analysis
|
| 80 |
+
|
| 81 |
+
75 out of 92 sentences (81.5%) have at least one segmentation difference between silver and gold.
|
| 82 |
+
|
| 83 |
+
### Error Type Summary
|
| 84 |
+
|
| 85 |
+
| Error Type | Count | Description |
|
| 86 |
+
|------------|------:|-------------|
|
| 87 |
+
| Over-merge | 134 | CRF merged syllables across word boundaries |
|
| 88 |
+
| Over-split | 119 | CRF split syllables that belong to one word |
|
| 89 |
+
| **Total** | **253** | |
|
| 90 |
+
|
| 91 |
+
Over-merge is slightly more common (53%) than over-split (47%).
|
| 92 |
+
|
| 93 |
+
### Error Category Taxonomy
|
| 94 |
+
|
| 95 |
+
#### 1. Cross-boundary proper name merge (most frequent)
|
| 96 |
+
|
| 97 |
+
The CRF frequently merges the last syllable of a proper name with the next word:
|
| 98 |
+
|
| 99 |
+
| Silver (wrong) | Gold (correct) | Domain |
|
| 100 |
+
|----------------|----------------|--------|
|
| 101 |
+
| `Nguyễn_Bính_Mưa_dầm` | `Nguyễn_Bính` \| `Mưa` \| `dầm` | fiction |
|
| 102 |
+
| `Chu_Du_tính_tình` | `Chu_Du` \| `tính_tình` | non-fiction |
|
| 103 |
+
| `Tăng_Hoàng_Vinh_giữ` | `Tăng_Hoàng_Vinh` \| `giữ` | news |
|
| 104 |
+
| `Khổng_Dĩnh_Đạt_thời` | `Khổng_Dĩnh_Đạt` \| `thời` | wikipedia |
|
| 105 |
+
| `Hà_Tiên_trấn` | `Hà_Tiên` \| `trấn` | wikipedia |
|
| 106 |
+
| `Quỳnh_nghiến` | `Quỳnh` \| `nghiến_răng` | fiction |
|
| 107 |
+
| `Khải_nheo` | `Khải` \| `nheo_nheo` | fiction |
|
| 108 |
+
|
| 109 |
+
**Root cause**: CRF sees proper name continuation (I-W) and extends it to the next syllable, especially when the next word starts with a common syllable.
|
| 110 |
+
|
| 111 |
+
#### 2. Hán-Việt classical text boundary errors (Wikipedia-specific)
|
| 112 |
+
|
| 113 |
+
Many Wikipedia sentences contain classical Chinese quotations where the CRF fails completely:
|
| 114 |
+
|
| 115 |
+
| Silver (wrong) | Gold (correct) | sent_id |
|
| 116 |
+
|----------------|----------------|---------|
|
| 117 |
+
| `thiên_địa_lưu` | `thiên_địa` \| `lưu` | uvw-11634 |
|
| 118 |
+
| `tất_hữu_tụng` | `tất` \| `hữu` \| `tụng` | uvw-379 |
|
| 119 |
+
| `chi_dĩ_tụng` | `chi` \| `dĩ` \| `tụng` | uvw-379 |
|
| 120 |
+
| `ẩm_thực_chi` | `ẩm_thực` \| `chi` | uvw-379 |
|
| 121 |
+
| `Đinh_Lê_nhị_gia` | `Đinh_Lê` \| `nhị_gia` | uvw-4040 |
|
| 122 |
+
|
| 123 |
+
**Root cause**: Classical Hán-Việt text uses mostly single-syllable words, but the CRF trained on modern Vietnamese aggressively merges adjacent syllables.
|
| 124 |
+
|
| 125 |
+
#### 3. Foreign word/abbreviation merges
|
| 126 |
+
|
| 127 |
+
| Silver (wrong) | Gold (correct) | sent_id |
|
| 128 |
+
|----------------|----------------|---------|
|
| 129 |
+
| `I_LOVE` | `I` \| `LOVE` | uvb-f-16922 |
|
| 130 |
+
| `BST_Love` | `BST` \| `Love` | uvn-16886 |
|
| 131 |
+
| `DNA_replication` | `DNA` \| `replication` | uvw-16915 |
|
| 132 |
+
| `Frankael-Zermelo_Tiên` | `Frankael-Zermelo` \| `Tiên_đề` | uvw-14316 |
|
| 133 |
+
|
| 134 |
+
**Root cause**: CRF treats consecutive Latin-script tokens as one word.
|
| 135 |
+
|
| 136 |
+
#### 4. Compound word boundary shifts
|
| 137 |
+
|
| 138 |
+
CRF merges across true word boundaries, creating invalid compounds:
|
| 139 |
+
|
| 140 |
+
| Silver (wrong) | Gold (correct) | Type |
|
| 141 |
+
|----------------|----------------|------|
|
| 142 |
+
| `lợi_nhuận_tích` + `lũy` | `lợi_nhuận` + `tích_lũy` | boundary shift |
|
| 143 |
+
| `niên_đại_mẫu` + `vật` | `niên_đại` + `mẫu_vật` | boundary shift |
|
| 144 |
+
| `phóng_vệ_tinh` | `phóng` + `vệ_tinh` | over-merge |
|
| 145 |
+
| `quy_phạm_pháp_luật` | `quy_phạm` + `pháp_luật` | over-merge (legal) |
|
| 146 |
+
| `trình_bày_văn_bản` | `trình_bày` + `văn_bản` | over-merge (legal) |
|
| 147 |
+
|
| 148 |
+
#### 5. Common compound under-merges (over-splits)
|
| 149 |
+
|
| 150 |
+
CRF fails to merge well-known compound words:
|
| 151 |
+
|
| 152 |
+
| Silver (wrong) | Gold (correct) |
|
| 153 |
+
|----------------|----------------|
|
| 154 |
+
| `Ủy` \| `ban` | `Ủy_ban` (committee) |
|
| 155 |
+
| `lính` \| `thú` | `lính_thú` (soldier) |
|
| 156 |
+
| `mu` \| `rùa` | `mu_rùa` (turtle shell) |
|
| 157 |
+
| `trêu` \| `ghẹo` | `trêu_ghẹo` (tease) |
|
| 158 |
+
| `sương` \| `mai` | `sương_mai` (morning dew) |
|
| 159 |
+
| `mái` \| `nhà` | `mái_nhà` (roof) |
|
| 160 |
+
| `đầm` \| `đuôi` \| `cá` | `đầm_đuôi_cá` (fishtail dress) |
|
| 161 |
+
| `cha` \| `truyền_con` \| `nối` | `cha_truyền_con_nối` (hereditary) |
|
| 162 |
+
| `siêu` \| `máy_tính` | `siêu_máy_tính` (supercomputer) |
|
| 163 |
+
| `lượng` \| `tử_lai` | `lượng_tử` (quantum) + `lai` |
|
| 164 |
+
|
| 165 |
+
#### 6. Proper name under-merges
|
| 166 |
+
|
| 167 |
+
| Silver (wrong) | Gold (correct) |
|
| 168 |
+
|----------------|----------------|
|
| 169 |
+
| `Trương_Hán` \| `Siêu` | `Trương_Hán_Siêu` |
|
| 170 |
+
| `Nữ_minh` \| `tinh` | `Nữ_minh_tinh` |
|
| 171 |
+
| `Nicolas` \| `Fatio_de` \| `Duillier` | `Nicolas_Fatio_de_Duillier` |
|
| 172 |
+
| `Nigeria_Ibrahim` \| `Baré_Maïnassara` | `Nigeria_Ibrahim_Baré_Maïnassara` |
|
| 173 |
+
| `World_Music` \| `Awards` | `World_Music_Awards` |
|
| 174 |
+
|
| 175 |
+
## All Sentence-Level Differences
|
| 176 |
+
|
| 177 |
+
### Fiction (20/28 sentences with differences)
|
| 178 |
+
|
| 179 |
+
**uvb-f-10494**: `dạo_khúc` → `dạo` | `khúc`
|
| 180 |
+
|
| 181 |
+
**uvb-f-1078**: `Mặt_Kỳ` + `Nam_xụ` → `Mặt` | `Kỳ_Nam` | `xụ`
|
| 182 |
+
|
| 183 |
+
**uvb-f-11528**: `thần_linh_giữ` → `thần_linh` | `giữ`
|
| 184 |
+
|
| 185 |
+
**uvb-f-116**: `lính` | `thú` → `lính_thú`
|
| 186 |
+
|
| 187 |
+
**uvb-f-12571**: `nỡ_tẩy` + `chay` → `nỡ` | `tẩy_chay`
|
| 188 |
+
|
| 189 |
+
**uvb-f-14791**: `như` + `điên_sợ` → `như_điên` | `sợ`
|
| 190 |
+
|
| 191 |
+
**uvb-f-16030**: `Quỳnh_nghiến` + `răng` → `Quỳnh` | `nghiến_răng`
|
| 192 |
+
|
| 193 |
+
**uvb-f-16202**: `Nữ_minh` + `tinh_khịt` + `mũi` → `Nữ_minh_tinh` | `khịt_mũi`
|
| 194 |
+
|
| 195 |
+
**uvb-f-16922**: `Ahern_PS` + `I_LOVE` + `YOU_Chương` → `Ahern` | `PS` | `I` | `LOVE` | `YOU` | `Chương`
|
| 196 |
+
|
| 197 |
+
**uvb-f-17901**: `gia_nhân_túc_trực` + `chăn` | `lợn` → `gia_nhân` | `túc_trực` | `chăn_lợn`
|
| 198 |
+
|
| 199 |
+
**uvb-f-18098**: `Khải_nheo` + `nheo` → `Khải` | `nheo_nheo`
|
| 200 |
+
|
| 201 |
+
**uvb-f-2195**: `người` | `thương` + `Bờ` | `xe` | `nước_tạc` + `chi_bao` → `người_thương` | `Bờ_xe_nước` | `tạc` | `chi` | `bao`
|
| 202 |
+
|
| 203 |
+
**uvb-f-3070**: `Xin` | `chào_sĩ_quan` → `Xin_chào` | `sĩ_quan`
|
| 204 |
+
|
| 205 |
+
**uvb-f-6015**: `Liên_xua` | `tay` + `nói` | `gở` → `Liên` | `xua_tay` | `nói_gở`
|
| 206 |
+
|
| 207 |
+
**uvb-f-6292**: `Trương_Hán` | `Siêu_bưng` + `khay` | `trà` + `lên_án` → `Trương_Hán_Siêu` | `bưng` | `khay_trà` | `lên` | `án`
|
| 208 |
+
|
| 209 |
+
**uvb-f-6893**: `Nguyễn_Bính_Mưa_dầm` → `Nguyễn_Bính` | `Mưa` | `dầm`
|
| 210 |
+
|
| 211 |
+
**uvb-f-7016**: `Nguyễn_Bính_Công` + `diều_mướn` → `Nguyễn_Bính` | `Công` | `diều` | `mướn`
|
| 212 |
+
|
| 213 |
+
**uvb-f-7435**: `Mặt_San` + `y_dơn` | `dớt` → `Mặt` | `San` | `y` | `dơn_dớt`
|
| 214 |
+
|
| 215 |
+
**uvb-f-8734**: `có_học` + `bơi` | `chó` → `có` | `học` | `bơi_chó`
|
| 216 |
+
|
| 217 |
+
**uvb-f-9174**: `tạo_nghiệp_lành` → `tạo` | `nghiệp_lành`
|
| 218 |
+
|
| 219 |
+
### Non-fiction (18/24 sentences with differences)
|
| 220 |
+
|
| 221 |
+
**uvb-n-10024**: `Sống_biến` + `Lạnh_biến` → `Sống` | `biến` | `Lạnh` | `biến`
|
| 222 |
+
|
| 223 |
+
**uvb-n-11587**: `phải_biết` → `phải` | `biết`
|
| 224 |
+
|
| 225 |
+
**uvb-n-11976**: `Lệ` | `thủy_trình` → `Lệ_thủy` | `trình`
|
| 226 |
+
|
| 227 |
+
**uvb-n-12321**: `sương` | `mai_phớt` + `mái` | `nhà` → `sương_mai` | `phớt` | `mái_nhà`
|
| 228 |
+
|
| 229 |
+
**uvb-n-13233**: `lạnh_đặc` → `lạnh` | `đặc`
|
| 230 |
+
|
| 231 |
+
**uvb-n-13288**: `I._Lương` + `Huệ_vương` → `I.` | `Lương_Huệ_vương`
|
| 232 |
+
|
| 233 |
+
**uvb-n-16553**: `đương_ngủ` | `ngày` → `đương` | `ngủ_ngày`
|
| 234 |
+
|
| 235 |
+
**uvb-n-18226**: `Ngữ` | `đoạn` + `Khái_niệm_ngữ` | `đoạn` → `Ngữ_đoạn` | `Khái_niệm` | `ngữ_đoạn`
|
| 236 |
+
|
| 237 |
+
**uvb-n-18736**: `Lục` | `Giả_đáp` → `Lục_Giả` | `đáp`
|
| 238 |
+
|
| 239 |
+
**uvb-n-19309**: `Lạc` | `Hồng_định` + `trêu` | `ghẹo` → `Lạc_Hồng` | `định` | `trêu_ghẹo`
|
| 240 |
+
|
| 241 |
+
**uvb-n-2201**: `quyết_phục_thù` → `quyết` | `phục_thù`
|
| 242 |
+
|
| 243 |
+
**uvb-n-3769**: `Chu_Du_tính_tình` → `Chu_Du` | `tính_tình`
|
| 244 |
+
|
| 245 |
+
**uvb-n-3847**: `răng` | `nanh_sắc` | `nhọn` + `triết_gia_lùi` → `răng_nanh` | `sắc_nhọn` | `triết_gia` | `lùi`
|
| 246 |
+
|
| 247 |
+
**uvb-n-3874**: `thành` | `thực_cầu` | `mong` + `cao_minh_phủ` | `chính` → `thành_thực` | `cầu_mong` | `cao_minh` | `phủ_chính`
|
| 248 |
+
|
| 249 |
+
**uvb-n-3968**: `đồng` | `tự` + `làm_âm` → `đồng_tự` | `làm` | `âm`
|
| 250 |
+
|
| 251 |
+
**uvb-n-511**: `Ủy` | `ban` + `Hành` | `chánh` → `Ủy_ban` | `Hành_chánh`
|
| 252 |
+
|
| 253 |
+
**uvb-n-6010**: `chơi_trò` → `chơi` | `trò`
|
| 254 |
+
|
| 255 |
+
**uvb-n-7402**: `mu` | `rùa` → `mu_rùa`
|
| 256 |
+
|
| 257 |
+
**uvb-n-7669**: `Cung` | `Khôn_Thái` + `Cần_Thánh_chỗ` → `Cung_Khôn_Thái` | `Cần_Thánh` | `chỗ`
|
| 258 |
+
|
| 259 |
+
### Wikipedia (22/28 sentences with differences)
|
| 260 |
+
|
| 261 |
+
**uvw-10198**: `Hữu_thưởng` + `vu_đại_quốc` → `Hữu` | `thưởng` | `vu` | `đại_quốc`
|
| 262 |
+
|
| 263 |
+
**uvw-11634**: `Thệ_tâm` + `thiên_địa_lưu` + `xỉ_giang` + `sơn_thổ` + `thiệt_hồng` → `Thệ` | `tâm` | `thiên_địa` | `lưu` | `xỉ` | `giang_sơn` | `thổ` | `thiệt` | `hồng`
|
| 264 |
+
|
| 265 |
+
**uvw-13194**: `Quân_xướng` + `thần_họa` → `Quân` | `xướng` | `thần` | `họa`
|
| 266 |
+
|
| 267 |
+
**uvw-13430**: `Đường` | `thẳng` → `Đường_thẳng`
|
| 268 |
+
|
| 269 |
+
**uvw-14316**: `Hệ_tiên` | `đề` (×2) + `đề_số` | `học` + `Frankael-Zermelo_Tiên` | `đề_chọn` + `Tiên` | `đề` + `tiên` | `đề` → `Hệ_tiên_đề` (×2) | `số_học` | `Frankael-Zermelo` | `Tiên_đề` (×2) | `chọn` | `tiên_đề`
|
| 270 |
+
|
| 271 |
+
**uvw-1451**: `Quan_Âm_Diệu_Thiện` → `Quan_Âm` | `Diệu_Thiện`
|
| 272 |
+
|
| 273 |
+
**uvw-15121**: `Nhà_Habsburg` + `bắt_đầu_tích` | `lũy` + `cha` | `truyền_con` | `nối` → `Nhà` | `Habsburg` | `bắt_đầu` | `tích_lũy` | `cha_truyền_con_nối`
|
| 274 |
+
|
| 275 |
+
**uvw-15306**: `Tống_tiêu_diệt` → `Tống` | `tiêu_diệt`
|
| 276 |
+
|
| 277 |
+
**uvw-15392**: `Hải_quốc_văn_kiến` | `lục_》` → `Hải_quốc_văn_kiến_lục` | `》`
|
| 278 |
+
|
| 279 |
+
**uvw-15619**: `Long` | `Hồ_dinh_đổi` + `Hà_Tiên_trấn` → `Long_Hồ` | `dinh` | `đổi` | `Hà_Tiên` | `trấn`
|
| 280 |
+
|
| 281 |
+
**uvw-16915**: `DNA_replication` → `DNA` | `replication`
|
| 282 |
+
|
| 283 |
+
**uvw-17218**: `Điểm_nóng` | `chảy` → `Điểm` | `nóng_chảy`
|
| 284 |
+
|
| 285 |
+
**uvw-17235**: `Khổng_Dĩnh` | `Đạt_thời` + `Hoa_Hạ_vi` → `Khổng_Dĩnh_Đạt` | `thời` | `Hoa_Hạ` | `vi`
|
| 286 |
+
|
| 287 |
+
**uvw-18245**: `ngăn_ắc` + `quy_ổn_định` → `ngăn` | `ắc_quy` | `ổn_định`
|
| 288 |
+
|
| 289 |
+
**uvw-19010**: `nhà_toán_học` + `Nicolas` | `Fatio_de` | `Duillier` → `nhà` | `toán_học` | `Nicolas_Fatio_de_Duillier`
|
| 290 |
+
|
| 291 |
+
**uvw-2178**: `Đồng_nguyên` + `chất_mềm` + `đồng_tươi` → `Đồng` | `nguyên_chất` | `mềm` | `đồng` | `tươi`
|
| 292 |
+
|
| 293 |
+
**uvw-3214**: `Thiên_địa_hòa` | `xướng` + `chi_tượng` + `giao` | `hòa` → `Thiên_địa` | `hòa_xướng` | `chi` | `tượng` | `giao_hòa`
|
| 294 |
+
|
| 295 |
+
**uvw-379**: `Phục` | `Hy_ghi` + `ẩm_thực_chi` + `tất_hữu_tụng` + `cố_thụ` + `chi_dĩ_tụng` → `Phục_Hy` | `ghi` | `ẩm_thực` | `chi` (×2) | `tất` | `hữu` | `tụng` (×2) | `cố` | `thụ` | `dĩ`
|
| 296 |
+
|
| 297 |
+
**uvw-4040**: `Đinh_Lê_nhị_gia` + `võng_đạo` + `an_quyết` + `đại_phất` | `thế` + `toán` | `số` → `Đinh_Lê` | `nhị_gia` | `võng` | `đạo` | `an` | `quyết` | `thế_đại` | `phất` | `toán_số`
|
| 298 |
+
|
| 299 |
+
**uvw-415**: `Chỉ` | `dã` → `Chỉ_dã`
|
| 300 |
+
|
| 301 |
+
**uvw-4428**: `Nhu_vu` + `trinh_cát` → `Nhu` | `vu` | `trinh` | `cát`
|
| 302 |
+
|
| 303 |
+
**uvw-5791**: `Kỳ_địa` + `quảng_nhi` + `quyết_thổ` + `cao_nhi` + `sảng` | `khải` → `Kỳ` | `địa` | `quảng` | `nhi` (×2) | `quyết` | `thổ` | `cao` | `sảng_khải`
|
| 304 |
+
|
| 305 |
+
**uvw-6347**: `miệt_hôn_điếm` + `chi_khốn` + `chi_phong` → `miệt` | `hôn_điếm` | `chi` (×2) | `khốn` | `phong`
|
| 306 |
+
|
| 307 |
+
**uvw-7555**: `Quân_Mỹ` → `Quân` | `Mỹ`
|
| 308 |
+
|
| 309 |
+
**uvw-8056**: `Nigeria_Ibrahim` | `Baré_Maïnassara` → `Nigeria_Ibrahim_Baré_Maïnassara`
|
| 310 |
+
|
| 311 |
+
**uvw-8082**: `Grand` | `Prix_Award` + `MTV_Video` | `Music` | `Awards_Japan` + `World_Music` | `Awards` + `Japan_Gold` | `Disc_Award` → `Grand_Prix_Award` | `MTV_Video_Music_Awards_Japan` | `World_Music_Awards` | `Japan_Gold_Disc_Award`
|
| 312 |
+
|
| 313 |
+
### News (7/8 sentences with differences)
|
| 314 |
+
|
| 315 |
+
**uvn-16886**: `đầm` | `đuôi` | `cá` + `thân` | `áo` + `BST_Love` → `đầm_đuôi_cá` | `thân_áo` | `BST` | `Love`
|
| 316 |
+
|
| 317 |
+
**uvn-18693**: `niên_đại_mẫu` | `vật` → `niên_đại` | `mẫu_vật`
|
| 318 |
+
|
| 319 |
+
**uvn-18725**: `phóng_vệ_tinh` → `phóng` | `vệ_tinh`
|
| 320 |
+
|
| 321 |
+
**uvn-19673**: `Tăng_Hoàng_Vinh_giữ` → `Tăng_Hoàng_Vinh` | `giữ`
|
| 322 |
+
|
| 323 |
+
**uvn-4740**: `lợi_nhuận_tích` | `lũy` → `lợi_nhuận` | `tích_lũy`
|
| 324 |
+
|
| 325 |
+
**uvn-6121**: `of_refusing` + `Matt_really` + `new_leaf` + `and_has` → `of` | `refusing` | `Matt` | `really` | `new` | `leaf` | `and` | `has`
|
| 326 |
+
|
| 327 |
+
**uvn-964**: `siêu` | `máy_tính` + `lượng` | `tử_lai` → `siêu_máy_tính` | `lượng_tử` | `lai`
|
| 328 |
+
|
| 329 |
+
### Legal (3/4 sentences with differences)
|
| 330 |
+
|
| 331 |
+
**vlc-10445**: `mi���n_thị_thực` → `miễn` | `thị_thực`
|
| 332 |
+
|
| 333 |
+
**vlc-6220**: `Ủy` | `ban_thường_vụ` + `trình_bày_văn_bản` + `quy_phạm_pháp_luật` + `Chủ_tịch` | `nước` → `Ủy_ban` | `thường_vụ` | `trình_bày` | `văn_bản` | `quy_phạm` | `pháp_luật` | `Chủ_tịch_nước`
|
| 334 |
+
|
| 335 |
+
**vlc-7243**: `phong_quân` (×2) + `hàm_sĩ_quan` (×2) + `tại` | `ngũ` → `phong` (×2) | `quân_hàm` (×2) | `sĩ_quan` (×2) | `tại_ngũ`
|
| 336 |
+
|
| 337 |
+
## Key Takeaways
|
| 338 |
+
|
| 339 |
+
1. **AL selection works**: The 92 gold sentences have Word F1 = 0.78, much lower than the 0.98 silver baseline, confirming that uncertainty scoring correctly identifies hard cases.
|
| 340 |
+
|
| 341 |
+
2. **Cross-boundary merge is the #1 error**: CRF extends proper name spans into the next word, creating invalid compounds like `Nguyễn_Bính_Mưa_dầm`.
|
| 342 |
+
|
| 343 |
+
3. **Wikipedia is hardest**: F1 = 0.707, driven by Hán-Việt classical text (single-syllable words mismerged) and foreign names.
|
| 344 |
+
|
| 345 |
+
4. **Over-merge slightly > over-split**: 134 vs 119 errors. The CRF has a slight bias toward merging.
|
| 346 |
+
|
| 347 |
+
5. **Legal domain has systematic issues**: 4-syllable compound over-merges (`quy_phạm_pháp_luật`, `trình_bày_văn_bản`) and boundary shifts on `quân_hàm`/`sĩ_quan`.
|
| 348 |
+
|
| 349 |
+
6. **Foreign text always over-merged**: English words (`I_LOVE`, `DNA_replication`, `new_leaf`) are treated as Vietnamese compounds.
|
| 350 |
+
|
| 351 |
+
## Recommendations for Cycle 2
|
| 352 |
+
|
| 353 |
+
1. **Add proper name boundary features** to CRF: capitalization patterns, known name lists
|
| 354 |
+
2. **Add foreign word detection**: Latin-script tokens should default to single-word segmentation
|
| 355 |
+
3. **Increase legal domain sampling**: Only 4 sentences in Cycle 1, need more legal-specific gold data
|
| 356 |
+
4. **Classical Hán-Việt**: Consider special handling or separate model for classical text passages
|
| 357 |
+
5. **Retrain CRF** with the 92 gold corrections mixed into training data, then re-score remaining 19,900 sentences for Cycle 2 selection
|
|
@@ -4,7 +4,8 @@
|
|
| 4 |
|
| 5 |
1. **Dataset**: 100K-sentence multi-domain WS dataset (BIO format) for CRF training
|
| 6 |
2. **Guidelines**: Vietnamese annotation guidelines for WS, POS, DP
|
| 7 |
-
3. **Gold
|
|
|
|
| 8 |
|
| 9 |
## Status
|
| 10 |
|
|
@@ -14,25 +15,86 @@
|
|
| 14 |
| 2 | Build BIO dataset + stratified split | Done | `udd-ws-v1.1-{train,dev,test}.txt` |
|
| 15 |
| 3 | WS diagnostic checker (7 rules) | Done | `src/check_ws_errors.py`, `WS_CHECK_REPORT.md` |
|
| 16 |
| 4 | WS annotation guidelines | Done | `guidelines/01. Word Segmentation/` |
|
| 17 |
-
| 5 | WS error fix pipeline | Done | `src/fix_ws_errors.py`, `WS_FIX_REPORT.md` |
|
| 18 |
-
| 5a | — Pass 1: Cross-boundary splits (
|
| 19 |
-
| 5b | — Pass 1.5: Long token splits (
|
| 20 |
-
| 5c | — Pass 2: Compound merges (
|
| 21 |
-
| 5d | — Pass
|
|
|
|
|
|
|
| 22 |
| 6 | Apply fixes + regenerate CoNLL-U | Done | `WS_FIX_REPORT.md` |
|
| 23 |
| 7 | Re-run checker post-fix | Done | `WS_CHECK_REPORT.md` (updated) |
|
| 24 |
| 8 | Sentence selection guidelines | Done | `guidelines/00. Sentence Selection/` |
|
| 25 |
| 9 | AL literature survey (35 papers) | Done | `active_learning/references/` |
|
| 26 |
-
| 10 | Train CRF baseline (80K silver) | Done | `tree-1/models/.../udd_ws_v1_1-
|
| 27 |
| 11 | AL Cycle 0: uncertainty scoring (20K sent) | Done | `al_cycle0_ranked.tsv`, `al_cycle0_top500.tsv` |
|
| 28 |
-
| 12 |
|
| 29 |
-
| 13 |
|
| 30 |
-
| 14 |
|
| 31 |
-
| 15 | AL Cycle
|
| 32 |
-
|
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
## Active Learning for Word Segmentation
|
| 38 |
|
|
@@ -42,75 +104,213 @@
|
|
| 42 |
|
| 43 |
**Query strategy**: CRF token marginal uncertainty — `u_i = 1 - max(P(B|x,i), P(I|x,i))`. Sentence score = mean uncertainty × (1 + boundary_weight) + 0.01 × n_long_tokens. Also prioritize sentences with known error patterns (4+ syllable tokens, high-uncertainty zones).
|
| 44 |
|
|
|
|
|
|
|
| 45 |
**Cycles**:
|
| 46 |
|
| 47 |
-
| Cycle | Sentences | Cumulative | Status | Focus |
|
| 48 |
-
|-------|----------:|-----------:|--------|-------|
|
| 49 |
-
| 0 |
|
| 50 |
-
|
|
| 51 |
-
|
|
| 52 |
-
|
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
**Annotation**: Correct BIO tags using NIIVTB 9-rule framework (`guidelines/01. Word Segmentation/`). Flag ambiguous cases for guideline revision. Est. 80 sent/day →
|
| 56 |
|
| 57 |
-
**Stopping**: <0.1% F1 improvement on
|
| 58 |
|
| 59 |
**Quality**: Re-annotate 5% blind every 200 sentences → target >95% self-consistency.
|
| 60 |
|
| 61 |
-
##
|
|
|
|
|
|
|
| 62 |
|
| 63 |
| Metric | Score |
|
| 64 |
|--------|-------|
|
| 65 |
-
| Syllable Accuracy | 0.
|
| 66 |
-
| Word F1 | **0.
|
| 67 |
-
| Word Precision | 0.
|
| 68 |
-
| Word Recall | 0.
|
| 69 |
|
| 70 |
-
Model: `tree-1/models/word_segmentation/udd_ws_v1_1-
|
| 71 |
Training: 80K silver sentences, pycrfsuite L-BFGS, c1=0.5, c2=0.001, 300 iterations.
|
| 72 |
|
| 73 |
**Uncertainty scoring** (20K dev+test sentences):
|
| 74 |
-
- Mean uncertainty: 0.
|
| 75 |
-
-
|
| 76 |
-
-
|
| 77 |
-
-
|
| 78 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
## Next Steps
|
| 81 |
|
| 82 |
-
1.
|
| 83 |
-
2.
|
| 84 |
-
3.
|
| 85 |
-
4.
|
|
|
|
| 86 |
|
| 87 |
## Timeline
|
| 88 |
|
| 89 |
```
|
| 90 |
-
Week: 1 2 3 4 5 6 7 8 9 10 11 12
|
| 91 |
-
+----+----+----+----+----+----+----+----+----+----+----+
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
Task
|
| 95 |
-
|
| 96 |
-
Task
|
| 97 |
-
|
|
|
|
|
|
|
| 98 |
Guide: *-------*-------*-------*-------*-------*
|
| 99 |
WS POS DP v0.1 DP v0.2 v1.0
|
| 100 |
```
|
| 101 |
|
| 102 |
-
Est. total: ~
|
| 103 |
|
| 104 |
## Related Documents
|
| 105 |
|
| 106 |
| Document | Content |
|
| 107 |
|----------|---------|
|
| 108 |
| `TECHNICAL_REPORT.md` | v1.0 technical report (10K UD treebank) |
|
| 109 |
-
| `
|
| 110 |
| `WS_CHECK_REPORT.md` | Diagnostic checker output (7 rules) |
|
| 111 |
-
| `WS_FIX_REPORT.md` | Fix pipeline output (
|
|
|
|
| 112 |
| `al_cycle0_ranked.tsv` | All 20K sentences ranked by uncertainty |
|
| 113 |
| `al_cycle0_top500.tsv` | Top 500 sentences for Cycle 1 annotation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
| `src/al_score_ws.py` | AL uncertainty scoring script |
|
|
|
|
|
|
|
|
|
|
| 115 |
| `guidelines/00. Sentence Selection/` | Sentence selection criteria |
|
| 116 |
| `guidelines/01. Word Segmentation/` | WS annotation guidelines (NIIVTB 9 rules) |
|
|
|
|
| 4 |
|
| 5 |
1. **Dataset**: 100K-sentence multi-domain WS dataset (BIO format) for CRF training
|
| 6 |
2. **Guidelines**: Vietnamese annotation guidelines for WS, POS, DP
|
| 7 |
+
3. **Gold evaluation set**: Fixed gold dev/test (500 sentences) before AL begins
|
| 8 |
+
4. **Gold annotation**: 2–5K gold sentences via active learning → in-domain LAS/UAS
|
| 9 |
|
| 10 |
## Status
|
| 11 |
|
|
|
|
| 15 |
| 2 | Build BIO dataset + stratified split | Done | `udd-ws-v1.1-{train,dev,test}.txt` |
|
| 16 |
| 3 | WS diagnostic checker (7 rules) | Done | `src/check_ws_errors.py`, `WS_CHECK_REPORT.md` |
|
| 17 |
| 4 | WS annotation guidelines | Done | `guidelines/01. Word Segmentation/` |
|
| 18 |
+
| 5 | WS error fix pipeline (7 passes) | Done | `src/fix_ws_errors.py`, `WS_FIX_REPORT.md` |
|
| 19 |
+
| 5a | — Pass 1: Cross-boundary splits (258) | Done | |
|
| 20 |
+
| 5b | — Pass 1.5: Long token splits (0) | Done | |
|
| 21 |
+
| 5c | — Pass 2: Compound merges (541, +25 from Cycle 1) | Done | |
|
| 22 |
+
| 5d | — Pass 2.5: Foreign word splits (5,375) | Done | |
|
| 23 |
+
| 5e | — Pass 2.75: Proper name boundary splits (816) | Done | |
|
| 24 |
+
| 5f | — Pass 3: BIO validation (0 errors) | Done | |
|
| 25 |
| 6 | Apply fixes + regenerate CoNLL-U | Done | `WS_FIX_REPORT.md` |
|
| 26 |
| 7 | Re-run checker post-fix | Done | `WS_CHECK_REPORT.md` (updated) |
|
| 27 |
| 8 | Sentence selection guidelines | Done | `guidelines/00. Sentence Selection/` |
|
| 28 |
| 9 | AL literature survey (35 papers) | Done | `active_learning/references/` |
|
| 29 |
+
| 10 | Train CRF baseline (80K silver) | Done | `tree-1/models/.../udd_ws_v1_1-20260212_065135/` |
|
| 30 |
| 11 | AL Cycle 0: uncertainty scoring (20K sent) | Done | `al_cycle0_ranked.tsv`, `al_cycle0_top500.tsv` |
|
| 31 |
+
| 12 | Label Studio annotation tooling | Done | `src/ls_import_ws.py`, `src/ls_export_ws.py`, `src/ls_config_ws.xml` |
|
| 32 |
+
| 13 | Dictionary plugin for annotation | Done | `src/build_dict_plugin.py`, `src/build_dict_search.py`, `src/dict_plugin.html` |
|
| 33 |
+
| 14 | Generate Cycle 1 import + LS import | Done | `ls_import_cycle1.json` → LS project 4 (100 tasks) |
|
| 34 |
+
| 15 | AL Cycle 1: gold WS annotation (100 sent) | Done | 95/100 annotated, 92 exported → `gold_ws_cycle1.txt` |
|
| 35 |
+
| 15a | — Export gold BIO from Label Studio | Done | `ls_export_cycle1.json` → `gold_ws_cycle1.txt` (92 sent) |
|
| 36 |
+
| 15b | — 3 sentences skipped (annotation gaps) | — | `uvn-3488`, `uvb-n-10657`, `uvb-f-10312` |
|
| 37 |
+
| 16 | AL Cycle 1: evaluate CRF on gold | Done | Word F1=0.7808 on 92 gold sentences |
|
| 38 |
+
| 16a | Post-Cycle 1: extend fix pipeline (3 new passes) | Done | Foreign splits, name boundary, +25 compounds |
|
| 39 |
+
| 16b | Post-Cycle 1: re-run fixes on 100K silver | Done | 6,990 total fixes applied |
|
| 40 |
+
| 16c | Post-Cycle 1: merge 92 gold into silver | Done | `src/merge_gold_silver.py`, 41 dev + 51 test replaced |
|
| 41 |
+
| 16d | Post-Cycle 1: retrain CRF | Done | `udd_ws_v1_1-20260213_034134/`, Silver F1=0.9842 |
|
| 42 |
+
| 16e | Post-Cycle 1: evaluate retrained CRF on gold | Done | Word F1=0.7988 (+0.018 from 0.7808) |
|
| 43 |
+
| 16f | Post-Cycle 1: re-score for Cycle 2 | Done | New top-500 ranked, mean score 0.0130 |
|
| 44 |
+
| **P0** | **Phase 0: Gold evaluation set (500 sentences)** | **Planned** | |
|
| 45 |
+
| P0a | — Random sample 500 sentences (100/domain) from pool | Planned | `gold_eval_sample.tsv` |
|
| 46 |
+
| P0b | — Annotate 500 gold WS in Label Studio | Planned | `gold_ws_eval.txt` |
|
| 47 |
+
| P0c | — Split 250 dev + 250 test, freeze | Planned | `gold_ws_eval_dev.txt`, `gold_ws_eval_test.txt` |
|
| 48 |
+
| P0d | — Eval baseline CRF on gold test (250 sent) | Planned | True baseline F1 on representative data |
|
| 49 |
+
| P0e | — Remove 500 eval sentences from AL candidate pool | Planned | Pool: 20K → 19.5K |
|
| 50 |
+
| 17 | AL Cycle 2: annotate (200 sent) | Planned | |
|
| 51 |
+
| 18 | AL Cycle 3: annotate (200 sent) | Planned | |
|
| 52 |
+
| 19 | AL Cycle 4: annotate (200 sent) | Planned | |
|
| 53 |
+
| 19a | AL Cycle 5: annotate (200 sent) | Planned | |
|
| 54 |
+
| 19b | AL Cycle 6: annotate (200 sent) | Planned | |
|
| 55 |
+
| 19c | AL Cycle 7: annotate (200 sent) | Planned | |
|
| 56 |
+
| 19d | AL Cycle 8: annotate (200 sent) | Planned | |
|
| 57 |
+
| 19e | AL Cycle 9: annotate (200 sent) | Planned | |
|
| 58 |
+
| 19f | AL Cycle 10: annotate (200 sent) | Planned | |
|
| 59 |
+
| 20 | POS annotation guidelines | Planned | `guidelines/02. POS Tagging/` |
|
| 60 |
+
| 21 | DP annotation guidelines | Planned | `guidelines/03. Dependency Parsing/` |
|
| 61 |
+
| 22 | Gold POS annotation (1K sentences) | Planned | AL Task 2 |
|
| 62 |
+
| 23 | Gold DP annotation (800–1K sentences) | Planned | AL Task 3 |
|
| 63 |
+
|
| 64 |
+
## Phase 0: Gold Evaluation Set
|
| 65 |
+
|
| 66 |
+
**Rationale**: The AL literature universally requires a **fixed, randomly-sampled gold evaluation set created before AL begins** (Zhang et al., EMNLP 2022; Shi et al., NAACL 2021; Settles & Craven, EMNLP 2008; Luth et al., NeurIPS 2023). Without this:
|
| 67 |
+
- No representative F1 baseline (uncertainty-selected sentences are biased)
|
| 68 |
+
- No valid learning curves across AL cycles
|
| 69 |
+
- No reliable stopping criteria
|
| 70 |
+
- Selection bias is undetectable
|
| 71 |
+
|
| 72 |
+
**Why Cycle 1's 92 gold sentences cannot serve as eval set:**
|
| 73 |
+
|
| 74 |
+
| Problem | Detail |
|
| 75 |
+
|---------|--------|
|
| 76 |
+
| Selection bias | Selected by **highest uncertainty**, not random → hardest cases only |
|
| 77 |
+
| Domain skew | Fiction 30%, Wikipedia 30%, Non-fiction 26%, News 9%, Legal 4% (should be 20% each) |
|
| 78 |
+
| Data leakage | Already merged into training data (41 dev + 51 test) |
|
| 79 |
+
| Unrepresentative F1 | 0.78 on these vs ~0.98 on silver — overstates error rate |
|
| 80 |
+
|
| 81 |
+
**Cycle 1's 92 gold sentences remain valuable as:**
|
| 82 |
+
- Training data supplement (already merged into silver — correct usage)
|
| 83 |
+
- Diagnostic set for error pattern analysis
|
| 84 |
+
- NOT as evaluation set for stopping criteria
|
| 85 |
+
|
| 86 |
+
**Phase 0 protocol:**
|
| 87 |
+
|
| 88 |
+
1. **Random sample**: Draw 500 sentences uniformly from the 20K dev+test pool, stratified by domain (100 per domain: legal, news, Wikipedia, fiction, non-fiction)
|
| 89 |
+
2. **Exclude from AL pool**: Remove these 500 from all future uncertainty scoring and AL selection
|
| 90 |
+
3. **Annotate**: Gold WS annotation in Label Studio using the same guidelines as Cycle 1
|
| 91 |
+
4. **Split**: 250 dev + 250 test (50 per domain in each split), random seed 42
|
| 92 |
+
5. **Freeze**: These sets are **never modified** during AL cycles — no merging into training, no re-annotation, no selection bias
|
| 93 |
+
6. **Baseline eval**: Evaluate current CRF on the 250 gold test sentences → this is the **true F1 baseline**
|
| 94 |
+
|
| 95 |
+
**Expected annotation time**: 500 sentences ÷ 80 sent/day = ~6 days
|
| 96 |
+
|
| 97 |
+
**Minimum size justification**: UD guidelines require ≥10K words per evaluation set. At ~26 syllables/sentence and ~20 words/sentence, 250 sentences ≈ 5,000 words per set. This is below the UD 10K threshold but sufficient for WS evaluation with reasonable confidence intervals. If budget allows, 400 dev + 400 test (800 total) would be ideal.
|
| 98 |
|
| 99 |
## Active Learning for Word Segmentation
|
| 100 |
|
|
|
|
| 104 |
|
| 105 |
**Query strategy**: CRF token marginal uncertainty — `u_i = 1 - max(P(B|x,i), P(I|x,i))`. Sentence score = mean uncertainty × (1 + boundary_weight) + 0.01 × n_long_tokens. Also prioritize sentences with known error patterns (4+ syllable tokens, high-uncertainty zones).
|
| 106 |
|
| 107 |
+
**Evaluation**: After each cycle, retrain CRF and evaluate on the **Phase 0 gold test set (250 sentences)**. Plot learning curve (F1 vs cumulative gold annotations).
|
| 108 |
+
|
| 109 |
**Cycles**:
|
| 110 |
|
| 111 |
+
| Phase/Cycle | Sentences | Cumulative | Status | Focus |
|
| 112 |
+
|-------------|----------:|-----------:|--------|-------|
|
| 113 |
+
| **Phase 0** | **500** | **500** | **Planned** | **Gold eval set: 250 dev + 250 test (random, stratified)** |
|
| 114 |
+
| Cycle 0 | 0 | 0 | Done | Train CRF on 80K silver, establish baseline |
|
| 115 |
+
| Cycle 1 | 92 | 92 | Done | Top 100 uncertainty, 92 gold → diagnostic + training data |
|
| 116 |
+
| Cycle 2 | 200 | ~290 | Planned | Retrained CRF's new uncertain tokens |
|
| 117 |
+
| Cycle 3 | 200 | ~490 | Planned | Domain-specific compounds, remaining errors |
|
| 118 |
+
| Cycle 4 | 200 | ~690 | Planned | Diminishing returns check |
|
| 119 |
+
| Cycle 5 | 200 | ~890 | Planned | |
|
| 120 |
+
| Cycle 6 | 200 | ~1,090 | Planned | |
|
| 121 |
+
| Cycle 7 | 200 | ~1,290 | Planned | |
|
| 122 |
+
| Cycle 8 | 200 | ~1,490 | Planned | |
|
| 123 |
+
| Cycle 9 | 200 | ~1,690 | Planned | |
|
| 124 |
+
| Cycle 10 | 200 | ~1,890 | Planned | Stop if F1 plateaus (<0.1% improvement) |
|
| 125 |
+
|
| 126 |
+
**Total gold**: 500 (eval) + ~1,890 (AL) = ~2,390 sentences
|
| 127 |
|
| 128 |
+
**Annotation**: Correct BIO tags in Label Studio using NIIVTB 9-rule framework (`guidelines/01. Word Segmentation/`). Dictionary plugin highlights multi-syllable words (green = in dict, red = not in dict) for faster review. Flag ambiguous cases for guideline revision. Est. 80 sent/day → 200 sent ≈ 2.5 days/cycle.
|
| 129 |
|
| 130 |
+
**Stopping**: <0.1% F1 improvement on **Phase 0 gold test set** (250 sentences, fixed, never modified) over two consecutive cycles.
|
| 131 |
|
| 132 |
**Quality**: Re-annotate 5% blind every 200 sentences → target >95% self-consistency.
|
| 133 |
|
| 134 |
+
## CRF Model Results
|
| 135 |
+
|
| 136 |
+
### Cycle 0 (baseline: 80K silver)
|
| 137 |
|
| 138 |
| Metric | Score |
|
| 139 |
|--------|-------|
|
| 140 |
+
| Syllable Accuracy | 0.9908 |
|
| 141 |
+
| Word F1 | **0.9834** |
|
| 142 |
+
| Word Precision | 0.9830 |
|
| 143 |
+
| Word Recall | 0.9838 |
|
| 144 |
|
| 145 |
+
Model: `tree-1/models/word_segmentation/udd_ws_v1_1-20260212_065135/`
|
| 146 |
Training: 80K silver sentences, pycrfsuite L-BFGS, c1=0.5, c2=0.001, 300 iterations.
|
| 147 |
|
| 148 |
**Uncertainty scoring** (20K dev+test sentences):
|
| 149 |
+
- Mean uncertainty: 0.0103
|
| 150 |
+
- Mean score: 0.0136
|
| 151 |
+
- 8,636 sentences (43.2%) with score ≥ 0.01
|
| 152 |
+
- 848 sentences (4.2%) with score ≥ 0.05
|
| 153 |
+
- 1,068 sentences have 4+ syllable tokens
|
| 154 |
+
- Top 500 selected: 253 dev + 247 test
|
| 155 |
+
|
| 156 |
+
### Post-Cycle 1 (fixed silver + 92 gold)
|
| 157 |
+
|
| 158 |
+
**Fix pipeline results** (3 new passes added):
|
| 159 |
+
|
| 160 |
+
| Fix Type | Count | Description |
|
| 161 |
+
|----------|------:|-------------|
|
| 162 |
+
| Cross-boundary splits | 258 | `Mặt trận Tổ quốc`, `làm Chủ tịch`, etc. |
|
| 163 |
+
| Long token splits | 0 | (already fixed in v1.1) |
|
| 164 |
+
| Compound merges | 541 | `ủy ban` (371), `mái nhà` (41), `lượng tử` (24), +22 more |
|
| 165 |
+
| Foreign word splits | 5,375 | Latin-only multi-syllable tokens split per syllable |
|
| 166 |
+
| Name boundary splits | 816 | `Trần khởi nghiệp` → `Trần` + `khởi nghiệp` |
|
| 167 |
+
| **Total fixes** | **6,990** | |
|
| 168 |
+
|
| 169 |
+
**Silver test performance:**
|
| 170 |
+
|
| 171 |
+
| Metric | Cycle 0 | Post-Cycle 1 | Δ |
|
| 172 |
+
|--------|---------|-------------|---|
|
| 173 |
+
| Syllable Accuracy | 0.9908 | 0.9913 | +0.0005 |
|
| 174 |
+
| Word F1 | 0.9834 | **0.9842** | +0.0008 |
|
| 175 |
+
|
| 176 |
+
Model: `tree-1/models/word_segmentation/udd_ws_v1_1-20260213_034134/`
|
| 177 |
+
Training: 80K fixed silver + 92 gold sentences merged, pycrfsuite L-BFGS, 300 iterations.
|
| 178 |
+
|
| 179 |
+
**Uncertainty scoring** (20K dev+test, retrained model):
|
| 180 |
+
- Mean uncertainty: 0.0099 (was 0.0103)
|
| 181 |
+
- Mean score: 0.0130 (was 0.0136)
|
| 182 |
+
- 8,407 sentences (42.0%) with score ≥ 0.01 (was 8,636)
|
| 183 |
+
- 773 sentences (3.9%) with score ≥ 0.05 (was 848)
|
| 184 |
+
- 1,042 sentences have 4+ syllable tokens (was 1,068)
|
| 185 |
+
- Top 500 selected: 261 dev + 239 test
|
| 186 |
+
|
| 187 |
+
### Cycle 1 Gold Evaluation (92 uncertainty-selected sentences)
|
| 188 |
+
|
| 189 |
+
**Important caveat**: These 92 sentences were selected by **highest CRF uncertainty**, not randomly sampled. The F1 scores below represent performance on the **hardest** sentences, not overall model performance. See Phase 0 for representative evaluation.
|
| 190 |
+
|
| 191 |
+
**Overall metrics:**
|
| 192 |
+
|
| 193 |
+
| Metric | Cycle 0 CRF | Post-Cycle 1 CRF | Δ |
|
| 194 |
+
|--------|-------------|-------------------|---|
|
| 195 |
+
| Syllable Accuracy | 0.8665 | 0.8758 | +0.0093 |
|
| 196 |
+
| Word Precision | 0.7934 | 0.7977 | +0.0043 |
|
| 197 |
+
| Word Recall | 0.7685 | 0.7998 | +0.0313 |
|
| 198 |
+
| Word F1 | **0.7808** | **0.7988** | **+0.0180** |
|
| 199 |
+
| Sentences with diffs | 75/92 | 74/92 | −1 |
|
| 200 |
+
| Over-merge errors | 134 | 113 | −21 |
|
| 201 |
+
| Over-split errors | 118 | 112 | −6 |
|
| 202 |
+
|
| 203 |
+
**Per-domain breakdown (Post-Cycle 1 CRF):**
|
| 204 |
+
|
| 205 |
+
| Domain | N | Syl Acc | P | R | F1 | Δ F1 |
|
| 206 |
+
|--------|---|---------|---|---|-----|------|
|
| 207 |
+
| News | 8 | 0.9152 | 0.8606 | 0.8497 | **0.8551** | +0.016 |
|
| 208 |
+
| Legal | 4 | 0.8765 | 0.8298 | 0.8333 | **0.8316** | +0.119 |
|
| 209 |
+
| Non-fiction | 24 | 0.9033 | 0.8283 | 0.8056 | 0.8168 | −0.007 |
|
| 210 |
+
| Fiction | 28 | 0.8757 | 0.8132 | 0.8121 | 0.8127 | −0.002 |
|
| 211 |
+
| Wikipedia | 28 | 0.8381 | 0.7340 | 0.7609 | **0.7472** | +0.040 |
|
| 212 |
+
|
| 213 |
+
**Error analysis** (74/92 sentences with differences):
|
| 214 |
+
|
| 215 |
+
| Error Type | Cycle 0 | Post-Cycle 1 | Δ |
|
| 216 |
+
|------------|---------|-------------|---|
|
| 217 |
+
| Over-merge | 134 | 113 | −21 |
|
| 218 |
+
| Over-split | 118 | 112 | −6 |
|
| 219 |
+
| B→I changes | 83 | 95 | +12 |
|
| 220 |
+
| I→B changes | 118 | 92 | −26 |
|
| 221 |
+
|
| 222 |
+
**Remaining dominant error patterns**:
|
| 223 |
+
1. Cross-boundary merge at proper names: `Nguyễn_Bính_Mưa_dầm`, `Chu_Du_tính_tình`
|
| 224 |
+
2. Hán-Việt boundary errors (wikipedia): `thiên_địa_lưu`, `Hải_quốc_văn_kiến`
|
| 225 |
+
3. Foreign name segmentation: `Nigeria_Ibrahim_Baré_Maïnassara`
|
| 226 |
+
4. Some compound splits remain: `lính | thú`, `ắc | quy`
|
| 227 |
+
|
| 228 |
+
## Dataset Statistics (v1.1 regenerated)
|
| 229 |
+
|
| 230 |
+
| | Train | Dev | Test |
|
| 231 |
+
|---|---|---|---|
|
| 232 |
+
| **Sentences** | 80,000 | 10,000 | 10,000 |
|
| 233 |
+
| **Syllables** | 2,229,051 | 278,364 | 278,798 |
|
| 234 |
+
| **Words** | 1,696,362 | 211,880 | 212,088 |
|
| 235 |
+
| **Unique words** | 71,286 | 21,346 | 21,106 |
|
| 236 |
+
| **Single-syl ratio** | 70.2% | 70.2% | 70.1% |
|
| 237 |
+
| **Multi-syl ratio** | 29.8% | 29.8% | 29.9% |
|
| 238 |
+
| **Avg syl/word** | 1.31 | 1.31 | 1.31 |
|
| 239 |
+
| **OOV token rate** | — | 2.5% | 2.4% |
|
| 240 |
+
|
| 241 |
+
Domain distribution: exactly 20% per domain (legal, news, wikipedia, fiction, non-fiction) in all splits.
|
| 242 |
+
|
| 243 |
+
| Domain | Avg Syl/Sent | Syl/Word | Character |
|
| 244 |
+
|--------|---:|---:|---|
|
| 245 |
+
| Legal | 33.2 | 1.49 | Longest sentences, most compound words |
|
| 246 |
+
| News | 32.9 | 1.33 | |
|
| 247 |
+
| Wikipedia | 31.2 | 1.30 | |
|
| 248 |
+
| Non-fiction | 22.1 | 1.22 | |
|
| 249 |
+
| Fiction | 19.9 | 1.18 | Shortest sentences, fewest compounds |
|
| 250 |
+
|
| 251 |
+
## Annotation Tooling
|
| 252 |
+
|
| 253 |
+
| Script | Purpose |
|
| 254 |
+
|--------|---------|
|
| 255 |
+
| `src/ls_import_ws.py` | Convert AL top-500 TSV → Label Studio JSON with pre-annotations + CRF confidence scores |
|
| 256 |
+
| `src/ls_export_ws.py` | Convert Label Studio JSON export → BIO format |
|
| 257 |
+
| `src/ls_config_ws.xml` | Label Studio labeling config (W/WH/WM/WL labels) |
|
| 258 |
+
| `src/build_dict_plugin.py` | Generate dictionary plugin HTML for Label Studio (highlight bar + search) |
|
| 259 |
+
| `src/build_dict_search.py` | Generate standalone dictionary search HTML |
|
| 260 |
+
| `ls_import_cycle1.json` | Label Studio import for Cycle 1 (500 sentences with pre-annotations) |
|
| 261 |
+
|
| 262 |
+
## Cycle 1 Results
|
| 263 |
+
|
| 264 |
+
- **Annotated**: 95/100 tasks in Label Studio (project 4)
|
| 265 |
+
- **Exported**: 92 gold sentences → `gold_ws_cycle1.txt` (3 skipped: annotation gaps)
|
| 266 |
+
- **Skipped sentences**: `uvn-3488` (missing spans for foreign words), `uvb-n-10657` (missing "là"), `uvb-f-10312` (missing "»")
|
| 267 |
|
| 268 |
## Next Steps
|
| 269 |
|
| 270 |
+
1. **Phase 0: Gold evaluation set** — random sample 500 sentences, annotate, split 250 dev + 250 test, freeze
|
| 271 |
+
2. **Baseline eval** — evaluate CRF on Phase 0 gold test set → true F1 baseline
|
| 272 |
+
3. **AL Cycle 2** — generate Label Studio import from new top-500 (excluding 500 eval + 92 Cycle 1)
|
| 273 |
+
4. POS annotation guidelines
|
| 274 |
+
5. DP annotation guidelines
|
| 275 |
|
| 276 |
## Timeline
|
| 277 |
|
| 278 |
```
|
| 279 |
+
Week: 1 2 3 4 5 6 7 8 9 10 11 12 13
|
| 280 |
+
+----+----+----+----+----+----+----+----+----+----+----+----+
|
| 281 |
+
Phase0: =====
|
| 282 |
+
Gold eval set (500 sent, ~6 days)
|
| 283 |
+
Task 1: =====================
|
| 284 |
+
WS gold (2K sentences, AL cycles 2-10)
|
| 285 |
+
Task 2: ==================
|
| 286 |
+
POS gold (1K sentences, 4 cycles)
|
| 287 |
+
Task 3: ============================
|
| 288 |
+
DP gold (800-1K sentences, 6 cycles)
|
| 289 |
Guide: *-------*-------*-------*-------*-------*
|
| 290 |
WS POS DP v0.1 DP v0.2 v1.0
|
| 291 |
```
|
| 292 |
|
| 293 |
+
Est. total: ~106 annotator-days (~13 weeks with overlap, +1 week for Phase 0).
|
| 294 |
|
| 295 |
## Related Documents
|
| 296 |
|
| 297 |
| Document | Content |
|
| 298 |
|----------|---------|
|
| 299 |
| `TECHNICAL_REPORT.md` | v1.0 technical report (10K UD treebank) |
|
| 300 |
+
| `TECHNICAL_REPORT_v1.1.md` | v1.1 technical report (WS dataset + AL framework) |
|
| 301 |
| `WS_CHECK_REPORT.md` | Diagnostic checker output (7 rules) |
|
| 302 |
+
| `WS_FIX_REPORT.md` | Fix pipeline output (258 cross-boundary, 541 compound, 5,375 foreign, 816 name boundary) |
|
| 303 |
+
| `AL_CYCLE1_REPORT.md` | Cycle 1 annotation report (92 gold sentences, error analysis) |
|
| 304 |
| `al_cycle0_ranked.tsv` | All 20K sentences ranked by uncertainty |
|
| 305 |
| `al_cycle0_top500.tsv` | Top 500 sentences for Cycle 1 annotation |
|
| 306 |
+
| `ls_import_cycle1.json` | Label Studio import for Cycle 1 (500 pre-annotated sentences) |
|
| 307 |
+
| `ls_export_cycle1.json` | Label Studio export for Cycle 1 (95 annotated tasks) |
|
| 308 |
+
| `gold_ws_cycle1.txt` | Gold WS BIO for Cycle 1 (92 sentences) |
|
| 309 |
+
| `src/eval_ws_gold.py` | Evaluate CRF vs gold (Word F1, per-domain, error analysis; `--model` for direct CRF prediction) |
|
| 310 |
+
| `src/merge_gold_silver.py` | Merge gold annotations into silver BIO files for CRF retraining |
|
| 311 |
| `src/al_score_ws.py` | AL uncertainty scoring script |
|
| 312 |
+
| `src/ls_import_ws.py` | Label Studio import generator (BIO → JSON with CRF confidence) |
|
| 313 |
+
| `src/ls_export_ws.py` | Label Studio export converter (JSON → BIO) |
|
| 314 |
+
| `src/build_dict_plugin.py` | Dictionary plugin builder for Label Studio |
|
| 315 |
| `guidelines/00. Sentence Selection/` | Sentence selection criteria |
|
| 316 |
| `guidelines/01. Word Segmentation/` | WS annotation guidelines (NIIVTB 9 rules) |
|
|
@@ -1,56 +1,98 @@
|
|
| 1 |
-
# UDD-
|
| 2 |
|
| 3 |
**Underthesea NLP**
|
| 4 |
|
| 5 |
## Abstract
|
| 6 |
|
| 7 |
-
UDD-
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
|
| 17 |
The TECHNICAL_REPORT_REVIEW of UDD-1 v1.0 identified a clear path forward:
|
| 18 |
|
| 19 |
-
> *"Could you run the Underthesea parser on 50-100 sentences from the legal corpus that have been manually annotated by a Vietnamese linguist, to report in-domain LAS/UAS?
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
- **Active learning framework**: A systematic plan to construct gold-standard UD annotations efficiently, using the silver-standard data as a starting point and selectively correcting the most informative errors.
|
| 25 |
|
| 26 |
-
### 1.
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
2. Evaluating segmentation quality across domains independently of the parser
|
| 46 |
-
3. Providing a clean input pipeline for future gold-standard UD annotation
|
| 47 |
|
| 48 |
-
### 2.
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
| Domain | Source Dataset | Sentences | Sent ID Prefix |
|
| 53 |
-
|--------|---------------|----------
|
| 54 |
| Legal | `undertheseanlp/UTS_VLC` | 20,000 | `vlc-` |
|
| 55 |
| News | `undertheseanlp/UVN-1` | 20,000 | `uvn-` |
|
| 56 |
| Wikipedia | `undertheseanlp/UVW-2026` | 20,000 | `uvw-` |
|
|
@@ -58,124 +100,100 @@ Sentences are drawn from 4 HuggingFace datasets, the same sources as UDD-1 v1.0
|
|
| 58 |
| Non-fiction | `undertheseanlp/UVB-v0.1` | 20,000 | `uvb-n-` |
|
| 59 |
| **Total** | | **100,000** | |
|
| 60 |
|
| 61 |
-
**Table 1**: Domain breakdown of
|
| 62 |
-
|
| 63 |
-
#### 2.2.1 Preprocessing
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
**Common filters** (`base_valid()`, all domains):
|
| 72 |
|
| 73 |
| Category | Rule | Condition |
|
| 74 |
|----------|------|-----------|
|
| 75 |
| Structure | Length bounds | 20--300 characters |
|
| 76 |
| Structure | Minimum words | >= 4 words |
|
| 77 |
| Structure | Proper start | First character uppercase or digit |
|
| 78 |
-
| Structure | Proper end | Terminal punctuation (`.!?
|
| 79 |
| Language | Vietnamese content | At least one Vietnamese diacritical character |
|
| 80 |
| Language | Not mostly uppercase | Uppercase characters <= 50% |
|
| 81 |
-
| Language | Language detection | `
|
| 82 |
| Markup | No HTML/template | Reject `{`, `}`, `<`, `>`, `\|` |
|
| 83 |
-
| Markup | No template key=value | Reject `\w+=\w+` (
|
| 84 |
-
| Markup | No file extensions | Reject `.jpg`, `.png`, `.gif`,
|
| 85 |
-
| Brackets | Balanced | `(` count == `)` count
|
| 86 |
-
| Glued text | Multi-tone detection | Reject tokens with 2+ toned vowels
|
| 87 |
-
| Glued text | Digit-letter glue | Reject
|
| 88 |
-
|
| 89 |
-
**Domain-specific filters** add further rules: legal header/article removal, news byline/caption filtering, Wikipedia stub/infobox/reference rejection, and books apply stricter thresholds (30--250 chars, 5--40 words, <= 30% uppercase, <= 15% digits, punctuation density, no mid-sentence ellipsis, limited dialogue).
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
-
|
| 96 |
-
- **Near-duplicate detection**: All digit sequences are normalized to `#` (`normalize_for_dedup()`), then exact-matched. This catches formulaic sentences differing only in numbers (e.g., legal clauses referencing different article numbers, news reporting different statistics).
|
| 97 |
-
|
| 98 |
-
#### 2.2.4 Diversity-Aware Sampling
|
| 99 |
|
| 100 |
Initial sequential extraction produced low source diversity: fiction was dominated by 5 books (primarily Murakami's *1Q84*), and legal text came from only 106 documents. We replaced sequential extraction with **round-robin sampling** with per-source caps:
|
| 101 |
|
| 102 |
-
1. **Phase 1 (Candidate collection)**: Scan all documents
|
| 103 |
-
2. **Phase 2 (Round-robin selection)**: Cycle through all sources, taking one sentence per source per round, with exact and near-duplicate deduplication.
|
| 104 |
-
|
| 105 |
-
Books are ranked by quality score (`goodreads_rating * min(num_ratings / 100, 10)`) and processed in descending order, so higher-quality books are scanned first.
|
| 106 |
|
| 107 |
-
|
| 108 |
|
| 109 |
-
| Domain | Sequential
|
| 110 |
|--------|:---:|:---:|
|
| 111 |
| Legal | 106 documents | 275 documents |
|
| 112 |
| News | 1,030 documents | 3,091 documents |
|
| 113 |
| Wikipedia | 180 articles | 785 articles |
|
| 114 |
| Fiction | 5 books | 72 books |
|
| 115 |
| Non-fiction | 20 books | 68 books |
|
|
|
|
| 116 |
|
| 117 |
-
**Table
|
| 118 |
-
|
| 119 |
-
#### 2.2.5 Sentence Quality Score
|
| 120 |
-
|
| 121 |
-
Beyond binary pass/fail filters, each sentence is assigned a continuous quality score via `sentence_score()` returning a value in (0, 1). The score combines 6 sub-scores:
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|-----------|--------|-------------|
|
| 125 |
-
| Length | 0.20 | Gaussian around ideal range [60, 200] chars |
|
| 126 |
-
| Word count | 0.15 | Gaussian around ideal range [8, 35] words |
|
| 127 |
-
| Structure | 0.20 | Proper start (+0.5) + proper end (+0.5) |
|
| 128 |
-
| Cleanliness | 0.30 | Penalties for markup, unbalanced brackets, glued text, file extensions, excessive uppercase |
|
| 129 |
-
| Completeness | 0.15 | Penalties for unbalanced quotes, excessive digit ratio |
|
| 130 |
-
| Vietnamese density | multiplier | Ratio of Vietnamese diacritical characters to total letters (20%+ maps to 1.0). Applied as a **multiplier** so non-Vietnamese text scores near 0. |
|
| 131 |
|
| 132 |
-
|
| 133 |
|
| 134 |
-
|
|
|
|
| 135 |
|
| 136 |
-
###
|
| 137 |
|
| 138 |
-
Sentences are converted to syllable-level BIO format
|
| 139 |
|
| 140 |
-
1. `underthesea.word_tokenize(sentence, format="text")` → compound tokens with underscores
|
| 141 |
-
2. `
|
| 142 |
-
3. First syllable
|
| 143 |
|
| 144 |
Output format (VLSP 2013 compatible, tab-separated with comment headers):
|
| 145 |
|
| 146 |
```
|
| 147 |
# sent_id = vlc-1
|
| 148 |
-
# text =
|
| 149 |
-
|
| 150 |
-
doanh
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
.
|
| 158 |
```
|
| 159 |
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
### 2.4 Dataset Statistics
|
| 163 |
|
| 164 |
| | Train | Dev | Test | Total |
|
| 165 |
|---|---:|---:|---:|---:|
|
| 166 |
| Sentences | 80,000 | 10,000 | 10,000 | 100,000 |
|
| 167 |
-
| Words | 1,
|
| 168 |
-
| Syllables | 2,
|
| 169 |
-
| Avg word/sent |
|
| 170 |
-
| Avg syl/sent |
|
| 171 |
| Avg syl/word | 1.31 | 1.31 | 1.31 | 1.31 |
|
| 172 |
|
| 173 |
-
**Table
|
| 174 |
|
| 175 |
Splits are stratified by domain (each domain contributes exactly 20% to every split) with random seed 42 for reproducibility.
|
| 176 |
|
| 177 |
-
### 2.5 Word Length Distribution
|
| 178 |
-
|
| 179 |
| Syllables per word | Count | Percentage |
|
| 180 |
|:---:|---:|---:|
|
| 181 |
| 1 | 1,403,963 | 70.48% |
|
|
@@ -184,417 +202,508 @@ Splits are stratified by domain (each domain contributes exactly 20% to every sp
|
|
| 184 |
| 4 | 4,384 | 0.22% |
|
| 185 |
| 5+ | 1,127 | 0.06% |
|
| 186 |
|
| 187 |
-
**Table
|
| 188 |
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
-
|
| 194 |
|
| 195 |
-
|
| 196 |
|
| 197 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
|
| 199 |
-
|
| 200 |
|
| 201 |
-
|
| 202 |
|
| 203 |
-
|
| 204 |
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
-
|
| 211 |
|
| 212 |
-
|
| 213 |
|
| 214 |
-
|
| 215 |
-
-
|
| 216 |
-
|
| 217 |
-
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
-
**
|
| 220 |
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
| Model-based error detection | Flag arcs where retrained model disagrees with gold | After each AL cycle |
|
| 225 |
-
| Dictionary validation | Cross-check WS against Viet74K dictionary | Continuous |
|
| 226 |
-
| UD validator | Automated structural constraint checking | After each batch |
|
| 227 |
-
| Guideline self-audit | Review decisions against written guidelines | Weekly |
|
| 228 |
|
| 229 |
-
|
| 230 |
|
| 231 |
-
|
|
|
|
|
|
|
|
|
|
| 232 |
|
| 233 |
-
|
| 234 |
|
| 235 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
-
|
| 238 |
-
|--------|---------------|-----------|
|
| 239 |
-
| Uncertainty sampling | ~50% fewer sentences | Hwa (2004) |
|
| 240 |
-
| Head entropy + partial annotation | 40--60% less arc annotation | Li et al. (2016) |
|
| 241 |
-
| DPP batch diversity + uncertainty | ~20--30% fewer sentences | Shi et al. (2021) |
|
| 242 |
-
| Partial annotation + self-training | Best cost reduction across 4 tasks | Zhang et al. (2023) |
|
| 243 |
|
| 244 |
-
**
|
| 245 |
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
|
| 248 |
-
|
| 249 |
|
| 250 |
-
|
|
|
|
|
|
|
| 251 |
|
| 252 |
```
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
│ Gold-segmented sentences
|
| 262 |
-
┌───────────────────────────────▼─────────────────────────────────┐
|
| 263 |
-
│ Task 2: POS Tagging │
|
| 264 |
-
│ │
|
| 265 |
-
│ Silver POS ──► Train CRF ──► Score uncertainty ──► Annotate │
|
| 266 |
-
│ (auto-tagged) (tree-1) (tag marginals) (correct │
|
| 267 |
-
│ UPOS tags) │
|
| 268 |
-
│ ◄──── Retrain ◄──── Gold POS data │
|
| 269 |
-
└───────────────────────────────┬─────────────────────────────────┘
|
| 270 |
-
│ Gold-segmented + Gold-POS sentences
|
| 271 |
-
┌───────────────────────────────▼─────────────────────────────────┐
|
| 272 |
-
│ Task 3: Dependency Parsing │
|
| 273 |
-
│ │
|
| 274 |
-
│ Silver DP ──► Train parser ──► Score uncertainty ──► Annotate │
|
| 275 |
-
│ (auto-parsed) (biaffine) (head entropy) (correct │
|
| 276 |
-
│ arcs + │
|
| 277 |
-
│ deprels) │
|
| 278 |
-
│ ◄──── Retrain ◄──── Gold DP data │
|
| 279 |
-
└─────────────────────────────────────────────────────────────────┘
|
| 280 |
```
|
| 281 |
|
| 282 |
-
###
|
| 283 |
|
| 284 |
-
**
|
| 285 |
|
| 286 |
-
|
| 287 |
|
| 288 |
-
|
| 289 |
|
| 290 |
-
|
| 291 |
|
| 292 |
-
|
| 293 |
|
| 294 |
-
**
|
| 295 |
|
| 296 |
-
**
|
| 297 |
-
|
| 298 |
-
2. Predict on udd-ws-v1.1-dev + udd-ws-v1.1-test (20K sentences) with marginal probabilities
|
| 299 |
-
3. Rank sentences by aggregated token uncertainty
|
| 300 |
-
4. Select top-N sentences stratified by domain (equal representation)
|
| 301 |
-
5. Additionally select sentences containing known error patterns from SEGMENTATION_EVAL.md:
|
| 302 |
-
- Sentences with tokens matching the 462 over-segmented dictionary words
|
| 303 |
-
- Sentences with tokens matching the 382 under-segmented candidates
|
| 304 |
-
- Sentences with 4+ syllable tokens (potential under-segmentation)
|
| 305 |
|
| 306 |
-
|
| 307 |
|
| 308 |
-
|
| 309 |
|
| 310 |
-
|
| 311 |
-
2. **Correct boundaries** using the NIIVTB 9-rule framework (see `ANNOTATION_GUIDELINE_WORD_SEGMENTATION.md`):
|
| 312 |
-
- Rule 1 (Insertability test): Can another word be inserted between syllables?
|
| 313 |
-
- Rule 2 (Semantic opacity): Is the meaning compositional?
|
| 314 |
-
- Rules 3--9: Additional criteria for specific constructions
|
| 315 |
-
3. **Flag ambiguous cases** for guideline development
|
| 316 |
|
| 317 |
-
**
|
| 318 |
|
| 319 |
-
|
| 320 |
|
| 321 |
-
|
| 322 |
-
|-------|-----------|----------------|-------|
|
| 323 |
-
| 0 (Baseline) | 0 | 0 | Train CRF on 80K silver |
|
| 324 |
-
| 1 | 500 | 500 | Highest uncertainty + known error patterns |
|
| 325 |
-
| 2 | 500 | 1,000 | Retrained CRF's new uncertain tokens |
|
| 326 |
-
| 3 | 500 | 1,500 | Domain-specific compounds, remaining errors |
|
| 327 |
-
| 4 | 500 | 2,000 | Diminishing returns check; stop if F1 plateaus |
|
| 328 |
|
| 329 |
-
**
|
| 330 |
|
| 331 |
-
|
| 332 |
|
| 333 |
-
|
| 334 |
|
| 335 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
|
| 337 |
-
**
|
| 338 |
|
| 339 |
-
**
|
| 340 |
|
| 341 |
-
|
| 342 |
|
| 343 |
-
|
| 344 |
|
| 345 |
-
|
| 346 |
-
$$u_i = 1 - \max_t P(t|x, i), \quad t \in \{\text{ADJ, ADP, ADV, ..., X}\}$$
|
| 347 |
|
| 348 |
-
|
|
|
|
|
|
|
| 349 |
|
| 350 |
-
|
| 351 |
-
- **AUX vs. VERB**: *được*, *bị*, *phải*, *có thể* (20 auxiliary words with dual function)
|
| 352 |
-
- **NOUN vs. VERB**: Vietnamese words frequently function as both (e.g., *quy định* "regulation"/"to regulate")
|
| 353 |
-
- **ADJ vs. VERB**: Stative verbs vs. adjectives (e.g., *đẹp* "beautiful/to be beautiful")
|
| 354 |
-
- **DET vs. PRON**: *này*, *đó*, *nào* (deictic function)
|
| 355 |
-
- **ADP vs. SCONJ**: *khi*, *vì*, *do* (preposition vs. subordinator)
|
| 356 |
|
| 357 |
-
|
| 358 |
|
| 359 |
-
###
|
| 360 |
|
| 361 |
-
|
| 362 |
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
|
|
|
| 370 |
|
| 371 |
-
|
| 372 |
|
| 373 |
-
|
| 374 |
-
|-------|-----------|----------------|-------|
|
| 375 |
-
| 0 (Baseline) | 0 | 0 | Evaluate CRF POS on gold-segmented sentences |
|
| 376 |
-
| 1 | 300 | 300 | Highest uncertainty + AUX/VERB confusion |
|
| 377 |
-
| 2 | 300 | 600 | Retrained model's new errors + NOUN/VERB confusion |
|
| 378 |
-
| 3 | 200 | 800 | Remaining confusion pairs, domain-specific terms |
|
| 379 |
-
| 4 | 200 | 1,000 | Diminishing returns check |
|
| 380 |
|
| 381 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
|
| 383 |
-
|
| 384 |
|
| 385 |
-
|
| 386 |
|
| 387 |
-
|
| 388 |
|
| 389 |
-
|
| 390 |
|
| 391 |
-
|
| 392 |
|
| 393 |
-
|
| 394 |
|
| 395 |
-
|
| 396 |
|
| 397 |
-
|
| 398 |
|
| 399 |
-
|
| 400 |
|
| 401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
|
| 403 |
-
**
|
| 404 |
-
- **Informativeness**: Sum of head entropy across tokens → selects uncertain sentences
|
| 405 |
-
- **Diversity**: PhoBERT sentence embeddings as the DPP kernel → selects structurally diverse sentences
|
| 406 |
-
- **Domain balance**: Equal quota per domain (legal, news, Wikipedia, fiction, non-fiction)
|
| 407 |
|
| 408 |
-
|
| 409 |
|
| 410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
|
| 412 |
-
|
| 413 |
|
| 414 |
-
|
| 415 |
-
2. **For each uncertain arc**, decide:
|
| 416 |
-
- **Head**: Which word does this token depend on? (click to reassign)
|
| 417 |
-
- **Deprel**: What is the relation? (select from dropdown of 37 UD base types)
|
| 418 |
-
3. **Verify confident arcs only if they look wrong** — the annotator can skip green arcs but is encouraged to scan for obvious errors
|
| 419 |
-
4. **Apply Vietnamese-specific decisions** using the evolving guideline document:
|
| 420 |
-
- Copula *là*: `cop` when linking subject to predicate nominal, `mark` in cleft constructions
|
| 421 |
-
- Passive *được/bị*: `aux:pass` when modifying another verb, `root`/`xcomp` when main verb
|
| 422 |
-
- Serial verbs: second verb as `xcomp` or `conj` depending on shared arguments
|
| 423 |
-
- Classifiers: `clf` (UD v2 subtype) for numeral-classifier-noun constructions
|
| 424 |
-
- Topic fronting: `dislocated` when the fronted NP is resumed by a pronoun, `nsubj` otherwise
|
| 425 |
|
| 426 |
-
|
| 427 |
|
| 428 |
-
|
|
| 429 |
-
|-------|-----------
|
| 430 |
-
|
|
| 431 |
-
|
|
| 432 |
-
|
|
| 433 |
-
|
|
| 434 |
-
|
|
| 435 |
-
| 5 | 150 | ~600 (partial) | 800 | Domain-specific constructions, long sentences |
|
| 436 |
-
| 6+ | 100/cycle | ~400/cycle | 1,000+ | Continue until LAS improvement plateaus |
|
| 437 |
|
| 438 |
-
**
|
| 439 |
|
| 440 |
-
|
| 441 |
|
| 442 |
-
**
|
| 443 |
|
| 444 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 445 |
|
| 446 |
-
|
| 447 |
|
| 448 |
-
|
| 449 |
-
Week: 1 2 3 4 5 6 7 8 9 10 11 12
|
| 450 |
-
├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
|
| 451 |
-
Task 1: ████████████████████
|
| 452 |
-
WS Cycle 1-4 (2K sentences)
|
| 453 |
-
Task 2: ██████████████████
|
| 454 |
-
POS Cycle 1-4 (1K sentences)
|
| 455 |
-
Task 3: ████████████████████████████
|
| 456 |
-
DP Cycle 1-6+ (800-1K sentences)
|
| 457 |
-
Guidelines: ◆───────◆───────◆───────◆───────◆───────◆
|
| 458 |
-
v0.1 v0.2 v0.3 v0.4 v0.5 v1.0
|
| 459 |
-
```
|
| 460 |
|
| 461 |
-
**
|
| 462 |
|
| 463 |
-
###
|
| 464 |
|
| 465 |
-
|
| 466 |
|
| 467 |
-
|
|
| 468 |
-
|-------|-----------------
|
| 469 |
-
|
|
| 470 |
-
|
|
| 471 |
-
| POS Cycle 1 | Draft POS guidelines (confusion pairs, AUX list) | Model-based error detection on corrected data |
|
| 472 |
-
| POS Cycle 2 | Revise POS guidelines | Re-annotate 15 sentences from Cycle 1 |
|
| 473 |
-
| DP Cycle 1 | Draft DP guidelines (pilot, 50 full sentences) | UD validator on all sentences |
|
| 474 |
-
| DP Cycle 3 | Major guideline revision after 450 sentences | Re-annotate 25 sentences from Cycles 1--2 |
|
| 475 |
-
| Final | Consolidate all guidelines into single document | Full self-consistency audit on 100 random sentences |
|
| 476 |
|
| 477 |
-
**
|
| 478 |
|
| 479 |
-
|
| 480 |
-
1. **Copula `là`**: Multiple syntactic functions (copula, focus marker, relative clause marker)
|
| 481 |
-
2. **Passive markers `được/bị`**: AUX vs. main VERB distinction is context-dependent
|
| 482 |
-
3. **Serial verb constructions**: Common in Vietnamese; requires explicit deprel convention
|
| 483 |
-
4. **Classifier constructions**: Numeral-classifier-noun patterns need specific annotation rules
|
| 484 |
-
5. **Topic-comment structure**: Vietnamese allows topic fronting; affects nsubj vs. dislocated
|
| 485 |
-
6. **Legal domain vocabulary**: Terms like *điều*, *khoản*, *mục* have specific syntactic roles
|
| 486 |
|
| 487 |
-
###
|
| 488 |
|
| 489 |
-
|
| 490 |
-
|--------|--------------|---------------------------|
|
| 491 |
-
| Word segmentation F1 | Unknown (same as underthesea) | >98% (gold test) |
|
| 492 |
-
| UPOS accuracy | ~91.4% (8.6% forced) | >97% (gold test) |
|
| 493 |
-
| LAS | ~76% (news benchmark) | Measured on legal + multi-domain |
|
| 494 |
-
| UAS | Unknown | Measured on legal + multi-domain |
|
| 495 |
-
| Self-consistency | N/A | >95% on re-annotation |
|
| 496 |
-
| Gold WS sentences | 0 | 2,000 |
|
| 497 |
-
| Gold POS sentences | 0 | 1,000 |
|
| 498 |
-
| Gold DP sentences | 0 | 800--1,000 |
|
| 499 |
|
| 500 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 501 |
|
| 502 |
-
|
| 503 |
|
| 504 |
-
|
| 505 |
-
|------|-----------|-----------|-----------|----------------|
|
| 506 |
-
| WS (4 cycles × 500) | 2,000 | 80 sent/day | 25 days | 5 weeks |
|
| 507 |
-
| POS (4 cycles × 250) | 1,000 | 40 sent/day | 25 days | 5 weeks |
|
| 508 |
-
| DP Pilot (full) | 50 | 15 sent/day | 3 days | 1 week |
|
| 509 |
-
| DP Partial (5 cycles × 150--200) | 750--1,000 | 25 sent/day | 30--40 days | 6--8 weeks |
|
| 510 |
-
| Guideline development | — | — | 10 days | distributed |
|
| 511 |
-
| Self-consistency audits | ~200 re-annotated | — | 5 days | distributed |
|
| 512 |
-
| **Total** | | | **~100 days** | **~12 weeks (with overlap)** |
|
| 513 |
|
| 514 |
-
|
| 515 |
|
| 516 |
-
|
| 517 |
|
| 518 |
-
|
|
|
|
|
|
|
| 519 |
|
| 520 |
-
|
| 521 |
|
| 522 |
-
**
|
| 523 |
-
- `
|
| 524 |
-
- `
|
| 525 |
-
- `udd-ws-v1.1-test.txt` — 10,000 sentences (2.4 MB)
|
| 526 |
-
- `udd-ws-v1.1-{train,dev,test}.conllu` — CoNLL-U format (words as tokens)
|
| 527 |
|
| 528 |
-
**
|
| 529 |
-
```
|
| 530 |
-
# sent_id = uvn-1234
|
| 531 |
-
# text = Original sentence text here
|
| 532 |
-
syllable1 B-W
|
| 533 |
-
syllable2 I-W
|
| 534 |
-
syllable3 B-W
|
| 535 |
-
```
|
| 536 |
|
| 537 |
-
|
|
|
|
|
|
|
| 538 |
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
| `src/build_ws_dataset.py` | Convert to BIO + stratified split | `uv run src/build_ws_dataset.py` |
|
| 543 |
-
| `src/fix_ws_errors.py` | Fix known WS errors (cross-boundary merges, always-split compounds) | `uv run src/fix_ws_errors.py` |
|
| 544 |
-
| `src/check_ws_errors.py` | Rule-based WS error checker (7 rules) | `uv run src/check_ws_errors.py` |
|
| 545 |
-
| `src/ws_statistics.py` | Convert to CoNLL-U + compute statistics | `uv run src/ws_statistics.py` |
|
| 546 |
|
| 547 |
-
|
|
|
|
|
|
|
|
|
|
| 548 |
|
| 549 |
-
|
|
|
|
|
|
|
| 550 |
|
| 551 |
-
##
|
| 552 |
|
| 553 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 554 |
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 562 |
|
| 563 |
-
The
|
| 564 |
|
| 565 |
-
|
| 566 |
|
| 567 |
-
|
| 568 |
|
| 569 |
-
|
| 570 |
|
| 571 |
-
|
| 572 |
|
| 573 |
-
|
| 574 |
-
- **Word segmentation**: CRF token marginal uncertainty + dictionary-based error targeting → 2,000 gold sentences
|
| 575 |
-
- **POS tagging**: Tag marginal uncertainty + confusion-pair targeting (AUX/VERB, NOUN/VERB) → 1,000 gold sentences
|
| 576 |
-
- **Dependency parsing**: Head entropy + DPP batch diversity + partial arc annotation → 800--1,000 gold sentences
|
| 577 |
|
| 578 |
-
|
| 579 |
|
| 580 |
-
|
| 581 |
|
| 582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 583 |
|
| 584 |
## References
|
| 585 |
|
| 586 |
-
- Baldridge, J. and Osborne, M. (2004). Active Learning and the Total Cost of Annotation. In *Proceedings of EMNLP 2004*.
|
| 587 |
|
| 588 |
-
-
|
|
|
|
|
|
|
| 589 |
|
| 590 |
- de Marneffe, M.-C., Manning, C.D., Nivre, J., and Zeman, D. (2021). Universal Dependencies. *Computational Linguistics*, 47(2):255--308.
|
| 591 |
|
|
|
|
|
|
|
| 592 |
- Hwa, R. (2004). Sample Selection for Statistical Parsing. *Computational Linguistics*, 30(3):253--276.
|
| 593 |
|
| 594 |
- Li, Z., Zhang, M., Zhang, Y., Liu, Z., Chen, W., Wu, H., and Wang, H. (2016). Active Learning for Dependency Parsing with Partial Annotation. In *Proceedings of ACL 2016*, pp. 344--354.
|
| 595 |
|
| 596 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 597 |
|
| 598 |
-
-
|
| 599 |
|
| 600 |
- Zhang, Z., Strubell, E., and Hovy, E. (2023). Data-efficient Active Learning for Structured Prediction with Partial Annotation and Self-Training. In *Findings of EMNLP 2023*.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UDD-WS v1.1: A 100K-Sentence Multi-Domain Vietnamese Word Segmentation Dataset and Active Learning Framework for Gold-Standard UD Annotation
|
| 2 |
|
| 3 |
**Underthesea NLP**
|
| 4 |
|
| 5 |
## Abstract
|
| 6 |
|
| 7 |
+
We present UDD-WS v1.1, a 100,000-sentence silver-standard Vietnamese word segmentation dataset in BIO format spanning five domains (legal, news, Wikipedia, fiction, non-fiction), and a three-task active learning framework for constructing gold-standard Universal Dependencies annotations under a solo annotator constraint. The dataset is built with a 14-rule quality filter pipeline, diversity-aware round-robin sampling across 4,291 source documents, and two-level deduplication (exact + digit-normalized). We train a CRF word segmenter on the silver data (Word F1 = 0.9842 on silver test) and conduct a first active learning cycle, annotating 92 gold sentences selected by token marginal uncertainty. Evaluation against gold reveals Word F1 = 0.7988 on these high-uncertainty sentences, with cross-boundary proper name merges and Sino-Vietnamese classical text as dominant error categories. Critically, we identify a methodological gap in our initial AL design --- the absence of a fixed, randomly-sampled gold evaluation set --- and propose Phase 0: a 500-sentence gold evaluation set (250 dev + 250 test) created before continuing AL cycles, following established AL evaluation methodology (Zhang et al., 2022; Shi et al., 2021). The AL framework targets 2,000 gold word segmentation, 1,000 gold POS, and 800--1,000 gold dependency sentences over approximately 106 annotator-days, with Vietnamese annotation guidelines co-developed through the process.
|
| 8 |
|
| 9 |
+
## 1. Introduction
|
| 10 |
|
| 11 |
+
### 1.1 Background
|
| 12 |
|
| 13 |
+
Word segmentation is the foundational task in Vietnamese NLP. Unlike English, Vietnamese uses spaces to separate syllables rather than words, so multi-syllable words like *doanh nghiệp* ("enterprise") appear as two space-separated tokens. All downstream NLP tasks --- POS tagging, named entity recognition, dependency parsing --- depend on correct word segmentation, and segmentation errors propagate through the entire pipeline.
|
| 14 |
|
| 15 |
+
Despite its importance, Vietnamese word segmentation resources are limited. The VLSP 2013 shared task (Nguyen et al., 2013) provided the primary benchmark dataset (~75K sentences, news domain), but no large-scale multi-domain BIO-format dataset exists for training robust segmenters. Meanwhile, Vietnamese Universal Dependencies treebanks remain small: UD_Vietnamese-VTB contains 3,323 sentences (Nguyen et al., 2014), and UDD-1 v1.0 provides 10,000 silver-standard sentences from the legal domain only.
|
| 16 |
+
|
| 17 |
+
### 1.2 Motivation
|
| 18 |
|
| 19 |
The TECHNICAL_REPORT_REVIEW of UDD-1 v1.0 identified a clear path forward:
|
| 20 |
|
| 21 |
+
> *"Could you run the Underthesea parser on 50--100 sentences from the legal corpus that have been manually annotated by a Vietnamese linguist, to report in-domain LAS/UAS?"*
|
| 22 |
|
| 23 |
+
The review highlighted three priorities: (1) gold-standard evaluation of annotation quality, (2) reduction of the 8.6% UPOS-forcing artifact rate, and (3) multi-domain coverage beyond the legal domain.
|
| 24 |
|
| 25 |
+
Version 1.1 addresses these through a two-pronged strategy: a 100K-sentence multi-domain word segmentation dataset providing the training data for robust tokenization, and an active learning framework for efficient gold-standard annotation across the full Vietnamese NLP pipeline (WS → POS → DP).
|
|
|
|
| 26 |
|
| 27 |
+
### 1.3 Contributions
|
| 28 |
|
| 29 |
+
Our contributions are threefold:
|
| 30 |
+
|
| 31 |
+
1. **UDD-WS v1.1 dataset**: A 100,000-sentence, 5-domain word segmentation dataset in BIO format with a rigorous quality pipeline (14-rule filter, round-robin diversity sampling, two-level deduplication). To our knowledge, this is the largest multi-domain Vietnamese word segmentation dataset in BIO format.
|
| 32 |
+
|
| 33 |
+
2. **Active learning framework with proper evaluation methodology**: A three-task sequential AL pipeline (WS → POS → DP) for gold-standard UD annotation under a solo annotator constraint, with Phase 0 (fixed gold evaluation set created before AL) following established AL methodology. We report results from the first AL cycle (92 gold WS sentences) including a detailed error taxonomy.
|
| 34 |
+
|
| 35 |
+
3. **Silver-standard quality analysis**: A systematic assessment of word segmentation quality in silver-standard data, revealing 3,592 inconsistently segmented word forms (67,612 occurrences) and identifying dominant error categories that inform both the fix pipeline (6,990 corrections) and the AL query strategy.
|
| 36 |
+
|
| 37 |
+
## 2. Related Work
|
| 38 |
+
|
| 39 |
+
### 2.1 Vietnamese Word Segmentation
|
| 40 |
+
|
| 41 |
+
Vietnamese word segmentation has been studied since the early 2000s. The VLSP 2013 shared task (Nguyen et al., 2013) established the primary benchmark, with CRF-based systems achieving 97--98% F1 on news text. VnCoreNLP (Nguyen et al., 2018a) reports 97.90% F1 on VLSP 2013 using a CRF with hand-crafted features and dictionary lookup. The Underthesea toolkit provides a word_tokenize function combining CRF and regex-based tokenization.
|
| 42 |
+
|
| 43 |
+
Despite these advances, all existing benchmarks are news-domain. No Vietnamese WS dataset covers legal, literary, or encyclopedic text, where domain-specific vocabulary (legal compounds, Sino-Vietnamese classical terms, foreign names) poses distinct segmentation challenges.
|
| 44 |
+
|
| 45 |
+
### 2.2 Vietnamese Treebanks
|
| 46 |
+
|
| 47 |
+
Four Vietnamese treebanks are relevant to this work.
|
| 48 |
+
|
| 49 |
+
**VTB / VnDT / UD_Vietnamese-VTB.** The Vietnamese Treebank (VTB; Nguyen et al., 2014) is a constituency treebank of ~10,000 news sentences. VnDT (Nguyen et al., 2014) was automatically converted from VTB's bracketing to dependency format (10,200 sentences), achieving UAS 80.7% / LAS 73.5% at the time. UD_Vietnamese-VTB is a further automatic conversion to Universal Dependencies format containing 3,323 sentences --- the only UD-compliant Vietnamese treebank currently in the UD repository.
|
| 50 |
+
|
| 51 |
+
**BKTreebank.** Nguyen (2018) constructed a 6,909-sentence dependency treebank from Dantri news text, notable as the first Vietnamese dependency treebank **manually annotated from scratch** rather than converted from a constituency treebank. BKTreebank uses a Penn-style POS tagset with 23 tags including 6 Vietnamese-specific tags (CL for classifiers, PFN/NML for nominalizers, VA/AV for adjectival/verbal adjectives) and 26 Stanford dependency relations with 2 Vietnamese-specific additions (`case:pfn`, `mark:relcl`). Three annotators plus one reviewer achieved inter-annotator agreement of 94.5% for POS, 85.2% UAS, and 80.4% LAS. Baseline parsing results were UAS 84.4% / LAS 81.4% with MaltParser. However, BKTreebank uses Stanford Dependencies rather than Universal Dependencies, limiting interoperability with the UD ecosystem.
|
| 52 |
+
|
| 53 |
+
**NIIVTB.** The NIIVTB project (Nguyen et al., 2018b) established 9 rules for Vietnamese word boundary decisions and achieved 97.28% inter-annotator consistency across ~40,000 sentences annotated for word segmentation, POS tagging, and bracketing. Their word segmentation guidelines form the basis for our annotation framework.
|
| 54 |
|
| 55 |
+
**UDD-1 v1.0.** Underthesea NLP (2025) provides 10,000 silver-standard sentences from the legal domain, produced by neural parsing with rule-based post-processing. No gold-standard evaluation exists.
|
| 56 |
|
| 57 |
+
| Treebank | Sentences | Domain | Annotation | UD-compliant | IAA |
|
| 58 |
+
|----------|----------:|--------|------------|:---:|-----|
|
| 59 |
+
| VnDT | 10,200 | News | Auto-converted | No | --- |
|
| 60 |
+
| UD_Vietnamese-VTB | 3,323 | News | Auto-converted | Yes | --- |
|
| 61 |
+
| BKTreebank | 6,909 | News | Manual | No | 94.5% POS, 80.4% LAS |
|
| 62 |
+
| NIIVTB | ~40,000 | News | Manual | No | 97.28% WS |
|
| 63 |
+
| UDD-1 v1.0 | 10,000 | Legal | Silver (neural) | Yes | --- |
|
| 64 |
|
| 65 |
+
**Table R1**: Vietnamese treebank comparison.
|
| 66 |
|
| 67 |
+
No existing Vietnamese treebank provides gold-standard multi-domain annotations. All are limited to news text, and only UD_Vietnamese-VTB (auto-converted, 3,323 sentences) follows UD format. BKTreebank's manual annotation methodology and IAA reporting provide a valuable reference point for our solo-annotator AL approach, though our work targets UD compliance and multi-domain coverage.
|
|
|
|
|
|
|
| 68 |
|
| 69 |
+
### 2.3 Active Learning for NLP
|
| 70 |
|
| 71 |
+
Active learning reduces annotation cost by selecting the most informative examples. Zhang et al. (2022) provide a comprehensive survey of AL for NLP, covering query strategies, batch selection, stopping criteria, and evaluation methodology. For structured prediction tasks, key approaches include:
|
| 72 |
+
|
| 73 |
+
- **Uncertainty sampling** for sequence labeling: CRF token marginal uncertainty (Settles and Craven, 2008) selects sentences where the model is least confident.
|
| 74 |
+
- **Head entropy for dependency parsing**: Li et al. (2016) propose annotating only the arcs where the parser is uncertain (partial annotation), reducing effort by 40--60%.
|
| 75 |
+
- **Batch diversity**: Shi et al. (2021) combine uncertainty with DPP-based diversity sampling for dependency parsing, achieving 20--30% cost reduction.
|
| 76 |
+
- **Sequential task AL**: Zhang et al. (2023) demonstrate that partial annotation with self-training provides the best cost reduction across four structured prediction tasks.
|
| 77 |
+
|
| 78 |
+
A critical but often underemphasized aspect of AL evaluation is the requirement for a **fixed, randomly-sampled evaluation set created before AL begins**. Zhang et al. (2022, Section 5.2) note that measuring performance on a development set "would be unstable if this set is too small," but having no evaluation set is far worse. Farquhar et al. (2021) formalize that AL introduces statistical bias in the training data, which is undetectable without an independent test set. Luth et al. (2023) identify five pitfalls in AL evaluation, with inconsistent evaluation methodology as the primary concern.
|
| 79 |
+
|
| 80 |
+
### 2.4 Treebank Construction Methodology
|
| 81 |
+
|
| 82 |
+
The standard practice in treebank construction is to define evaluation splits before or at the time of annotation. The Penn Treebank's sections 02--21/22/23 split (Marcus et al., 1993) has been the universal standard for 30 years. For AL-based treebank construction, all existing work --- including Shi et al. (2021), Li et al. (2016), and the Pomak-Philotis UD treebank (2023) --- assumes fixed evaluation sets exist before AL iterations begin.
|
| 83 |
+
|
| 84 |
+
UD project guidelines (de Marneffe et al., 2021) specify minimum sizes for evaluation data: for treebanks of 20K--110K words, at least 10K words for test data and 10% of the remainder for dev data. Bouma and van Noord (2017) demonstrate increasing return on annotation investment through selective manual correction of automatically annotated data --- the same paradigm we follow.
|
| 85 |
+
|
| 86 |
+
Brants and Skut (1998) showed that correcting pre-annotated treebank data is 3--5x faster than annotation from scratch, providing the throughput estimates that underpin our cost analysis.
|
| 87 |
+
|
| 88 |
+
## 3. UDD-WS v1.1 Dataset
|
| 89 |
+
|
| 90 |
+
### 3.1 Data Sources
|
| 91 |
+
|
| 92 |
+
Sentences are drawn from four HuggingFace datasets across five domains, with 20,000 sentences per domain:
|
| 93 |
|
| 94 |
| Domain | Source Dataset | Sentences | Sent ID Prefix |
|
| 95 |
+
|--------|---------------|----------:|----------------|
|
| 96 |
| Legal | `undertheseanlp/UTS_VLC` | 20,000 | `vlc-` |
|
| 97 |
| News | `undertheseanlp/UVN-1` | 20,000 | `uvn-` |
|
| 98 |
| Wikipedia | `undertheseanlp/UVW-2026` | 20,000 | `uvw-` |
|
|
|
|
| 100 |
| Non-fiction | `undertheseanlp/UVB-v0.1` | 20,000 | `uvb-n-` |
|
| 101 |
| **Total** | | **100,000** | |
|
| 102 |
|
| 103 |
+
**Table 1**: Domain breakdown of UDD-WS v1.1.
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
### 3.2 Quality Filter Pipeline
|
| 106 |
|
| 107 |
+
Every sentence must pass a 14-rule quality filter pipeline before inclusion. The full specification is available in `guidelines/00. Sentence Selection/`.
|
| 108 |
|
| 109 |
+
**Common filters** (all domains):
|
|
|
|
|
|
|
| 110 |
|
| 111 |
| Category | Rule | Condition |
|
| 112 |
|----------|------|-----------|
|
| 113 |
| Structure | Length bounds | 20--300 characters |
|
| 114 |
| Structure | Minimum words | >= 4 words |
|
| 115 |
| Structure | Proper start | First character uppercase or digit |
|
| 116 |
+
| Structure | Proper end | Terminal punctuation (`.!?...`) |
|
| 117 |
| Language | Vietnamese content | At least one Vietnamese diacritical character |
|
| 118 |
| Language | Not mostly uppercase | Uppercase characters <= 50% |
|
| 119 |
+
| Language | Language detection | `lang_detect()` == `"vi"` with fallback |
|
| 120 |
| Markup | No HTML/template | Reject `{`, `}`, `<`, `>`, `\|` |
|
| 121 |
+
| Markup | No template key=value | Reject `\w+=\w+` (allow spaced `=`) |
|
| 122 |
+
| Markup | No file extensions | Reject `.jpg`, `.png`, `.gif`, etc. |
|
| 123 |
+
| Brackets | Balanced | `(` count == `)` count |
|
| 124 |
+
| Glued text | Multi-tone detection | Reject tokens with 2+ toned vowels |
|
| 125 |
+
| Glued text | Digit-letter glue | Reject toned vowel AND `\d[letter]` pattern |
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
**Table 2**: Quality filter rules applied to all sentences.
|
| 128 |
|
| 129 |
+
Domain-specific filters add further rules: legal header/article removal, news byline/caption filtering, Wikipedia stub/infobox/reference rejection, and stricter thresholds for book text (30--250 chars, 5--40 words, <= 30% uppercase, punctuation density limits).
|
| 130 |
|
| 131 |
+
### 3.3 Diversity-Aware Sampling
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
Initial sequential extraction produced low source diversity: fiction was dominated by 5 books (primarily Murakami's *1Q84*), and legal text came from only 106 documents. We replaced sequential extraction with **round-robin sampling** with per-source caps:
|
| 134 |
|
| 135 |
+
1. **Phase 1 (Candidate collection)**: Scan all documents, collecting up to 500 valid sentences per source.
|
| 136 |
+
2. **Phase 2 (Round-robin selection)**: Cycle through all sources, taking one sentence per source per round, with exact and near-duplicate deduplication.
|
|
|
|
|
|
|
| 137 |
|
| 138 |
+
Books are ranked by quality score (Goodreads rating weighted by number of ratings) and processed in descending order.
|
| 139 |
|
| 140 |
+
| Domain | Sequential | Round-robin |
|
| 141 |
|--------|:---:|:---:|
|
| 142 |
| Legal | 106 documents | 275 documents |
|
| 143 |
| News | 1,030 documents | 3,091 documents |
|
| 144 |
| Wikipedia | 180 articles | 785 articles |
|
| 145 |
| Fiction | 5 books | 72 books |
|
| 146 |
| Non-fiction | 20 books | 68 books |
|
| 147 |
+
| **Total** | **1,341 sources** | **4,291 sources** |
|
| 148 |
|
| 149 |
+
**Table 3**: Source diversity improvement from round-robin sampling.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
+
### 3.4 Deduplication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
+
Two levels of deduplication are applied during extraction:
|
| 154 |
|
| 155 |
+
- **Exact deduplication**: Raw sentence strings tracked in a `seen` set.
|
| 156 |
+
- **Near-duplicate detection**: All digit sequences normalized to `#`, then exact-matched. This catches formulaic sentences differing only in numbers (e.g., legal clauses referencing different article numbers).
|
| 157 |
|
| 158 |
+
### 3.5 BIO Annotation
|
| 159 |
|
| 160 |
+
Sentences are converted to syllable-level BIO format:
|
| 161 |
|
| 162 |
+
1. `underthesea.word_tokenize(sentence, format="text")` → compound tokens with underscores
|
| 163 |
+
2. `regex_tokenize()` → syllable splitting
|
| 164 |
+
3. First syllable → `B-W`, continuation syllables → `I-W`
|
| 165 |
|
| 166 |
Output format (VLSP 2013 compatible, tab-separated with comment headers):
|
| 167 |
|
| 168 |
```
|
| 169 |
# sent_id = vlc-1
|
| 170 |
+
# text = Mot doanh nghiep lon hoat dong hieu qua .
|
| 171 |
+
Mot B-W
|
| 172 |
+
doanh B-W
|
| 173 |
+
nghiep I-W
|
| 174 |
+
lon B-W
|
| 175 |
+
hoat B-W
|
| 176 |
+
dong I-W
|
| 177 |
+
hieu B-W
|
| 178 |
+
qua I-W
|
| 179 |
+
. B-W
|
| 180 |
```
|
| 181 |
|
| 182 |
+
### 3.6 Dataset Statistics
|
|
|
|
|
|
|
| 183 |
|
| 184 |
| | Train | Dev | Test | Total |
|
| 185 |
|---|---:|---:|---:|---:|
|
| 186 |
| Sentences | 80,000 | 10,000 | 10,000 | 100,000 |
|
| 187 |
+
| Words | 1,696,362 | 211,880 | 212,088 | 2,120,330 |
|
| 188 |
+
| Syllables | 2,229,051 | 278,364 | 278,798 | 2,786,213 |
|
| 189 |
+
| Avg word/sent | 21.20 | 21.19 | 21.21 | 21.20 |
|
| 190 |
+
| Avg syl/sent | 27.86 | 27.84 | 27.88 | 27.86 |
|
| 191 |
| Avg syl/word | 1.31 | 1.31 | 1.31 | 1.31 |
|
| 192 |
|
| 193 |
+
**Table 4**: UDD-WS v1.1 split statistics.
|
| 194 |
|
| 195 |
Splits are stratified by domain (each domain contributes exactly 20% to every split) with random seed 42 for reproducibility.
|
| 196 |
|
|
|
|
|
|
|
| 197 |
| Syllables per word | Count | Percentage |
|
| 198 |
|:---:|---:|---:|
|
| 199 |
| 1 | 1,403,963 | 70.48% |
|
|
|
|
| 202 |
| 4 | 4,384 | 0.22% |
|
| 203 |
| 5+ | 1,127 | 0.06% |
|
| 204 |
|
| 205 |
+
**Table 5**: Word length distribution. ~70% single-syllable, ~28% two-syllable compounds, consistent with Vietnamese linguistics.
|
| 206 |
|
| 207 |
+
| Domain | Avg Syl/Sent | Syl/Word | Character |
|
| 208 |
+
|--------|---:|---:|---|
|
| 209 |
+
| Legal | 33.2 | 1.49 | Longest sentences, most compounds |
|
| 210 |
+
| News | 32.9 | 1.33 | |
|
| 211 |
+
| Wikipedia | 31.2 | 1.30 | |
|
| 212 |
+
| Non-fiction | 22.1 | 1.22 | |
|
| 213 |
+
| Fiction | 19.9 | 1.18 | Shortest sentences, fewest compounds |
|
| 214 |
|
| 215 |
+
**Table 6**: Per-domain characteristics.
|
| 216 |
|
| 217 |
+
### 3.7 Silver-Standard Quality Assessment
|
| 218 |
|
| 219 |
+
The BIO annotations are generated automatically by `underthesea.word_tokenize()` (v2.1.0) and inherit its segmentation biases. We assess silver quality using a 7-rule diagnostic checker (`check_ws_errors.py`):
|
| 220 |
|
| 221 |
+
| Rule | Description | Unique Forms | Total Occurrences |
|
| 222 |
+
|------|-------------|-------------:|------------------:|
|
| 223 |
+
| 1 | Inconsistent segmentation | 3,592 | 67,612 |
|
| 224 |
+
| 4 | Long tokens (4+ syllables) | 928 | 4,606 |
|
| 225 |
+
| 5 | Punctuation boundary errors | 299 | 554 |
|
| 226 |
+
| 6 | Number-word boundary errors | 150 | 175 |
|
| 227 |
+
| 7 | Single-character anomalies | 13 | 972 |
|
| 228 |
|
| 229 |
+
**Table 7**: Silver-standard quality diagnostics.
|
| 230 |
|
| 231 |
+
**Inconsistent segmentation** (Rule 1) is the dominant issue: 3,592 unique word forms appear both as single tokens and as split syllables across the dataset. For example, *suc khoe* ("health") appears 410 times as a single token and 383 times as split --- a near 50-50 split. This 67,612/2,786,213 = **2.4% inconsistency rate** at the token level characterizes the noise floor of the silver standard.
|
| 232 |
|
| 233 |
+
Notable inconsistently segmented forms include:
|
| 234 |
|
| 235 |
+
| Form | As Single | As Split | Split Ratio |
|
| 236 |
+
|------|----------:|---------:|---:|
|
| 237 |
+
| suc khoe | 410 | 383 | 48.3% |
|
| 238 |
+
| cong hoa | 782 | 163 | 17.2% |
|
| 239 |
+
| goi la | 654 | 78 | 10.6% |
|
| 240 |
+
| nguoi ta | 26 | 530 | 95.3% |
|
| 241 |
+
| nhat la | 129 | 370 | 74.1% |
|
| 242 |
|
| 243 |
+
**Table 8**: Top inconsistently segmented forms (simplified).
|
| 244 |
|
| 245 |
+
Based on gold annotation from AL Cycle 1, we developed a rule-based fix pipeline (`fix_ws_errors.py`) that corrects 6,990 errors across the 100K sentences:
|
| 246 |
|
| 247 |
+
| Fix Type | Count | Description |
|
| 248 |
+
|----------|------:|-------------|
|
| 249 |
+
| Cross-boundary splits | 258 | Proper names merged with following words |
|
| 250 |
+
| Compound merges | 541 | Known compounds that were over-split |
|
| 251 |
+
| Foreign word splits | 5,375 | Latin-script multi-syllable tokens |
|
| 252 |
+
| Name boundary splits | 816 | Proper names extended across word boundaries |
|
| 253 |
+
| **Total** | **6,990** | **7.0% of sentences affected** |
|
| 254 |
|
| 255 |
+
**Table 9**: Fix pipeline corrections applied to silver data.
|
| 256 |
|
| 257 |
+
## 4. Active Learning Framework
|
| 258 |
+
|
| 259 |
+
### 4.1 Design Principles
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
|
| 261 |
+
Our AL framework is guided by four principles:
|
| 262 |
|
| 263 |
+
1. **Fixed evaluation before AL** (Phase 0): A randomly-sampled gold evaluation set must exist before any AL iteration begins, following Zhang et al. (2022), Shi et al. (2021), and standard practice in all AL literature.
|
| 264 |
+
2. **Sequential task pipeline**: WS → POS → DP, where each task's gold output feeds the next task's annotation pool, preventing cascading errors.
|
| 265 |
+
3. **Uncertainty + known error targeting**: Combining model uncertainty with known error pattern coverage ensures both model blind spots and systematic issues are addressed.
|
| 266 |
+
4. **Solo annotator QA**: Quality assurance through self-consistency checks, model-based error detection, and guideline self-auditing, rather than inter-annotator agreement.
|
| 267 |
|
| 268 |
+
### 4.2 Phase 0: Gold Evaluation Set
|
| 269 |
|
| 270 |
+
**Rationale**: The standard AL evaluation protocol requires a fixed, randomly-sampled gold test set that exists before any AL iteration (Zhang et al., 2022, Section 5.2; Farquhar et al., 2021; Luth et al., 2023). Without this:
|
| 271 |
+
- Learning curves (performance vs. annotation budget) cannot be plotted
|
| 272 |
+
- Selection bias from uncertainty sampling is undetectable
|
| 273 |
+
- Stopping criteria are unreliable
|
| 274 |
+
- Model-data coupling cannot be assessed
|
| 275 |
|
| 276 |
+
Our initial Cycle 1 selected 100 sentences by **highest CRF uncertainty**, producing 92 gold sentences with a domain distribution skewed toward fiction (30%) and Wikipedia (30%) rather than the balanced 20% per domain. These sentences represent the hardest cases (Word F1 = 0.78 vs. 0.98 on silver) and cannot serve as a representative evaluation set.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
|
| 278 |
+
**Protocol**:
|
| 279 |
|
| 280 |
+
1. **Random sample**: 500 sentences from the 20K dev+test pool, stratified by domain (100 per domain)
|
| 281 |
+
2. **Annotate**: Gold WS following the NIIVTB 9-rule guidelines
|
| 282 |
+
3. **Split**: 250 dev + 250 test (50 per domain per split)
|
| 283 |
+
4. **Freeze**: Never modified during AL --- no merging into training, no re-selection
|
| 284 |
+
5. **Exclude from AL pool**: These 500 sentences are removed from all future uncertainty scoring
|
| 285 |
|
| 286 |
+
**Size justification**: At ~26 syllables/sentence and ~20 words/sentence, 250 sentences provide ~5,000 words per evaluation set. While below the UD guideline of 10K words, this provides sufficient statistical power for word segmentation F1 evaluation. Comparable UD treebanks for under-resourced languages use similar sizes (Pomak: 635 test sentences; VTB: 1,123 test sentences for all three UD layers combined).
|
| 287 |
|
| 288 |
+
### 4.3 Three-Task Sequential Pipeline
|
| 289 |
+
|
| 290 |
+
The Vietnamese NLP pipeline is sequential: **Word Segmentation → POS Tagging → Dependency Parsing**. Each task depends on the output of the previous one. We apply active learning independently to each task with task-specific query strategies:
|
| 291 |
|
| 292 |
```
|
| 293 |
+
Task 1: Word Segmentation
|
| 294 |
+
Silver BIO → Train CRF → Score uncertainty → Annotate → Retrain
|
| 295 |
+
↓
|
| 296 |
+
Task 2: POS Tagging (on gold-segmented sentences)
|
| 297 |
+
Silver POS → Train CRF → Score uncertainty → Annotate → Retrain
|
| 298 |
+
↓
|
| 299 |
+
Task 3: Dependency Parsing (on gold-segmented + gold-POS sentences)
|
| 300 |
+
Silver DP → Train parser → Score head entropy → Annotate → Retrain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
```
|
| 302 |
|
| 303 |
+
### 4.4 Task 1: Word Segmentation
|
| 304 |
|
| 305 |
+
**Query strategy**: CRF token marginal uncertainty. For token at position $i$:
|
| 306 |
|
| 307 |
+
$$u_i = 1 - \max(P(\text{B-W}|x, i),\ P(\text{I-W}|x, i))$$
|
| 308 |
|
| 309 |
+
**Sentence score**: mean uncertainty across all tokens, weighted by multi-syllable word boundary density, plus a bonus for sentences containing known error patterns (4+ syllable tokens, dictionary-flagged forms).
|
| 310 |
|
| 311 |
+
**Cycles**: 200 sentences per cycle after Phase 0, evaluated on the fixed gold test set (250 sentences). Target: 2,000 gold WS sentences total. Stopping criterion: <0.1% F1 improvement on gold test over two consecutive cycles.
|
| 312 |
|
| 313 |
+
### 4.5 Task 2: POS Tagging
|
| 314 |
|
| 315 |
+
**Query strategy**: Tag marginal uncertainty + confusion-targeted selection. Two complementary criteria:
|
| 316 |
|
| 317 |
+
- **Token uncertainty**: $u_i = 1 - \max_t P(t|x, i)$ over 15 UPOS tags
|
| 318 |
+
- **Confusion density**: proportion of tokens matching known confusion pairs (AUX/VERB, NOUN/VERB, ADJ/VERB, DET/PRON, ADP/SCONJ)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 319 |
|
| 320 |
+
**Selection formula**: $\text{Score} = 0.6 \cdot \text{uncertainty} + 0.4 \cdot \text{confusion\_density}$
|
| 321 |
|
| 322 |
+
**Dependency**: Only sentences with verified gold WS from Task 1 enter the POS pool. Target: 1,000 gold POS sentences.
|
| 323 |
|
| 324 |
+
### 4.6 Task 3: Dependency Parsing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 325 |
|
| 326 |
+
**Query strategy**: Head entropy + DPP batch diversity + partial arc annotation (Li et al., 2016). Head entropy for token $i$:
|
| 327 |
|
| 328 |
+
$$H_i = -\sum_{h} P(h|x, i) \log P(h|x, i)$$
|
| 329 |
|
| 330 |
+
Within selected sentences, the annotator only corrects arcs where $H_i > \tau$ (top 30--40% most uncertain arcs), accepting parser output for confident arcs. Batch selection uses DPP with PhoBERT sentence embeddings as the kernel, combining informativeness with structural diversity.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
|
| 332 |
+
**Dependency**: Only sentences with gold WS + gold POS from Tasks 1--2 enter the DP pool. Target: 800--1,000 gold DP sentences with partial arc annotation.
|
| 333 |
|
| 334 |
+
### 4.7 Solo Annotator Quality Assurance
|
| 335 |
|
| 336 |
+
This project operates under a solo annotator constraint. Quality is ensured through five methods:
|
| 337 |
|
| 338 |
+
| Method | Purpose | Frequency |
|
| 339 |
+
|--------|---------|-----------|
|
| 340 |
+
| Self-consistency check | Re-annotate 5% blind | Every 200 sentences |
|
| 341 |
+
| Model-based error detection | Flag disagreements between retrained model and gold | After each AL cycle |
|
| 342 |
+
| Dictionary validation | Cross-check WS against Viet74K dictionary | Continuous |
|
| 343 |
+
| UD validator | Automated structural constraint checking | After each batch |
|
| 344 |
+
| Guideline self-audit | Review decisions against written guidelines | Weekly |
|
| 345 |
|
| 346 |
+
**Table 10**: Quality assurance framework for solo annotator.
|
| 347 |
|
| 348 |
+
**Self-consistency target**: >95% agreement between original and re-annotation. This is comparable to the 97.28% inter-annotator agreement reported for the NIIVTB project (Nguyen et al., 2018b).
|
| 349 |
|
| 350 |
+
**Anchoring bias mitigation**: The annotator corrects silver pre-annotations, creating anchoring bias. Guidelines explicitly instruct independent evaluation of each decision; periodic blind re-annotation measures the degree of anchoring.
|
| 351 |
|
| 352 |
+
### 4.8 Annotation Guideline Development
|
| 353 |
|
| 354 |
+
Vietnamese annotation guidelines are co-developed through the AL process, addressing language-specific phenomena:
|
|
|
|
| 355 |
|
| 356 |
+
1. **Word segmentation**: NIIVTB 9-rule framework adapted for UDD-1 domains (insertability test, semantic opacity, specific construction rules)
|
| 357 |
+
2. **POS tagging**: AUX word list, confusion pair decision procedures (*co the* test for VERB, *rat* test for ADJ)
|
| 358 |
+
3. **Dependency parsing**: Copula *la*, passive *duoc/bi*, serial verb constructions, classifier phrases, topic-comment structure
|
| 359 |
|
| 360 |
+
Guidelines evolve through a self-audit process: draft after Cycle 1, revision after Cycle 2 based on edge cases, consolidation after final cycle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
|
| 362 |
+
## 5. Experimental Setup
|
| 363 |
|
| 364 |
+
### 5.1 CRF Word Segmentation Model
|
| 365 |
|
| 366 |
+
We train a CRF word segmenter using pycrfsuite with L-BFGS optimization:
|
| 367 |
|
| 368 |
+
| Parameter | Value |
|
| 369 |
+
|-----------|-------|
|
| 370 |
+
| Algorithm | L-BFGS |
|
| 371 |
+
| c1 (L1 penalty) | 0.5 |
|
| 372 |
+
| c2 (L2 penalty) | 0.001 |
|
| 373 |
+
| Max iterations | 300 |
|
| 374 |
+
| Training data | 80K silver sentences (udd-ws-v1.1-train) |
|
| 375 |
+
| Feature template | Syllable n-grams, capitalization, character type |
|
| 376 |
|
| 377 |
+
The model is implemented in tree-1's word segmentation pipeline and produces token marginal probabilities for AL uncertainty scoring.
|
| 378 |
|
| 379 |
+
### 5.2 Evaluation Metrics
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 380 |
|
| 381 |
+
- **Syllable Accuracy**: Fraction of syllables with correct B-W/I-W tag
|
| 382 |
+
- **Word Precision**: Fraction of predicted words that match gold words
|
| 383 |
+
- **Word Recall**: Fraction of gold words that match predicted words
|
| 384 |
+
- **Word F1**: Harmonic mean of word precision and recall
|
| 385 |
+
- **Error types**: Over-merge (silver merges across word boundaries), over-split (silver splits within words)
|
| 386 |
|
| 387 |
+
### 5.3 AL Uncertainty Scoring
|
| 388 |
|
| 389 |
+
CRF token marginal uncertainty: $u_i = 1 - \max(P(\text{B-W}|x, i), P(\text{I-W}|x, i))$
|
| 390 |
|
| 391 |
+
Sentence-level composite score:
|
| 392 |
|
| 393 |
+
$$\text{score}(s) = \bar{u}(s) \times (1 + w_{\text{boundary}}) + 0.01 \times n_{\text{long}}$$
|
| 394 |
|
| 395 |
+
where $\bar{u}(s)$ is mean token uncertainty, $w_{\text{boundary}}$ weights multi-syllable word boundaries, and $n_{\text{long}}$ counts 4+ syllable tokens in the sentence.
|
| 396 |
|
| 397 |
+
Scoring is performed on the 20K dev+test sentences (excluding Phase 0 eval sentences in future cycles). Top-N sentences are selected for annotation in each cycle.
|
| 398 |
|
| 399 |
+
## 6. Results
|
| 400 |
|
| 401 |
+
### 6.1 CRF Baseline on Silver Data
|
| 402 |
|
| 403 |
+
**Cycle 0** (CRF trained on 80K silver sentences, evaluated on 10K silver test):
|
| 404 |
|
| 405 |
+
| Metric | Score |
|
| 406 |
+
|--------|-------|
|
| 407 |
+
| Syllable Accuracy | 0.9908 |
|
| 408 |
+
| Word F1 | **0.9834** |
|
| 409 |
+
| Word Precision | 0.9830 |
|
| 410 |
+
| Word Recall | 0.9838 |
|
| 411 |
|
| 412 |
+
**Table 11**: CRF baseline on silver test set.
|
|
|
|
|
|
|
|
|
|
| 413 |
|
| 414 |
+
Note: Silver-on-silver evaluation inflates scores because the model and test data share the same systematic biases from `underthesea.word_tokenize()`. The true performance on gold data is substantially lower (see Section 6.2).
|
| 415 |
|
| 416 |
+
**Uncertainty scoring** on 20K dev+test sentences:
|
| 417 |
+
- Mean uncertainty: 0.0103; mean composite score: 0.0136
|
| 418 |
+
- 8,636 sentences (43.2%) with score >= 0.01
|
| 419 |
+
- 848 sentences (4.2%) with score >= 0.05
|
| 420 |
+
- 1,068 sentences contain 4+ syllable tokens
|
| 421 |
|
| 422 |
+
### 6.2 AL Cycle 1: First Gold Evaluation
|
| 423 |
|
| 424 |
+
We selected the top 100 sentences by composite uncertainty score. After annotation, 92 sentences were exported as gold (3 skipped due to annotation gaps in Label Studio). These 92 sentences contain 1,506 syllables.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
|
| 426 |
+
**Important caveat**: These 92 sentences were selected by highest uncertainty, not randomly sampled. The results below represent CRF performance on the **hardest** sentences, not overall model performance.
|
| 427 |
|
| 428 |
+
| Metric | Cycle 0 CRF | Post-Cycle 1 CRF | Improvement |
|
| 429 |
+
|--------|-------------|-------------------|-------------|
|
| 430 |
+
| Syllable Accuracy | 0.8665 | 0.8758 | +0.0093 |
|
| 431 |
+
| Word Precision | 0.7934 | 0.7977 | +0.0043 |
|
| 432 |
+
| Word Recall | 0.7685 | 0.7998 | +0.0313 |
|
| 433 |
+
| Word F1 | **0.7808** | **0.7988** | **+0.0180** |
|
| 434 |
+
| Sentences with diffs | 75/92 | 74/92 | -1 |
|
|
|
|
|
|
|
| 435 |
|
| 436 |
+
**Table 12**: CRF vs. gold on 92 uncertainty-selected sentences.
|
| 437 |
|
| 438 |
+
The Post-Cycle 1 CRF was retrained on 80K fixed silver + 92 merged gold sentences, yielding +1.8% absolute F1 improvement on this diagnostic set.
|
| 439 |
|
| 440 |
+
**Per-domain breakdown** (Post-Cycle 1 CRF):
|
| 441 |
|
| 442 |
+
| Domain | N | F1 | Improvement |
|
| 443 |
+
|--------|---:|----:|----:|
|
| 444 |
+
| News | 8 | **0.8551** | +0.016 |
|
| 445 |
+
| Legal | 4 | **0.8316** | +0.119 |
|
| 446 |
+
| Non-fiction | 24 | 0.8168 | -0.007 |
|
| 447 |
+
| Fiction | 28 | 0.8127 | -0.002 |
|
| 448 |
+
| Wikipedia | 28 | **0.7472** | +0.040 |
|
| 449 |
|
| 450 |
+
**Table 13**: Per-domain F1 on uncertainty-selected gold sentences.
|
| 451 |
|
| 452 |
+
Wikipedia is the hardest domain (F1 = 0.747), driven by Sino-Vietnamese classical text and foreign names. Legal shows the largest improvement (+11.9%), though with only 4 sentences.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
|
| 454 |
+
**Domain distribution bias**: The uncertainty-selected set is heavily skewed: Fiction 30%, Wikipedia 30%, Non-fiction 26%, News 9%, Legal 4% --- far from the balanced 20% per domain. This confirms why uncertainty-selected data cannot serve as a representative evaluation set (see Section 4.2).
|
| 455 |
|
| 456 |
+
### 6.3 Post-Cycle 1: Silver Data Improvement
|
| 457 |
|
| 458 |
+
After applying the fix pipeline (6,990 corrections) and merging 92 gold sentences into training data, the retrained CRF shows modest improvement on silver test:
|
| 459 |
|
| 460 |
+
| Metric | Cycle 0 | Post-Cycle 1 | Improvement |
|
| 461 |
+
|--------|---------|-------------|-------------|
|
| 462 |
+
| Syllable Accuracy | 0.9908 | 0.9913 | +0.0005 |
|
| 463 |
+
| Word F1 | 0.9834 | **0.9842** | +0.0008 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 464 |
|
| 465 |
+
**Table 14**: CRF on silver test after fix pipeline + 92 gold.
|
| 466 |
|
| 467 |
+
The small improvement on silver test (+0.08%) contrasts with the larger improvement on gold (+1.8%), suggesting the silver test set is a poor proxy for true quality improvement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 468 |
|
| 469 |
+
### 6.4 Uncertainty Reduction After Cycle 1
|
| 470 |
|
| 471 |
+
Re-scoring the 20K dev+test sentences with the retrained model:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 472 |
|
| 473 |
+
| Statistic | Cycle 0 | Post-Cycle 1 | Change |
|
| 474 |
+
|-----------|---------|-------------|--------|
|
| 475 |
+
| Mean uncertainty | 0.0103 | 0.0099 | -3.9% |
|
| 476 |
+
| Mean composite score | 0.0136 | 0.0130 | -4.4% |
|
| 477 |
+
| Sentences with score >= 0.01 | 8,636 (43.2%) | 8,407 (42.0%) | -229 |
|
| 478 |
+
| Sentences with score >= 0.05 | 848 (4.2%) | 773 (3.9%) | -75 |
|
| 479 |
|
| 480 |
+
**Table 15**: Uncertainty reduction after Cycle 1 retraining.
|
| 481 |
|
| 482 |
+
## 7. Analysis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 483 |
|
| 484 |
+
### 7.1 Error Taxonomy
|
| 485 |
|
| 486 |
+
Analysis of the 92 gold sentences reveals 225 total errors (113 over-merge + 112 over-split). We identify six error categories:
|
| 487 |
|
| 488 |
+
**Category 1: Cross-boundary proper name merge** (most frequent). The CRF extends proper name spans into the following word:
|
| 489 |
+
- `Nguyen_Binh_Mua_dam` → `Nguyen_Binh` | `Mua` | `dam`
|
| 490 |
+
- `Tang_Hoang_Vinh_giu` → `Tang_Hoang_Vinh` | `giu`
|
| 491 |
|
| 492 |
+
**Root cause**: CRF continuation bias after proper name tokens.
|
| 493 |
|
| 494 |
+
**Category 2: Sino-Vietnamese classical text** (Wikipedia-specific). Classical Chinese quotations use mostly single-syllable words, but the CRF aggressively merges:
|
| 495 |
+
- `thien_dia_luu` → `thien_dia` | `luu`
|
| 496 |
+
- `tat_huu_tung` → `tat` | `huu` | `tung`
|
|
|
|
|
|
|
| 497 |
|
| 498 |
+
**Root cause**: CRF trained on modern Vietnamese where multi-syllable words are common.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 499 |
|
| 500 |
+
**Category 3: Foreign word merges**. Latin-script tokens merged as compounds:
|
| 501 |
+
- `DNA_replication` → `DNA` | `replication`
|
| 502 |
+
- `I_LOVE_YOU` → `I` | `LOVE` | `YOU`
|
| 503 |
|
| 504 |
+
**Category 4: Compound boundary shifts**. CRF merges across true word boundaries:
|
| 505 |
+
- `loi_nhuan_tich` + `luy` → `loi_nhuan` + `tich_luy` (boundary shift)
|
| 506 |
+
- `phong_ve_tinh` → `phong` + `ve_tinh` (over-merge)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 507 |
|
| 508 |
+
**Category 5: Compound under-merges** (over-splits). Known compounds split incorrectly:
|
| 509 |
+
- `Uy` | `ban` → `Uy_ban` ("committee")
|
| 510 |
+
- `linh` | `thu` → `linh_thu` ("soldier")
|
| 511 |
+
- `mu` | `rua` → `mu_rua` ("turtle shell")
|
| 512 |
|
| 513 |
+
**Category 6: Proper name under-merges**:
|
| 514 |
+
- `Truong_Han` | `Sieu` → `Truong_Han_Sieu`
|
| 515 |
+
- `Nicolas` | `Fatio_de` | `Duillier` → `Nicolas_Fatio_de_Duillier`
|
| 516 |
|
| 517 |
+
### 7.2 Error Distribution by Type
|
| 518 |
|
| 519 |
+
| Error Type | Count | Percentage |
|
| 520 |
+
|------------|------:|---:|
|
| 521 |
+
| Cross-boundary name merge | ~40 | 17.8% |
|
| 522 |
+
| Sino-Vietnamese boundary | ~35 | 15.6% |
|
| 523 |
+
| Foreign word merge | ~20 | 8.9% |
|
| 524 |
+
| Compound boundary shift | ~30 | 13.3% |
|
| 525 |
+
| Compound under-merge | ~50 | 22.2% |
|
| 526 |
+
| Proper name under-merge | ~20 | 8.9% |
|
| 527 |
+
| Other | ~30 | 13.3% |
|
| 528 |
+
| **Total** | **~225** | **100%** |
|
| 529 |
|
| 530 |
+
**Table 16**: Error distribution by category.
|
| 531 |
+
|
| 532 |
+
Over-merge (Categories 1--4, ~55%) slightly dominates over-split (Categories 5--6, ~31%), with the CRF showing a bias toward merging adjacent syllables.
|
| 533 |
+
|
| 534 |
+
### 7.3 Comparison with VLSP 2013
|
| 535 |
+
|
| 536 |
+
The VLSP 2013 shared task (Nguyen et al., 2013) established the Vietnamese WS benchmark with ~75K news sentences. Key differences with UDD-WS v1.1:
|
| 537 |
+
|
| 538 |
+
| Aspect | VLSP 2013 | UDD-WS v1.1 |
|
| 539 |
+
|--------|-----------|-------------|
|
| 540 |
+
| Size | ~75K sentences | 100K sentences |
|
| 541 |
+
| Domains | News only | 5 domains |
|
| 542 |
+
| Format | Space-separated | BIO (syllable-level) |
|
| 543 |
+
| Standard | Gold (human-annotated) | Silver (auto-annotated) |
|
| 544 |
+
| SOTA F1 | 97.90% (VnCoreNLP) | 98.42% (CRF, silver-on-silver) |
|
| 545 |
+
|
| 546 |
+
**Table 17**: Comparison with VLSP 2013 WS shared task.
|
| 547 |
+
|
| 548 |
+
Our silver-on-silver F1 of 98.42% is not directly comparable to the VLSP 2013 gold-standard F1 of 97.90%, as the former benefits from shared biases between training and test data. The true performance on gold data, as measured by Phase 0, will provide a fair comparison point.
|
| 549 |
+
|
| 550 |
+
## 8. Conclusion and Future Work
|
| 551 |
+
|
| 552 |
+
We presented UDD-WS v1.1, a 100,000-sentence multi-domain Vietnamese word segmentation dataset, and a three-task active learning framework for gold-standard UD annotation. Our key findings from the first AL cycle are:
|
| 553 |
+
|
| 554 |
+
1. **AL selection is effective**: CRF uncertainty scoring correctly identifies hard cases (F1 = 0.80 on uncertainty-selected gold vs. 0.98 on silver).
|
| 555 |
+
2. **Targeted retraining helps**: 92 gold sentences yield +1.8% F1 improvement on the diagnostic set, demonstrating the value of selective correction.
|
| 556 |
+
3. **Error analysis informs fixes**: The error taxonomy directly informed a fix pipeline correcting 6,990 silver errors, improving model robustness.
|
| 557 |
+
4. **Fixed evaluation is essential**: Uncertainty-selected sentences are not representative (skewed domain distribution, artificially low F1). Phase 0 addresses this with a randomly-sampled gold evaluation set.
|
| 558 |
+
|
| 559 |
+
**Immediate next steps**:
|
| 560 |
+
1. Phase 0: Annotate 500 randomly-sampled gold sentences as fixed evaluation set (250 dev + 250 test)
|
| 561 |
+
2. Establish true F1 baseline on representative gold data
|
| 562 |
+
3. Continue AL Cycle 2+ with proper evaluation infrastructure
|
| 563 |
+
4. Develop POS and DP annotation guidelines
|
| 564 |
+
|
| 565 |
+
**Longer-term goals**:
|
| 566 |
+
- Complete 2,000 gold WS sentences through AL Cycles 2--10
|
| 567 |
+
- 1,000 gold POS sentences (Task 2)
|
| 568 |
+
- 800--1,000 gold DP sentences with partial arc annotation (Task 3)
|
| 569 |
+
- Consolidated Vietnamese annotation guidelines for WS, POS, and DP
|
| 570 |
+
- First reported in-domain LAS/UAS for multi-domain Vietnamese text
|
| 571 |
+
|
| 572 |
+
## Limitations
|
| 573 |
|
| 574 |
+
1. **Silver-standard quality**: The 100K BIO annotations are generated by `underthesea.word_tokenize()` and inherit its biases. The 2.4% token-level inconsistency rate (3,592 forms, 67,612 occurrences) means the dataset is suitable for CRF training but not for evaluation of segmentation quality. Models trained on this data will learn the tokenizer's systematic errors.
|
| 575 |
|
| 576 |
+
2. **No gold evaluation set yet**: Phase 0 is planned but not yet executed. All current results are either on silver test data (inflated) or on uncertainty-selected gold data (biased). The true model performance on representative data is unknown.
|
| 577 |
|
| 578 |
+
3. **Single annotator**: All gold annotations come from a single annotator, precluding inter-annotator agreement measurement. Self-consistency checks (>95% target) provide a weaker quality guarantee than dual annotation with adjudication.
|
| 579 |
|
| 580 |
+
4. **Anchoring bias**: The annotator corrects silver pre-annotations, creating anchoring bias toward the parser's output. While guidelines instruct independent evaluation and periodic blind re-annotation measures the degree of bias, some residual anchoring is expected.
|
| 581 |
|
| 582 |
+
5. **CRF uncertainty miscalibration**: The CRF is trained on silver data with systematic errors. Its uncertainty estimates may be miscalibrated for exactly the errors that matter most: if the training data consistently segments a form in both directions (e.g., *suc khoe* at 48% split ratio), the CRF will be uncertain for the wrong reason (training noise vs. genuine ambiguity).
|
| 583 |
|
| 584 |
+
6. **Cost estimates from outdated reference**: Throughput estimates (80 sent/day WS, 40 sent/day POS, 15--25 sent/day DP) are adapted from Brants and Skut (1998), a 28-year-old study on German constituency treebanks. No pilot timing study has been conducted for Vietnamese. Actual throughput may differ.
|
|
|
|
|
|
|
|
|
|
| 585 |
|
| 586 |
+
7. **Unvalidated AL hyperparameters**: Several AL parameters are set without validation: the confusion-targeted POS selection weight (alpha = 0.6), the DP partial annotation threshold (tau), the DPP kernel construction. These will be tuned empirically as AL cycles proceed.
|
| 587 |
|
| 588 |
+
8. **Domain difficulty imbalance**: The balanced 20K-per-domain design treats all domains equally in sentence count, but annotation difficulty varies substantially (legal text has more multi-syllable compounds; Wikipedia has Sino-Vietnamese classical text). Budget allocation should account for this.
|
| 589 |
|
| 590 |
+
## Ethics Statement
|
| 591 |
+
|
| 592 |
+
**Data licensing**: The source datasets (`undertheseanlp/UTS_VLC`, `undertheseanlp/UVN-1`, `undertheseanlp/UVW-2026`, `undertheseanlp/UVB-v0.1`) are hosted on HuggingFace. Users should verify the licensing terms of each source dataset before commercial use of UDD-WS v1.1.
|
| 593 |
+
|
| 594 |
+
**Annotation labor**: All annotation is performed by a single Vietnamese linguist who is also the project lead. No crowd-sourced annotation or underpaid labor is involved.
|
| 595 |
+
|
| 596 |
+
**Potential for misuse**: The 100K silver-standard dataset, if used uncritically as gold-standard training data, could propagate systematic segmentation errors to downstream applications. Users should note the silver-standard caveat (Section 3.7) and the 2.4% inconsistency rate.
|
| 597 |
+
|
| 598 |
+
**Bias considerations**: The dataset inherits biases from both the source texts (e.g., legal text from Vietnamese law, fiction from popular novels) and the `underthesea` tokenizer. The round-robin sampling mitigates source concentration bias but does not address content-level biases in the source corpora.
|
| 599 |
+
|
| 600 |
+
## Acknowledgments
|
| 601 |
+
|
| 602 |
+
We thank the anonymous reviewer of TECHNICAL_REPORT v1.0 for detailed feedback that motivated this work.
|
| 603 |
|
| 604 |
## References
|
| 605 |
|
| 606 |
+
- Baldridge, J. and Osborne, M. (2004). Active Learning and the Total Cost of Annotation. In *Proceedings of EMNLP 2004*, pp. 9--16.
|
| 607 |
|
| 608 |
+
- Bouma, G. and van Noord, G. (2017). Increasing Return on Annotation Investment: The Automatic Construction of a Universal Dependency Treebank for Dutch. In *Proceedings of the NoDaLiDa 2017 Workshop on Universal Dependencies (UDW 2017)*, pp. 19--26.
|
| 609 |
+
|
| 610 |
+
- Brants, T. and Skut, W. (1998). Automation of Treebank Annotation. In *Proceedings of CoNLL 1998*, pp. 49--57.
|
| 611 |
|
| 612 |
- de Marneffe, M.-C., Manning, C.D., Nivre, J., and Zeman, D. (2021). Universal Dependencies. *Computational Linguistics*, 47(2):255--308.
|
| 613 |
|
| 614 |
+
- Farquhar, S., Gal, Y., and Rainforth, T. (2021). On Statistical Bias in Active Learning: How and When to Fix It. In *Proceedings of ICLR 2021*.
|
| 615 |
+
|
| 616 |
- Hwa, R. (2004). Sample Selection for Statistical Parsing. *Computational Linguistics*, 30(3):253--276.
|
| 617 |
|
| 618 |
- Li, Z., Zhang, M., Zhang, Y., Liu, Z., Chen, W., Wu, H., and Wang, H. (2016). Active Learning for Dependency Parsing with Partial Annotation. In *Proceedings of ACL 2016*, pp. 344--354.
|
| 619 |
|
| 620 |
+
- Luth, L., Strater, T., Borth, D., and Meinhardt, T. (2023). Navigating the Pitfalls of Active Learning Evaluation: A Systematic Framework for Meaningful Assessment. In *Proceedings of NeurIPS 2023*.
|
| 621 |
+
|
| 622 |
+
- Marcus, M.P., Santorini, B., and Marcinkiewicz, M.A. (1993). Building a Large Annotated Corpus of English: The Penn Treebank. *Computational Linguistics*, 19(2):313--330.
|
| 623 |
+
|
| 624 |
+
- Nguyen, K.-H. (2018). BKTreebank: Building a Vietnamese Dependency Treebank. In *Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)*, pp. 2772--2777. Miyazaki, Japan.
|
| 625 |
+
|
| 626 |
+
- Nguyen, C.T., Nguyen, T.P., Phan, X.H., and Nguyen, T.T. (2013). Vietnamese Word Segmentation at VLSP 2013. In *Proceedings of VLSP 2013 Workshop*.
|
| 627 |
+
|
| 628 |
+
- Nguyen, P.T., Vu, X.L., Nguyen, T.M.H., Nguyen, V.H., and Le, H.P. (2014). Building a Large Syntactically-Annotated Corpus of Vietnamese. In *Proceedings of LREC 2014*.
|
| 629 |
+
|
| 630 |
+
- Nguyen, D.Q., Nguyen, D.Q., Vu, T., Dras, M., and Johnson, M. (2018a). A Fast and Accurate Vietnamese Word Segmenter. In *Proceedings of LREC 2018*, pp. 2582--2586.
|
| 631 |
+
|
| 632 |
+
- Nguyen, Q.M., Vu, T.L., Nguyen, D.Q., Nguyen, M.Q., and Phan, T.H. (2018b). Ensuring Annotation Consistency and Accuracy for Vietnamese Treebank. *Language Resources and Evaluation*, 52:873--899. Springer.
|
| 633 |
+
|
| 634 |
+
- Settles, B. and Craven, M. (2008). An Analysis of Active Learning Strategies for Sequence Labeling Tasks. In *Proceedings of EMNLP 2008*, pp. 1070--1079.
|
| 635 |
+
|
| 636 |
+
- Shi, T., Benton, A., Malioutov, I., and Irsoy, O. (2021). Diversity-Aware Batch Active Learning for Dependency Parsing. In *Proceedings of NAACL 2021*, pp. 2616--2626.
|
| 637 |
|
| 638 |
+
- Zhang, Z., Strubell, E., and Hovy, E. (2022). A Survey of Active Learning for Natural Language Processing. In *Proceedings of EMNLP 2022*, pp. 6166--6190.
|
| 639 |
|
| 640 |
- Zhang, Z., Strubell, E., and Hovy, E. (2023). Data-efficient Active Learning for Structured Prediction with Partial Annotation and Self-Training. In *Findings of EMNLP 2023*.
|
| 641 |
+
|
| 642 |
+
## Appendix A: Sentence Quality Score
|
| 643 |
+
|
| 644 |
+
Beyond binary pass/fail filters, each sentence is assigned a continuous quality score via `sentence_score()` returning a value in (0, 1):
|
| 645 |
+
|
| 646 |
+
| Sub-score | Weight | Description |
|
| 647 |
+
|-----------|--------|-------------|
|
| 648 |
+
| Length | 0.20 | Gaussian around ideal range [60, 200] chars |
|
| 649 |
+
| Word count | 0.15 | Gaussian around ideal range [8, 35] words |
|
| 650 |
+
| Structure | 0.20 | Proper start (+0.5) + proper end (+0.5) |
|
| 651 |
+
| Cleanliness | 0.30 | Penalties for markup, brackets, glued text |
|
| 652 |
+
| Completeness | 0.15 | Penalties for unbalanced quotes, digit ratio |
|
| 653 |
+
| Vietnamese density | multiplier | Ratio of Vietnamese diacritical chars to total |
|
| 654 |
+
|
| 655 |
+
Formula: `final_score = clamp(base_score * vietnamese_density, 0.01, 0.99)`
|
| 656 |
+
|
| 657 |
+
## Appendix B: Full Error Examples from AL Cycle 1
|
| 658 |
+
|
| 659 |
+
### B.1 Cross-Boundary Proper Name Merges
|
| 660 |
+
|
| 661 |
+
| Silver (wrong) | Gold (correct) | Domain |
|
| 662 |
+
|----------------|----------------|--------|
|
| 663 |
+
| `Nguyen_Binh_Mua_dam` | `Nguyen_Binh` \| `Mua` \| `dam` | Fiction |
|
| 664 |
+
| `Chu_Du_tinh_tinh` | `Chu_Du` \| `tinh_tinh` | Non-fiction |
|
| 665 |
+
| `Tang_Hoang_Vinh_giu` | `Tang_Hoang_Vinh` \| `giu` | News |
|
| 666 |
+
| `Khong_Dinh_Dat_thoi` | `Khong_Dinh_Dat` \| `thoi` | Wikipedia |
|
| 667 |
+
|
| 668 |
+
### B.2 Sino-Vietnamese Classical Text
|
| 669 |
+
|
| 670 |
+
| Silver (wrong) | Gold (correct) | sent_id |
|
| 671 |
+
|----------------|----------------|---------|
|
| 672 |
+
| `thien_dia_luu` | `thien_dia` \| `luu` | uvw-11634 |
|
| 673 |
+
| `tat_huu_tung` | `tat` \| `huu` \| `tung` | uvw-379 |
|
| 674 |
+
| `am_thuc_chi` | `am_thuc` \| `chi` | uvw-379 |
|
| 675 |
+
|
| 676 |
+
### B.3 Compound Boundary Shifts
|
| 677 |
+
|
| 678 |
+
| Silver (wrong) | Gold (correct) | Type |
|
| 679 |
+
|----------------|----------------|------|
|
| 680 |
+
| `loi_nhuan_tich` + `luy` | `loi_nhuan` + `tich_luy` | Boundary shift |
|
| 681 |
+
| `phong_ve_tinh` | `phong` + `ve_tinh` | Over-merge |
|
| 682 |
+
| `quy_pham_phap_luat` | `quy_pham` + `phap_luat` | Over-merge |
|
| 683 |
+
|
| 684 |
+
## Appendix C: Cost Estimation
|
| 685 |
+
|
| 686 |
+
| Task | Sentences | Est. Speed | Est. Days | Calendar Weeks |
|
| 687 |
+
|------|-----------|-----------|-----------|----------------|
|
| 688 |
+
| Phase 0 (gold eval) | 500 | 80 sent/day | 6 days | 1 week |
|
| 689 |
+
| WS AL (9 cycles x 200) | 1,800 | 80 sent/day | 23 days | 5 weeks |
|
| 690 |
+
| POS (4 cycles x 250) | 1,000 | 40 sent/day | 25 days | 5 weeks |
|
| 691 |
+
| DP Pilot (full) | 50 | 15 sent/day | 3 days | 1 week |
|
| 692 |
+
| DP Partial (5 cycles x 150--200) | 750--1,000 | 25 sent/day | 30--40 days | 6--8 weeks |
|
| 693 |
+
| Guideline development | -- | -- | 10 days | distributed |
|
| 694 |
+
| Self-consistency audits | ~200 re-annotated | -- | 5 days | distributed |
|
| 695 |
+
| **Total** | | | **~106 days** | **~13 weeks** |
|
| 696 |
+
|
| 697 |
+
**Table C.1**: Cost estimation for solo annotator, including Phase 0.
|
| 698 |
+
|
| 699 |
+
## Appendix D: Relation to UDD-1 v1.0
|
| 700 |
+
|
| 701 |
+
UDD-WS v1.1 does not replace UDD-1 v1.0. The relationship is:
|
| 702 |
+
|
| 703 |
+
| | v1.0 | v1.1 |
|
| 704 |
+
|---|---|---|
|
| 705 |
+
| **UD Treebank** | 10K sentences, legal domain, silver CoNLL-U | Unchanged |
|
| 706 |
+
| **WS Dataset** | N/A | 100K sentences, 5 domains, BIO format |
|
| 707 |
+
| **Gold Annotation** | None | Phase 0 (500 eval) + AL cycles (planned) |
|
| 708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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Review: UDD-WS v1.1: A 100K-Sentence Multi-Domain Vietnamese Word Segmentation Dataset and Active Learning Framework for Gold-Standard UD Annotation
|
| 2 |
+
|
| 3 |
+
**Reviewed**: TECHNICAL_REPORT_v1.1.md
|
| 4 |
+
**Date**: 2026-02-13
|
| 5 |
+
**Review format**: ACL Rolling Review (ARR)
|
| 6 |
+
**Note**: This is a re-review following major revision from the initial v1.1 submission. The paper has been restructured to ACL Long Paper format and incorporates Phase 0 gold evaluation methodology.
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Paper Summary
|
| 11 |
+
|
| 12 |
+
This paper presents UDD-WS v1.1, a 100,000-sentence silver-standard Vietnamese word segmentation dataset in BIO format spanning five domains (legal, news, Wikipedia, fiction, non-fiction), along with a three-task active learning framework for constructing gold-standard Universal Dependencies annotations. The paper reports results from a first AL cycle (92 gold-annotated sentences selected by CRF uncertainty), identifies the methodological necessity of a fixed gold evaluation set (Phase 0) before continuing AL, and provides a detailed error taxonomy of Vietnamese word segmentation errors across domains. The work is positioned as both a resource contribution (the multi-domain WS dataset) and a methodology contribution (the sequential AL pipeline with proper evaluation infrastructure).
|
| 13 |
+
|
| 14 |
+
## Summary of Strengths
|
| 15 |
+
|
| 16 |
+
1. **Excellent ACL-compliant structure with mandatory sections (full paper)**: The revision successfully restructures to ACL Long Paper format with all mandatory sections: Limitations (8 explicit items), Ethics Statement, proper Related Work with comprehensive treebank comparison (Table R1), and clear separation of Experimental Setup / Results / Analysis. The Limitations section is notably thorough and self-aware --- particularly items 2 (no gold eval yet), 5 (CRF miscalibration on inconsistent silver data), and 6 (cost estimates from 1998 study). This level of intellectual honesty is rare and strengthens the paper.
|
| 17 |
+
|
| 18 |
+
2. **Phase 0 gold evaluation set methodology (Section 4.2)**: The most significant improvement over the initial draft. The paper now correctly identifies that uncertainty-selected sentences cannot serve as representative evaluation data (domain skew: Fiction 30%/Wikipedia 30% vs. target 20% each; F1 = 0.78 reflecting hardest cases, not overall performance). The Phase 0 protocol --- random stratified sampling of 500 sentences, 250 dev + 250 test, frozen before AL --- follows established methodology (Zhang et al., 2022; Farquhar et al., 2021; Luth et al., 2023). This transforms a fundamental methodological flaw into a design strength.
|
| 19 |
+
|
| 20 |
+
3. **Comprehensive Vietnamese treebank comparison (Section 2.2, Table R1)**: The Related Work now covers all five relevant Vietnamese treebanks (VnDT, UD_Vietnamese-VTB, BKTreebank, NIIVTB, UDD-1 v1.0) with a clear comparison table. BKTreebank's inclusion is particularly valuable --- its IAA figures (94.5% POS, 80.4% LAS with 3 annotators + reviewer) provide the benchmark against which UDD-1's solo-annotator approach should be evaluated. The observation that "all existing Vietnamese treebanks are limited to news text" positions UDD-1's multi-domain contribution clearly.
|
| 21 |
+
|
| 22 |
+
4. **Well-executed first AL cycle with actionable error taxonomy (Sections 6.2, 7.1)**: The 92 gold sentences produce concrete, useful results: a 6-category error taxonomy (cross-boundary name merge, Sino-Vietnamese boundaries, foreign words, compound shifts, compound under-merges, name under-merges), per-domain F1 breakdown revealing Wikipedia as hardest (0.747) and news as easiest (0.855), and +1.8% F1 improvement from targeted retraining. The error analysis directly informed the fix pipeline (6,990 corrections), demonstrating the practical value of even a small gold annotation effort.
|
| 23 |
+
|
| 24 |
+
5. **Silver quality assessment with quantified inconsistency rate (Section 3.7)**: The paper now openly reports the 3,592 inconsistently segmented forms (67,612 occurrences, 2.4% token-level inconsistency) with concrete examples (e.g., *suc khoe* at 48.3% split ratio). This is a significant finding about the `underthesea` tokenizer's behavior and is essential context for anyone using the dataset.
|
| 25 |
+
|
| 26 |
+
6. **Honest silver-vs-gold performance comparison (Section 6.3)**: The observation that silver-on-silver F1 improvement (+0.08%) vastly understates true quality improvement on gold (+1.8%) is an important methodological insight. The paper correctly concludes that "the silver test set is a poor proxy for true quality improvement."
|
| 27 |
+
|
| 28 |
+
## Summary of Weaknesses
|
| 29 |
+
|
| 30 |
+
1. **Phase 0 is still planned, not executed (Section 4.2)**: While the methodology is now correct, the fundamental weakness from the initial review persists: **no representative gold evaluation exists**. All reported F1 numbers are either on silver data (inflated by shared bias) or on uncertainty-selected data (deflated by selection toward hardest cases). The true model performance on representative data remains unknown. The paper cannot report a credible baseline F1 number. This limits the paper to a "methodology + plan" contribution rather than a resource contribution with demonstrated quality.
|
| 31 |
+
|
| 32 |
+
2. **Missing critical related work on Vietnamese cross-domain parsing (DGDT, FDSE 2023)**: Two highly relevant recent publications are absent:
|
| 33 |
+
- **DGDT (2025)**: Huynh et al. published a Vietnamese Domain Generalization Dependency Treebank with train/dev/test from completely separated domains, showing 3.27% UAS / 5.09% LAS cross-domain performance drops. This directly validates UDD-1's multi-domain motivation and provides a benchmark for cross-domain Vietnamese parsing.
|
| 34 |
+
- **BERT-based sentence recommendation for Vietnamese UD (FDSE 2023)**: A Vietnamese-specific AL method for UD treebank construction using BERT to select informative sentences. This is the closest prior work to UDD-1's AL approach for Vietnamese and must be cited and discussed.
|
| 35 |
+
- **VLSP 2019/2020 dependency parsing shared tasks**: These established Vietnamese DP benchmarks (best LAS 76.27 in VLSP 2020) are not cited despite being directly relevant to Task 3 (dependency parsing).
|
| 36 |
+
|
| 37 |
+
3. **No comparison with transformer-based WS systems (Section 7.3)**: The VLSP 2013 comparison (Table 17) lists VnCoreNLP at 97.90% as the WS SOTA. However, transformer-based systems now achieve 98.31--98.35% F1 (SpanSeg + XLM-RoBERTa; NlpHUST ELECTRA fine-tuning). The paper should acknowledge this and discuss why a CRF approach is appropriate for the AL loop (speed for uncertainty scoring, marginal probability access) despite lower ceiling accuracy. Additionally, ViWordFormer (AAAI 2025) challenges the entire syllable-to-word segmentation paradigm and warrants discussion.
|
| 38 |
+
|
| 39 |
+
4. **Error distribution counts are approximate (Section 7.2, Table 16)**: All counts in the error taxonomy are prefixed with "~" (e.g., "~40", "~35", "~20"). For 92 gold sentences with 225 total errors, exact counts should be computable and reported. The approximation undermines the quantitative rigor of the analysis section.
|
| 40 |
+
|
| 41 |
+
5. **Underspecified AL composite scoring formula (Section 5.3)**: The sentence-level score formula includes $w_{\text{boundary}}$ ("weights multi-syllable word boundaries") without defining this term precisely. How is boundary weight computed? Is it a count, a ratio, a learned parameter? The $0.01 \times n_{\text{long}}$ additive term is specified but the boundary weight is not. This makes the query strategy not fully reproducible.
|
| 42 |
+
|
| 43 |
+
6. **Table numbering inconsistency**: Table R1 (treebank comparison in Related Work) breaks the sequential numbering (Tables 1--17 in the main body, then "Table R1" interspersed). This should be integrated into the main numbering sequence or clearly designated as an in-text table.
|
| 44 |
+
|
| 45 |
+
## Scores
|
| 46 |
+
|
| 47 |
+
### Soundness: 3
|
| 48 |
+
|
| 49 |
+
The WS dataset is a real artifact with documented quality characteristics. The Phase 0 methodology is correct and well-justified. The AL Cycle 1 results (92 gold sentences) provide genuine empirical evidence. However, key metrics remain unavailable (no representative gold F1), error counts are approximate, and the AL scoring formula is underspecified. The paper makes no unsupported claims --- it is honest about what is planned vs. completed --- but the ratio of planned-to-completed work remains high.
|
| 50 |
+
|
| 51 |
+
### Excitement: 3
|
| 52 |
+
|
| 53 |
+
The paper addresses a genuine gap: no multi-domain Vietnamese WS dataset exists, and no prior work applies sequential AL across cascading NLP tasks (WS → POS → DP). The Phase 0 methodology and the self-critical identification of evaluation bias are intellectually valuable. However, excitement is moderated by the limited executed results (92 gold sentences out of a planned 2,390) and the absence of a representative gold baseline.
|
| 54 |
+
|
| 55 |
+
### Overall Assessment: 3
|
| 56 |
+
|
| 57 |
+
The paper has improved substantially from the initial v1.1 draft. The ACL structure is properly followed, the Related Work is comprehensive (with gaps noted above), the Limitations section is unusually thorough, and the Phase 0 methodology corrects a fundamental flaw. The paper now functions as a reasonable combined resource/methodology contribution. To move from borderline to solid accept, two additions would suffice: (1) execute Phase 0 and report a representative gold F1 baseline, and (2) address the missing Vietnamese cross-domain parsing references (DGDT, FDSE 2023, VLSP 2019/2020).
|
| 58 |
+
|
| 59 |
+
### Reproducibility: 4
|
| 60 |
+
|
| 61 |
+
The data pipeline is well-documented with scripts, quality filter specifications, random seed (42), and HuggingFace dataset identifiers. The CRF training configuration is specified (Table in Section 5.1). The BIO format is VLSP 2013-compatible. The main reproducibility gap is the AL scoring formula's underspecified boundary weight term. The `underthesea` version (v2.1.0) is now stated.
|
| 62 |
+
|
| 63 |
+
### Confidence: 4
|
| 64 |
+
|
| 65 |
+
I am familiar with the Vietnamese NLP, Universal Dependencies, active learning, and treebank construction literature. I have researched the current SOTA and verified claims against published results. I have reviewed the supporting materials (WS_CHECK_REPORT, AL_CYCLE1_REPORT, PLAN_v1.1) to contextualize the contribution.
|
| 66 |
+
|
| 67 |
+
## Detailed Comments
|
| 68 |
+
|
| 69 |
+
### Technical Soundness
|
| 70 |
+
|
| 71 |
+
**Dataset (Section 3)**: The data collection pipeline is technically sound. The 14-rule quality filter is well-specified (Table 2) with appropriate domain-specific extensions. Round-robin sampling demonstrably improves source diversity (Table 3: 1,341 → 4,291 sources). The two-level deduplication (exact + digit-normalized) is appropriate for legal text. The BIO annotation procedure is standard and reproducible.
|
| 72 |
+
|
| 73 |
+
The silver quality assessment (Section 3.7) is a significant addition. The 2.4% inconsistency rate (67,612/2,786,213 tokens) is clearly reported with concrete examples. However, the paper could distinguish between *genuine ambiguity* (forms like *nguoi ta* where both segmentations are linguistically defensible in different contexts) and *tokenizer errors* (forms like *suc khoe* where one segmentation is clearly correct). This distinction matters for AL: genuinely ambiguous forms should not necessarily be "fixed."
|
| 74 |
+
|
| 75 |
+
**AL Framework (Section 4)**: The Phase 0 design is methodologically sound and well-grounded in literature. The four design principles (Section 4.1) are clearly stated and justified. The three-task sequential pipeline is correctly designed to prevent cascading errors.
|
| 76 |
+
|
| 77 |
+
However, the paper does not address the **pool bias problem**: Phase 0 samples from the 20K dev+test silver pool, which already excludes 80K training sentences. If the dev+test pool has different characteristics from the training pool (e.g., domain distribution, sentence length, difficulty), the Phase 0 evaluation set may still not be representative of overall model performance. The paper should verify that the dev+test pool has the same distributional properties as the full 100K dataset.
|
| 78 |
+
|
| 79 |
+
**Results (Section 6)**: The results are correctly presented with appropriate caveats. The distinction between silver-on-silver evaluation (inflated) and gold evaluation (biased by uncertainty selection) is clearly made. The +1.8% F1 improvement from 92 gold sentences is a genuine result, though measured on the diagnostic set rather than representative data.
|
| 80 |
+
|
| 81 |
+
One concern: the paper reports Post-Cycle 1 F1 improvement on the **same 92 sentences** that were merged into training data. While this demonstrates that the fix pipeline and gold merge improved the model's predictions on hard cases, it is not a valid held-out evaluation. The paper should note this explicitly --- currently, the caveat about uncertainty selection is present but the data leakage issue (evaluation on training data) is not flagged.
|
| 82 |
+
|
| 83 |
+
### Novelty and Contribution
|
| 84 |
+
|
| 85 |
+
The paper's novelty lies in three areas:
|
| 86 |
+
|
| 87 |
+
1. **First multi-domain Vietnamese WS dataset**: Research confirms no comparable resource exists. The closest analogs are Chinese PKUSEG (4 domains) and Thai BEST2010 (4 domains). UDD-WS v1.1 with 5 domains and 100K sentences fills a genuine gap.
|
| 88 |
+
|
| 89 |
+
2. **Sequential AL across cascading NLP tasks**: The WS → POS → DP pipeline where each task's gold output feeds the next is novel. Prior AL work treats tasks independently or jointly, not sequentially with dependency constraints.
|
| 90 |
+
|
| 91 |
+
3. **Self-critical evaluation methodology**: The paper's identification of its own evaluation bias (Phase 0 rationale in Section 4.2) and the detailed Limitations section demonstrate methodological maturity. This meta-contribution --- showing how to correctly set up AL evaluation for treebank construction --- is valuable for the community.
|
| 92 |
+
|
| 93 |
+
The novelty is **moderate overall**: the individual techniques (CRF uncertainty, round-robin sampling, BIO format) are standard, but their combination for Vietnamese multi-domain treebank construction is new.
|
| 94 |
+
|
| 95 |
+
### Clarity and Presentation
|
| 96 |
+
|
| 97 |
+
The paper is well-structured and clearly written. The ACL format is properly followed with all mandatory sections. Key improvements from the initial draft:
|
| 98 |
+
|
| 99 |
+
- Abstract accurately reflects both completed and planned work
|
| 100 |
+
- Contributions (Section 1.3) are specific and verifiable
|
| 101 |
+
- Tables are numbered consistently (with the exception of Table R1)
|
| 102 |
+
- The distinction between completed and planned work is maintained throughout
|
| 103 |
+
- Vietnamese examples use diacritics in running text but simplified ASCII in tables (acceptable for readability)
|
| 104 |
+
|
| 105 |
+
Minor presentation issues:
|
| 106 |
+
- Section 3.5: The BIO example uses simplified ASCII (*"Mot doanh nghiep..."*) but Section 3.7 uses diacritics (*"suc khoe"*). Consistency would help.
|
| 107 |
+
- The Abstract is 198 words, within the ~200-word target.
|
| 108 |
+
- "Table R1" breaks the numbering convention; should be "Table X" in sequence.
|
| 109 |
+
|
| 110 |
+
### Reproducibility Assessment
|
| 111 |
+
|
| 112 |
+
Strong points:
|
| 113 |
+
- Pipeline scripts documented with exact commands (`uv run src/...`)
|
| 114 |
+
- Quality filter rules specified with exact thresholds (Table 2)
|
| 115 |
+
- CRF hyperparameters specified (Section 5.1)
|
| 116 |
+
- Random seed (42) for split stratification
|
| 117 |
+
- `underthesea` version (v2.1.0) stated
|
| 118 |
+
- Data sources on HuggingFace with dataset identifiers
|
| 119 |
+
|
| 120 |
+
Gaps:
|
| 121 |
+
- AL composite score: $w_{\text{boundary}}$ undefined (Section 5.3)
|
| 122 |
+
- Feature template described as "syllable n-grams, capitalization, character type" without exact specification
|
| 123 |
+
- Label Studio configuration referenced but annotation interface not fully specified
|
| 124 |
+
- Fix pipeline rules are documented in `WS_FIX_REPORT.md` but the paper only summarizes counts (Table 9), not the exact matching logic
|
| 125 |
+
|
| 126 |
+
### Limitations and Ethics
|
| 127 |
+
|
| 128 |
+
The Limitations section (8 items) is comprehensive and self-aware. Notable items:
|
| 129 |
+
|
| 130 |
+
- **Limitation 2** (no gold eval yet) is the most important and is correctly identified as the primary gap.
|
| 131 |
+
- **Limitation 5** (CRF miscalibration on inconsistent silver) identifies a subtle but important problem: uncertainty scoring conflates training noise with genuine ambiguity.
|
| 132 |
+
- **Limitation 6** (1998 cost estimates) is honest --- even a 10-sentence pilot timing study would strengthen the paper.
|
| 133 |
+
|
| 134 |
+
The Ethics Statement covers data licensing, annotation labor, misuse potential, and bias. The licensing caveat ("verify the licensing terms of each source dataset") is appropriate given that the paper aggregates from multiple sources.
|
| 135 |
+
|
| 136 |
+
**Missing from Limitations**: The paper does not discuss the potential for the silver dataset to be used for **training Vietnamese LLMs** or **evaluation benchmarks**, where the 2.4% inconsistency rate could have outsized impact. A brief note on downstream misuse beyond CRF training would strengthen the Ethics section.
|
| 137 |
+
|
| 138 |
+
## Related Work Research
|
| 139 |
+
|
| 140 |
+
### Papers Found
|
| 141 |
+
|
| 142 |
+
| Paper | Year | Method | Results | Relevance |
|
| 143 |
+
|-------|------|--------|---------|-----------|
|
| 144 |
+
| NlpHUST/vi-word-segmentation | 2022 | ELECTRA fine-tuned | F1 98.35% (VLSP 2013) | **Not cited** --- current Vietnamese WS SOTA |
|
| 145 |
+
| SpanSeg + XLM-RoBERTa | 2021 | Span labeling | F1 98.31% (VLSP 2013) | **Not cited** --- transformer WS SOTA |
|
| 146 |
+
| ViWordFormer | 2025 | Word formation model | Outperforms on ViHOS, PhoNER | **Not cited** --- challenges WS paradigm |
|
| 147 |
+
| DGDT (Vietnamese cross-domain DP) | 2025 | Domain separation treebank | -5.09% LAS cross-domain | **Not cited** --- directly validates multi-domain motivation |
|
| 148 |
+
| BERT sentence recommendation for Viet UD | 2023 | BERT-based AL for Vietnamese UD | Improved sentence selection | **Not cited** --- closest prior work to UDD-1 AL |
|
| 149 |
+
| PhoNLP | 2021 | PhoBERT joint model | LAS 79.11 (VnDT) | **Not cited** --- Vietnamese DP SOTA |
|
| 150 |
+
| VLSP 2020 DP shared task | 2020 | PhoBERT+ELMO biaffine | LAS 76.27 | **Not cited** --- Vietnamese DP benchmark |
|
| 151 |
+
| VLSP 2019 DP shared task | 2019 | Biaffine + ensemble | LAS 61.28 | **Not cited** --- first Vietnamese UD shared task |
|
| 152 |
+
| PKUSEG (Chinese multi-domain WS) | 2019 | Domain-adapted CRF/neural | +0.67 F1 OOD | **Not cited** --- closest resource comparison |
|
| 153 |
+
| LLMs in AL loop (ECML-PKDD 2024) | 2024 | GPT-4 as annotator in AL | 42x cost savings | Not cited --- relevant to future directions |
|
| 154 |
+
| Pomak UD AL treebank | 2025 | Active annotation | 6,351 sentences | Cited (Section 2.4) |
|
| 155 |
+
| BKTreebank | 2018 | Manual dependency annotation | IAA 94.5% POS | Cited (Section 2.2) |
|
| 156 |
+
|
| 157 |
+
### Missing Citations
|
| 158 |
+
|
| 159 |
+
1. **DGDT (Huynh et al., 2025)**: Vietnamese Domain Generalization Dependency Treebank. Directly relevant --- first Vietnamese cross-domain DP evaluation, shows 5.09% LAS drop across domains. Essential for motivating UDD-1's multi-domain approach.
|
| 160 |
+
|
| 161 |
+
2. **BERT-based sentence recommendation for Vietnamese UD (FDSE 2023)**: Vietnamese-specific AL for UD treebank construction. The closest prior work to UDD-1's methodology. Must be cited and discussed.
|
| 162 |
+
|
| 163 |
+
3. **VLSP 2019 and 2020 dependency parsing shared tasks**: These established Vietnamese DP benchmarks with public data and leaderboards. The paper cites VLSP 2013 (WS) but omits VLSP 2019/2020 (DP), which are directly relevant to Task 3.
|
| 164 |
+
|
| 165 |
+
4. **PhoNLP (Nguyen and Nguyen, 2021)**: Achieves LAS 79.11 on VnDT, the current Vietnamese DP SOTA. The paper cites ~76% LAS for underthesea but does not contextualize this against the SOTA.
|
| 166 |
+
|
| 167 |
+
5. **PKUSEG (Luo et al., 2019)**: Chinese multi-domain word segmentation toolkit with 4 domains. The closest comparison to UDD-WS v1.1's multi-domain approach. Useful for cross-lingual context.
|
| 168 |
+
|
| 169 |
+
6. **Transformer-based Vietnamese WS**: NlpHUST ELECTRA (F1 98.35%) and SpanSeg (F1 98.31%) surpass VnCoreNLP (97.90%). The comparison in Table 17 should include these.
|
| 170 |
+
|
| 171 |
+
### SOTA Verification
|
| 172 |
+
|
| 173 |
+
- **Claimed**: VnCoreNLP 97.90% F1 as WS SOTA (Section 2.1, Table 17)
|
| 174 |
+
**Actual**: NlpHUST ELECTRA 98.35% F1, SpanSeg 98.31% F1
|
| 175 |
+
**Assessment**: Outdated by ~0.45% F1. VnCoreNLP is the best CRF system but not overall SOTA.
|
| 176 |
+
|
| 177 |
+
- **Claimed**: ~76% LAS on VLSP 2020 (Section 4.6, referencing v1.0)
|
| 178 |
+
**Actual**: Best VLSP 2020 system: 76.27% LAS (PhoBERT+ELMO). PhoNLP achieves 79.11% on VnDT.
|
| 179 |
+
**Assessment**: Consistent for VLSP 2020 but should note PhoNLP as current SOTA.
|
| 180 |
+
|
| 181 |
+
- **Claimed**: Brants & Skut (1998) 3-5x speedup for pre-annotation correction (Section 2.4)
|
| 182 |
+
**Actual**: Verified in original paper.
|
| 183 |
+
**Assessment**: Accurate but noted as Limitation 6 (28-year-old study).
|
| 184 |
+
|
| 185 |
+
- **Claimed**: No multi-domain Vietnamese WS dataset exists (Section 1.3)
|
| 186 |
+
**Actual**: Research confirms this claim. VLSP 2013 is news-only; no other Vietnamese WS dataset covers multiple domains.
|
| 187 |
+
**Assessment**: Verified --- UDD-WS v1.1 fills a genuine gap.
|
| 188 |
+
|
| 189 |
+
## Questions for Authors
|
| 190 |
+
|
| 191 |
+
1. **What is the exact definition of $w_{\text{boundary}}$ in the composite scoring formula (Section 5.3)?** The paper defines $\bar{u}(s)$ and $n_{\text{long}}$ but leaves the boundary weight undefined. Is it the fraction of I-W tokens? The number of B-W→I-W transitions? A learned parameter?
|
| 192 |
+
|
| 193 |
+
2. **How many of the 3,592 inconsistently segmented forms represent genuine contextual ambiguity vs. tokenizer errors?** For instance, *nguoi ta* ("people/they") may genuinely function as either one word or two depending on context (pronoun vs. noun phrase). Can you estimate the proportion of "defensible inconsistency" vs. "error inconsistency"?
|
| 194 |
+
|
| 195 |
+
3. **Have you verified that the dev+test pool (20K sentences) has the same distributional properties as the full 100K dataset?** If the stratified split introduces any systematic differences (e.g., different sentence lengths per domain), Phase 0 sampling from this pool may still not be fully representative.
|
| 196 |
+
|
| 197 |
+
4. **What was the actual annotation throughput for Cycle 1?** The paper estimates 80 sent/day for WS based on Brants & Skut (1998). Cycle 1 annotated ~95 sentences --- how many calendar days did this take? Even rough timing data would validate the cost estimates.
|
| 198 |
+
|
| 199 |
+
5. **Are you aware of the BERT-based sentence recommendation work for Vietnamese UD (FDSE 2023)?** This appears to be the closest prior work to your AL approach for Vietnamese treebank construction and should be discussed.
|
| 200 |
+
|
| 201 |
+
## Minor Issues
|
| 202 |
+
|
| 203 |
+
- Section 3.5: BIO example uses ASCII (*"Mot doanh nghiep"*) while running text uses diacritics. Use consistent representation.
|
| 204 |
+
- Table R1 breaks the sequential numbering. Integrate as Table N or use a consistent convention for in-section tables.
|
| 205 |
+
- Section 7.2: Error counts are approximate ("~40", "~35"). For 92 sentences, exact counts are feasible and expected.
|
| 206 |
+
- Section 2.1: "The Underthesea toolkit provides a word_tokenize function combining CRF and regex-based tokenization" --- specify the version (v2.1.0, consistent with Section 3.7).
|
| 207 |
+
- Section 4.5: The POS selection weight $\alpha = 0.6$ is stated without justification. A brief note on sensitivity or planned tuning would help.
|
| 208 |
+
- References: Some entries use first-name initials inconsistently (e.g., "Nguyen, K.-H." vs. "Nguyen, C.T."). Standardize to ACL bibliography format.
|
| 209 |
+
- The Acknowledgments section thanks "the anonymous reviewer of TECHNICAL_REPORT v1.0" --- this is unusual for ACL format where reviews are anonymous. Consider rephrasing.
|
| 210 |
+
|
| 211 |
+
## Suggestions for Improvement
|
| 212 |
+
|
| 213 |
+
1. **Execute Phase 0 before next submission (highest priority)**: Annotating 500 random sentences (~6 days) would provide the representative gold baseline F1, transforming the paper from "methodology + plan" to "resource + methodology + results." This single addition would move the score from 3 to 4.
|
| 214 |
+
|
| 215 |
+
2. **Add missing Vietnamese cross-domain references**: Cite DGDT (2025), FDSE 2023 Vietnamese UD AL, VLSP 2019/2020 DP shared tasks, and PhoNLP. These directly validate the paper's motivation and contextualize the contribution.
|
| 216 |
+
|
| 217 |
+
3. **Update WS SOTA comparison**: Add transformer-based WS results (NlpHUST 98.35%, SpanSeg 98.31%) to Table 17. Discuss why CRF is appropriate for the AL loop despite lower ceiling (speed, marginal probabilities, interpretability).
|
| 218 |
+
|
| 219 |
+
4. **Report exact error counts**: Replace approximate counts in Table 16 with exact values. Manually categorize all 225 errors.
|
| 220 |
+
|
| 221 |
+
5. **Define $w_{\text{boundary}}$ precisely**: Specify the boundary weight formula in Section 5.3 for full reproducibility.
|
| 222 |
+
|
| 223 |
+
6. **Discuss PKUSEG as cross-lingual reference**: The Chinese multi-domain WS literature (PKUSEG, MCCWS) provides the closest comparison. Citing it strengthens the claim that multi-domain WS is a recognized challenge.
|
| 224 |
+
|
| 225 |
+
7. **Add pilot timing data**: Report actual annotation time for Cycle 1 to validate or revise the 80 sent/day estimate.
|
| 226 |
+
|
| 227 |
+
8. **Flag data leakage in Section 6.2**: The Post-Cycle 1 CRF evaluation on the 92 gold sentences that were merged into training data is not a held-out evaluation. Note this explicitly alongside the existing uncertainty-selection caveat.
|
| 228 |
+
|
| 229 |
+
## Evaluation Checklist
|
| 230 |
+
|
| 231 |
+
### Methodology
|
| 232 |
+
- [x] Research questions clearly stated
|
| 233 |
+
- [x] Methods appropriate for research questions
|
| 234 |
+
- [ ] Baselines appropriate and fairly compared (WS SOTA outdated)
|
| 235 |
+
- [ ] Statistical significance properly addressed (no confidence intervals on F1)
|
| 236 |
+
- [x] Limitations of approach acknowledged (8 items, comprehensive)
|
| 237 |
+
|
| 238 |
+
### Experiments
|
| 239 |
+
- [x] Datasets properly described (source, size, splits, preprocessing)
|
| 240 |
+
- [x] Evaluation metrics appropriate for the task
|
| 241 |
+
- [x] Training details sufficient for reproduction (CRF hyperparameters in Table, Section 5.1)
|
| 242 |
+
- [ ] Ablation studies or analysis provided (error taxonomy yes, ablation no)
|
| 243 |
+
- [x] Results support the claims made (with appropriate caveats)
|
| 244 |
+
|
| 245 |
+
### Presentation
|
| 246 |
+
- [x] Abstract accurately summarizes contributions
|
| 247 |
+
- [x] Introduction motivates the problem
|
| 248 |
+
- [ ] Related work comprehensive and fair (missing DGDT, VLSP 2019/2020, PhoNLP, transformer WS)
|
| 249 |
+
- [x] Figures/tables readable and informative
|
| 250 |
+
- [x] Conclusion matches actual contributions
|
| 251 |
+
|
| 252 |
+
### Related Work Verification
|
| 253 |
+
- [ ] Key prior work on same task is cited (DGDT, FDSE 2023 missing)
|
| 254 |
+
- [ ] Baseline comparisons use current methods (VnCoreNLP is CRF SOTA, not overall SOTA)
|
| 255 |
+
- [ ] SOTA claims are accurate and up-to-date (WS SOTA is 98.35%, not 97.90%)
|
| 256 |
+
- [ ] No significant missing references (6 important papers missing)
|
| 257 |
+
- [x] Fair characterization of competing approaches
|
| 258 |
+
|
| 259 |
+
### Responsible NLP
|
| 260 |
+
- [x] Limitations section present and substantive (8 items)
|
| 261 |
+
- [x] Potential negative impacts discussed (Ethics Statement)
|
| 262 |
+
- [x] Data collection ethics addressed (licensing caveat)
|
| 263 |
+
- [x] Bias considerations mentioned (source bias + tokenizer bias)
|
|
@@ -4,212 +4,320 @@ Fixes applied by `src/fix_ws_errors.py` to UDD-1.1 word segmentation BIO files.
|
|
| 4 |
|
| 5 |
## Summary
|
| 6 |
|
| 7 |
-
| File | Cross-boundary
|
| 8 |
-
|------|----------------------
|
| 9 |
-
| udd-ws-v1.1-train.txt |
|
| 10 |
-
| udd-ws-v1.1-dev.txt |
|
| 11 |
-
| udd-ws-v1.1-test.txt |
|
| 12 |
-
| **TOTAL** | **
|
| 13 |
|
| 14 |
## Merge Frequency by Term
|
| 15 |
|
| 16 |
| Term | Count |
|
| 17 |
|:-----|------:|
|
| 18 |
-
|
|
| 19 |
-
|
|
| 20 |
-
|
|
| 21 |
-
|
|
| 22 |
-
|
|
| 23 |
-
|
|
| 24 |
-
|
|
| 25 |
-
|
|
| 26 |
-
|
|
| 27 |
-
|
|
| 28 |
-
|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Cross-Boundary Split Examples
|
| 40 |
|
| 41 |
### udd-ws-v1.1-train.txt
|
| 42 |
|
| 43 |
-
- [
|
| 44 |
-
- [vlc-
|
| 45 |
-
- [uvn-
|
| 46 |
-
- [
|
| 47 |
-
- [
|
| 48 |
-
- [
|
| 49 |
-
- [
|
| 50 |
-
- [
|
| 51 |
-
- [
|
| 52 |
-
- [
|
| 53 |
-
- [
|
| 54 |
-
- [
|
| 55 |
-
- [
|
| 56 |
-
- [
|
| 57 |
-
- [
|
| 58 |
-
- [
|
| 59 |
-
- [
|
| 60 |
-
- [
|
| 61 |
-
- [
|
| 62 |
-
- [
|
| 63 |
-
- ... and
|
| 64 |
|
| 65 |
### udd-ws-v1.1-dev.txt
|
| 66 |
|
| 67 |
-
- [
|
| 68 |
-
- [
|
| 69 |
-
- [
|
| 70 |
-
- [
|
| 71 |
-
- [
|
| 72 |
-
- [
|
| 73 |
-
- [
|
| 74 |
-
- [
|
| 75 |
-
- [uvw-
|
| 76 |
-
- [
|
| 77 |
-
- [vlc-
|
| 78 |
-
- [
|
| 79 |
-
- [
|
| 80 |
-
- [
|
| 81 |
-
- [
|
| 82 |
-
- [
|
| 83 |
-
- [
|
| 84 |
-
- [vlc-
|
| 85 |
-
- [
|
| 86 |
-
- [
|
| 87 |
-
- ... and
|
| 88 |
|
| 89 |
### udd-ws-v1.1-test.txt
|
| 90 |
|
| 91 |
-
- [
|
| 92 |
-
- [uvw-10170] split "thời Trung Cổ" → 'thời' + 'Trung Cổ'
|
| 93 |
-
- [vlc-6223] split "thường vụ Quốc hội" → 'thường vụ' + 'Quốc hội'
|
| 94 |
- [vlc-6223] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 95 |
-
- [uvn-
|
| 96 |
-
- [
|
| 97 |
-
- [
|
| 98 |
-
- [
|
| 99 |
-
- [
|
| 100 |
-
- [
|
| 101 |
-
- [
|
| 102 |
-
- [
|
| 103 |
-
- [
|
| 104 |
-
- [
|
| 105 |
-
- [
|
| 106 |
-
- [vlc-
|
| 107 |
-
- [
|
| 108 |
-
- [uvn-
|
| 109 |
-
- [
|
| 110 |
-
- [
|
| 111 |
-
-
|
|
|
|
|
|
|
| 112 |
|
| 113 |
## Long Token Split Examples
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
### udd-ws-v1.1-train.txt
|
| 116 |
|
| 117 |
-
- [
|
| 118 |
-
- [
|
| 119 |
-
- [
|
| 120 |
-
- [uvw-
|
| 121 |
-
- [
|
| 122 |
-
- [
|
| 123 |
-
- [
|
| 124 |
-
- [
|
| 125 |
-
- [
|
| 126 |
-
- [
|
| 127 |
-
- [
|
| 128 |
-
- [
|
| 129 |
-
- [
|
| 130 |
-
- [
|
| 131 |
-
- [
|
| 132 |
-
- [
|
| 133 |
-
- [
|
| 134 |
-
- [
|
| 135 |
-
- [
|
| 136 |
-
- [
|
| 137 |
-
- [
|
| 138 |
-
- [
|
| 139 |
-
- [
|
| 140 |
-
- [
|
| 141 |
-
- [
|
| 142 |
-
- [vlc-
|
| 143 |
-
- [
|
| 144 |
-
- [
|
| 145 |
-
- [
|
| 146 |
-
- [
|
| 147 |
-
- ... and
|
| 148 |
|
| 149 |
### udd-ws-v1.1-dev.txt
|
| 150 |
|
| 151 |
-
- [
|
| 152 |
-
- [
|
| 153 |
-
- [
|
| 154 |
-
- [
|
| 155 |
-
- [
|
| 156 |
-
- [
|
| 157 |
-
- [
|
| 158 |
-
- [
|
| 159 |
-
- [
|
| 160 |
-
- [
|
| 161 |
-
- [
|
| 162 |
-
- [
|
| 163 |
-
- [
|
| 164 |
-
- [uvn-
|
| 165 |
-
- [uvw-
|
| 166 |
-
- [
|
| 167 |
-
- [
|
| 168 |
-
- [
|
| 169 |
-
- [
|
| 170 |
-
- [
|
| 171 |
-
- [
|
| 172 |
-
- [
|
| 173 |
-
- [
|
| 174 |
-
- [
|
| 175 |
-
- [
|
| 176 |
-
- [
|
| 177 |
-
- [
|
| 178 |
-
- [uvb-
|
| 179 |
-
- [vlc-
|
| 180 |
-
- [uvb-n-
|
| 181 |
-
- ... and
|
| 182 |
|
| 183 |
### udd-ws-v1.1-test.txt
|
| 184 |
|
| 185 |
-
- [
|
| 186 |
-
- [
|
| 187 |
-
- [
|
| 188 |
-
- [
|
| 189 |
-
- [
|
| 190 |
-
- [
|
| 191 |
-
- [
|
| 192 |
-
- [
|
| 193 |
-
- [
|
| 194 |
-
- [
|
| 195 |
-
- [
|
| 196 |
-
- [
|
| 197 |
-
- [uvw-
|
| 198 |
-
- [
|
| 199 |
-
- [
|
| 200 |
-
- [
|
| 201 |
-
- [uvw-
|
| 202 |
-
- [vlc-
|
| 203 |
-
- [uvw-
|
| 204 |
-
- [vlc-
|
| 205 |
-
- [
|
| 206 |
-
- [
|
| 207 |
-
- [
|
| 208 |
-
- [
|
| 209 |
-
- [
|
| 210 |
-
- [
|
| 211 |
-
- [
|
| 212 |
-
- [
|
| 213 |
-
- [
|
| 214 |
-
- [
|
| 215 |
-
- ... and
|
|
|
|
| 4 |
|
| 5 |
## Summary
|
| 6 |
|
| 7 |
+
| File | Cross-boundary | Long token | Compound merges | Foreign splits | Name boundary | Validation errors |
|
| 8 |
+
|------|---------------:|-----------:|----------------:|---------------:|--------------:|------------------:|
|
| 9 |
+
| udd-ws-v1.1-train.txt | 207 | 0 | 409 | 4,287 | 668 | 0 |
|
| 10 |
+
| udd-ws-v1.1-dev.txt | 26 | 0 | 61 | 561 | 68 | 0 |
|
| 11 |
+
| udd-ws-v1.1-test.txt | 25 | 0 | 71 | 527 | 80 | 0 |
|
| 12 |
+
| **TOTAL** | **258** | **0** | **541** | **5,375** | **816** | **0** |
|
| 13 |
|
| 14 |
## Merge Frequency by Term
|
| 15 |
|
| 16 |
| Term | Count |
|
| 17 |
|:-----|------:|
|
| 18 |
+
| ủy ban | 371 |
|
| 19 |
+
| mái nhà | 41 |
|
| 20 |
+
| làm chủ | 27 |
|
| 21 |
+
| lượng tử | 24 |
|
| 22 |
+
| tại ngũ | 16 |
|
| 23 |
+
| người thương | 16 |
|
| 24 |
+
| xua tay | 9 |
|
| 25 |
+
| nghiến răng | 7 |
|
| 26 |
+
| như điên | 7 |
|
| 27 |
+
| tích lũy | 5 |
|
| 28 |
+
| trêu ghẹo | 2 |
|
| 29 |
+
| chăn lợn | 2 |
|
| 30 |
+
| khay trà | 2 |
|
| 31 |
+
| sương mai | 2 |
|
| 32 |
+
| đồng tự | 2 |
|
| 33 |
+
| đường thẳng | 2 |
|
| 34 |
+
| mu rùa | 1 |
|
| 35 |
+
| nói gở | 1 |
|
| 36 |
+
| lính thú | 1 |
|
| 37 |
+
| đầm đuôi cá | 1 |
|
| 38 |
+
| hành chánh | 1 |
|
| 39 |
+
| bơi chó | 1 |
|
| 40 |
|
| 41 |
## Cross-Boundary Split Examples
|
| 42 |
|
| 43 |
### udd-ws-v1.1-train.txt
|
| 44 |
|
| 45 |
+
- [uvn-4610] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 46 |
+
- [vlc-9598] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 47 |
+
- [uvn-14855] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 48 |
+
- [vlc-15939] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 49 |
+
- [vlc-4115] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 50 |
+
- [vlc-16369] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 51 |
+
- [vlc-16369] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 52 |
+
- [vlc-17534] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 53 |
+
- [vlc-4739] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 54 |
+
- [vlc-896] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 55 |
+
- [uvw-8925] split "Xã hội Chủ nghĩa" → 'Xã hội' + 'Chủ nghĩa'
|
| 56 |
+
- [vlc-15109] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 57 |
+
- [vlc-3849] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 58 |
+
- [vlc-999] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 59 |
+
- [vlc-16713] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 60 |
+
- [vlc-10256] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 61 |
+
- [vlc-15677] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 62 |
+
- [vlc-4321] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 63 |
+
- [vlc-8038] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 64 |
+
- [vlc-2887] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 65 |
+
- ... and 187 more
|
| 66 |
|
| 67 |
### udd-ws-v1.1-dev.txt
|
| 68 |
|
| 69 |
+
- [uvw-18563] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 70 |
+
- [vlc-3635] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 71 |
+
- [vlc-10450] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 72 |
+
- [vlc-11201] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 73 |
+
- [vlc-310] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 74 |
+
- [vlc-12944] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 75 |
+
- [vlc-6630] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 76 |
+
- [vlc-6630] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 77 |
+
- [uvw-7217] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 78 |
+
- [vlc-7765] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 79 |
+
- [vlc-17628] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 80 |
+
- [vlc-15712] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 81 |
+
- [uvw-7424] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 82 |
+
- [vlc-6567] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 83 |
+
- [vlc-17311] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 84 |
+
- [vlc-17818] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 85 |
+
- [uvw-15253] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 86 |
+
- [vlc-4949] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 87 |
+
- [uvn-1143] split "làm Chủ tịch" → 'làm' + 'Chủ tịch'
|
| 88 |
+
- [vlc-8360] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 89 |
+
- ... and 6 more
|
| 90 |
|
| 91 |
### udd-ws-v1.1-test.txt
|
| 92 |
|
| 93 |
+
- [vlc-17267] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
|
|
|
|
|
|
| 94 |
- [vlc-6223] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 95 |
+
- [uvn-10658] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 96 |
+
- [vlc-1254] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 97 |
+
- [vlc-3581] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 98 |
+
- [vlc-1319] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 99 |
+
- [vlc-2238] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 100 |
+
- [vlc-14701] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 101 |
+
- [vlc-14701] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 102 |
+
- [vlc-16929] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 103 |
+
- [vlc-10389] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 104 |
+
- [vlc-16627] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 105 |
+
- [vlc-6090] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 106 |
+
- [vlc-7684] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 107 |
+
- [vlc-1544] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 108 |
+
- [uvn-16619] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 109 |
+
- [vlc-18829] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 110 |
+
- [vlc-15826] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 111 |
+
- [vlc-9744] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 112 |
+
- [vlc-19549] split "Mặt trận Tổ quốc" → 'Mặt trận' + 'Tổ quốc'
|
| 113 |
+
- ... and 5 more
|
| 114 |
|
| 115 |
## Long Token Split Examples
|
| 116 |
|
| 117 |
+
## Foreign Word Split Examples
|
| 118 |
+
|
| 119 |
+
### udd-ws-v1.1-train.txt
|
| 120 |
+
|
| 121 |
+
- [uvw-7593] split-foreign "Max Planck" → 'Max' + 'Planck'
|
| 122 |
+
- [uvw-7593] split-foreign "Werner Heisenberg" → 'Werner' + 'Heisenberg'
|
| 123 |
+
- [uvw-7593] split-foreign "Erwin Schrödinger" → 'Erwin' + 'Schrödinger'
|
| 124 |
+
- [uvw-7593] split-foreign "Paul Dirac" → 'Paul' + 'Dirac'
|
| 125 |
+
- [uvn-19074] split-foreign "Gazprom Neft" → 'Gazprom' + 'Neft'
|
| 126 |
+
- [uvn-1654] split-foreign "Elon Musk" → 'Elon' + 'Musk'
|
| 127 |
+
- [uvb-n-12310] split-foreign "lon ton" → 'lon' + 'ton'
|
| 128 |
+
- [uvb-n-1071] split-foreign "Gallimard Jeunesse" → 'Gallimard' + 'Jeunesse'
|
| 129 |
+
- [uvb-n-1071] split-foreign "Revault d’Allones" → 'Revault' + 'd’Allones'
|
| 130 |
+
- [uvb-n-1071] split-foreign "Revault d’Allones" → 'Revault' + 'd’Allones'
|
| 131 |
+
- [uvn-588] split-foreign "Sony Music" → 'Sony' + 'Music'
|
| 132 |
+
- [uvn-7078] split-foreign "Platinum Victory" → 'Platinum' + 'Victory'
|
| 133 |
+
- [uvn-7078] split-foreign "Jardine Cycle" → 'Jardine' + 'Cycle'
|
| 134 |
+
- [uvn-7078] split-foreign "Jardine Matheson" → 'Jardine' + 'Matheson'
|
| 135 |
+
- [uvw-7071] split-foreign "Bartholomen Velho" → 'Bartholomen' + 'Velho'
|
| 136 |
+
- [uvw-7071] split-foreign "Vaz Dourado" → 'Vaz' + 'Dourado'
|
| 137 |
+
- [uvw-7071] split-foreign "Van Langren" → 'Van' + 'Langren'
|
| 138 |
+
- [uvw-13401] split-foreign "Ishpatina Ridge" → 'Ishpatina' + 'Ridge'
|
| 139 |
+
- [uvn-18582] split-foreign "Rhincodon typus" → 'Rhincodon' + 'typus'
|
| 140 |
+
- [uvn-18582] split-foreign "Chiloscyllium plagiosum" → 'Chiloscyllium' + 'plagiosum'
|
| 141 |
+
- [uvn-11577] split-foreign "Vahid Kardhani" → 'Vahid' + 'Kardhani'
|
| 142 |
+
- [uvb-n-1000] split-foreign "Samaneri Sudhamma" → 'Samaneri' + 'Sudhamma'
|
| 143 |
+
- [uvn-5523] split-foreign "phanh phui" → 'phanh' + 'phui'
|
| 144 |
+
- [uvn-5523] split-foreign "HACKER NEWS" → 'HACKER' + 'NEWS'
|
| 145 |
+
- [uvn-9592] split-foreign "Smart Workstation" → 'Smart' + 'Workstation'
|
| 146 |
+
- [uvn-12958] split-foreign "Research with" → 'Research' + 'with'
|
| 147 |
+
- [uvw-251] split-foreign "Philosophiæ Naturalis" → 'Philosophiæ' + 'Naturalis'
|
| 148 |
+
- [uvw-251] split-foreign "Principia Mathematica" → 'Principia' + 'Mathematica'
|
| 149 |
+
- [uvn-179] split-foreign "Jung Geun-sik" → 'Jung' + 'Geun-sik'
|
| 150 |
+
- [uvn-15685] split-foreign "Brian Yuliarto" → 'Brian' + 'Yuliarto'
|
| 151 |
+
- ... and 4257 more
|
| 152 |
+
|
| 153 |
+
### udd-ws-v1.1-dev.txt
|
| 154 |
+
|
| 155 |
+
- [uvw-16942] split-foreign "Fyodorovich Romanov" → 'Fyodorovich' + 'Romanov'
|
| 156 |
+
- [uvn-6675] split-foreign "Notre Dame" → 'Notre' + 'Dame'
|
| 157 |
+
- [uvn-6675] split-foreign "Pathfinding Robotic" → 'Pathfinding' + 'Robotic'
|
| 158 |
+
- [uvn-6675] split-foreign "Observation Unit" → 'Observation' + 'Unit'
|
| 159 |
+
- [uvn-16075] split-foreign "Guo Yungao" → 'Guo' + 'Yungao'
|
| 160 |
+
- [uvw-11029] split-foreign "Robert Recorde" → 'Robert' + 'Recorde'
|
| 161 |
+
- [uvw-4504] split-foreign "Kremser S33" → 'Kremser' + 'S33'
|
| 162 |
+
- [uvw-4504] split-foreign "Vienna B1" → 'Vienna' + 'B1'
|
| 163 |
+
- [uvw-12819] split-foreign "Francis Asbury" → 'Francis' + 'Asbury'
|
| 164 |
+
- [uvn-16644] split-foreign "Jerome Powell" → 'Jerome' + 'Powell'
|
| 165 |
+
- [uvw-710] split-foreign "endoplasmic reticulum" → 'endoplasmic' + 'reticulum'
|
| 166 |
+
- [uvn-1745] split-foreign "Scotsman All-Carbon" → 'Scotsman' + 'All-Carbon'
|
| 167 |
+
- [uvn-1745] split-foreign "Fiber Scooter" → 'Fiber' + 'Scooter'
|
| 168 |
+
- [uvn-1745] split-foreign "Superstrata Bike" → 'Superstrata' + 'Bike'
|
| 169 |
+
- [uvb-n-515] split-foreign "Anthony Weston" → 'Anthony' + 'Weston'
|
| 170 |
+
- [uvb-n-515] split-foreign "Adam Smith" → 'Adam' + 'Smith'
|
| 171 |
+
- [uvb-n-515] split-foreign "Madsen Pirie" → 'Madsen' + 'Pirie'
|
| 172 |
+
- [uvn-4460] split-foreign "Patek Philippe" → 'Patek' + 'Philippe'
|
| 173 |
+
- [uvw-19975] split-foreign "tetrachloride titan" → 'tetrachloride' + 'titan'
|
| 174 |
+
- [uvw-4144] split-foreign "Unicode Consortium" → 'Unicode' + 'Consortium'
|
| 175 |
+
- [uvw-16494] split-foreign "Rey Juan" → 'Rey' + 'Juan'
|
| 176 |
+
- [uvb-f-3265] split-foreign "Sam Roffe" → 'Sam' + 'Roffe'
|
| 177 |
+
- [uvn-2757] split-foreign "Jens-Frederik Nielsen" → 'Jens-Frederik' + 'Nielsen'
|
| 178 |
+
- [uvn-2757] split-foreign "Mette Frederiksen" → 'Mette' + 'Frederiksen'
|
| 179 |
+
- [uvn-2757] split-foreign "Emmanuel Macron" → 'Emmanuel' + 'Macron'
|
| 180 |
+
- [uvb-n-16036] split-foreign "Klemens von" → 'Klemens' + 'von'
|
| 181 |
+
- [uvw-9683] split-foreign "Ibn al-Haytham" → 'Ibn' + 'al-Haytham'
|
| 182 |
+
- [uvw-9683] split-foreign "Kitab al-manazir" → 'Kitab' + 'al-manazir'
|
| 183 |
+
- [uvn-12996] split-foreign "V-Business Pro" → 'V-Business' + 'Pro'
|
| 184 |
+
- [uvn-12996] split-foreign "V-Business Advance" → 'V-Business' + 'Advance'
|
| 185 |
+
- ... and 531 more
|
| 186 |
+
|
| 187 |
+
### udd-ws-v1.1-test.txt
|
| 188 |
+
|
| 189 |
+
- [uvb-n-19086] split-foreign "Ailic Mayenkh" → 'Ailic' + 'Mayenkh'
|
| 190 |
+
- [uvn-4221] split-foreign "Rice Platform" → 'Rice' + 'Platform'
|
| 191 |
+
- [uvn-2798] split-foreign "HR Asia" → 'HR' + 'Asia'
|
| 192 |
+
- [uvw-1174] split-foreign "Cthulhu Macula" → 'Cthulhu' + 'Macula'
|
| 193 |
+
- [uvb-n-3361] split-foreign "Groce Malo" → 'Groce' + 'Malo'
|
| 194 |
+
- [uvn-6814] split-foreign "Peng Zhihui" → 'Peng' + 'Zhihui'
|
| 195 |
+
- [uvn-812] split-foreign "Engineered Arts" → 'Engineered' + 'Arts'
|
| 196 |
+
- [uvw-17796] split-foreign "Swords Society" → 'Swords' + 'Society'
|
| 197 |
+
- [uvw-11767] split-foreign "Lech Kaczyński" → 'Lech' + 'Kaczyński'
|
| 198 |
+
- [uvn-10632] split-foreign "FTSE Russell" → 'FTSE' + 'Russell'
|
| 199 |
+
- [uvw-14690] split-foreign "Christian Friedrich" → 'Christian' + 'Friedrich'
|
| 200 |
+
- [uvw-6352] split-foreign "Mein Kampf" → 'Mein' + 'Kampf'
|
| 201 |
+
- [uvw-4709] split-foreign "Los Angeles" → 'Los' + 'Angeles'
|
| 202 |
+
- [uvw-4709] split-foreign "Los Angeles" → 'Los' + 'Angeles'
|
| 203 |
+
- [uvn-15627] split-foreign "Nick Hague" → 'Nick' + 'Hague'
|
| 204 |
+
- [uvn-15627] split-foreign "Aleksandr Gorbunov" → 'Aleksandr' + 'Gorbunov'
|
| 205 |
+
- [uvb-n-2364] split-foreign "Abdul Razak" → 'Abdul' + 'Razak'
|
| 206 |
+
- [uvw-8985] split-foreign "MediaWiki wiki" → 'MediaWiki' + 'wiki'
|
| 207 |
+
- [uvw-8985] split-foreign "WebPlatform Docs" → 'WebPlatform' + 'Docs'
|
| 208 |
+
- [uvn-13054] split-foreign "Shark Tank" → 'Shark' + 'Tank'
|
| 209 |
+
- [uvn-6301] split-foreign "Carina Hong" → 'Carina' + 'Hong'
|
| 210 |
+
- [uvw-10066] split-foreign "Nicolaus Copernicus" → 'Nicolaus' + 'Copernicus'
|
| 211 |
+
- [uvw-15154] split-foreign "Khong Chiam" → 'Khong' + 'Chiam'
|
| 212 |
+
- [uvw-15154] split-foreign "Ubon Ratchathani" → 'Ubon' + 'Ratchathani'
|
| 213 |
+
- [uvn-17184] split-foreign "Marie van" → 'Marie' + 'van'
|
| 214 |
+
- [uvw-14969] split-foreign "Beniamino Gigli" → 'Beniamino' + 'Gigli'
|
| 215 |
+
- [uvw-11704] split-foreign "Black Swamp" → 'Black' + 'Swamp'
|
| 216 |
+
- [uvw-4837] split-foreign "Coffee Tea" → 'Coffee' + 'Tea'
|
| 217 |
+
- [uvw-4837] split-foreign "Black tea" → 'Black' + 'tea'
|
| 218 |
+
- [uvw-4837] split-foreign "Green tea" → 'Green' + 'tea'
|
| 219 |
+
- ... and 497 more
|
| 220 |
+
|
| 221 |
+
## Name Boundary Split Examples
|
| 222 |
+
|
| 223 |
### udd-ws-v1.1-train.txt
|
| 224 |
|
| 225 |
+
- [uvw-6789] split-name-boundary "A0 biểu thị" → 'A0' + 'biểu thị'
|
| 226 |
+
- [uvw-6789] split-name-boundary "A9 biểu thị" → 'A9' + 'biểu thị'
|
| 227 |
+
- [uvn-6189] split-name-boundary "Tân tiến sĩ" → 'Tân' + 'tiến sĩ'
|
| 228 |
+
- [uvw-10682] split-name-boundary "Âu châu lục địa" → 'Âu' + 'châu lục địa'
|
| 229 |
+
- [uvn-13266] split-name-boundary "EVNSPC nhiệm kỳ" → 'EVNSPC' + 'nhiệm kỳ'
|
| 230 |
+
- [uvw-4500] split-name-boundary "Thánh đại công" → 'Thánh' + 'đại công'
|
| 231 |
+
- [uvw-16965] split-name-boundary "Đức thống nhất" → 'Đức' + 'thống nhất'
|
| 232 |
+
- [uvb-n-818] split-name-boundary "Trần khởi nghiệp" → 'Trần' + 'khởi nghiệp'
|
| 233 |
+
- [uvb-n-15660] split-name-boundary "Chiến Quốc dân chúng" → 'Chiến Quốc' + 'dân chúng'
|
| 234 |
+
- [uvb-f-15644] split-name-boundary "Quỳnh cảm thấy" → 'Quỳnh' + 'cảm thấy'
|
| 235 |
+
- [uvb-n-12580] split-name-boundary "Văn chậm rãi" → 'Văn' + 'chậm rãi'
|
| 236 |
+
- [uvb-f-8769] split-name-boundary "Trần thản nhiên" → 'Trần' + 'thản nhiên'
|
| 237 |
+
- [uvb-n-9642] split-name-boundary "Chị em gái" → 'Chị' + 'em gái'
|
| 238 |
+
- [uvb-f-16955] split-name-boundary "Bầu không khí" → 'Bầu' + 'không khí'
|
| 239 |
+
- [uvb-n-8707] split-name-boundary "Syrie đối xử" → 'Syrie' + 'đối xử'
|
| 240 |
+
- [uvn-521] split-name-boundary "Trịnh Hà thừa hưởng" → 'Trịnh Hà' + 'thừa hưởng'
|
| 241 |
+
- [uvw-19476] split-name-boundary "Cơ sinh học" → 'Cơ' + 'sinh học'
|
| 242 |
+
- [uvw-16946] split-name-boundary "Einstein chứng minh" → 'Einstein' + 'chứng minh'
|
| 243 |
+
- [uvn-8273] split-name-boundary "PVF-CANDvới lợi thế" → 'PVF-CANDvới' + 'lợi thế'
|
| 244 |
+
- [uvn-4990] split-name-boundary "Cựu chiến binh" → 'Cựu' + 'chiến binh'
|
| 245 |
+
- [uvn-12163] split-name-boundary "Khoa học tập" → 'Khoa' + 'học tập'
|
| 246 |
+
- [uvb-f-2975] split-name-boundary "Thế nghĩa là" → 'Thế' + 'nghĩa là'
|
| 247 |
+
- [uvw-11278] split-name-boundary "GDP danh nghĩa" → 'GDP' + 'danh nghĩa'
|
| 248 |
+
- [uvn-2671] split-name-boundary "Tập thể dục" → 'Tập' + 'thể dục'
|
| 249 |
+
- [uvb-n-10229] split-name-boundary "Ăn chênh lệch" → 'Ăn' + 'chênh lệch'
|
| 250 |
+
- [vlc-19523] split-name-boundary "Chủ sở hữu quyền" → 'Chủ' + 'sở hữu quyền'
|
| 251 |
+
- [uvb-n-7589] split-name-boundary "Để ý nghĩa" → 'Để' + 'ý nghĩa'
|
| 252 |
+
- [uvn-8775] split-name-boundary "Mỹ cáo buộc" → 'Mỹ' + 'cáo buộc'
|
| 253 |
+
- [uvb-n-17047] split-name-boundary "Valentinianl bất tài" → 'Valentinianl' + 'bất tài'
|
| 254 |
+
- [uvw-3030] split-name-boundary "Thái học sinh" → 'Thái' + 'học sinh'
|
| 255 |
+
- ... and 638 more
|
| 256 |
|
| 257 |
### udd-ws-v1.1-dev.txt
|
| 258 |
|
| 259 |
+
- [uvn-15053] split-name-boundary "Lâm chủ động" → 'Lâm' + 'chủ động'
|
| 260 |
+
- [uvn-18170] split-name-boundary "T&T thúc đẩy" → 'T&T' + 'thúc đẩy'
|
| 261 |
+
- [uvb-f-12120] split-name-boundary "Lê cau mày" → 'Lê' + 'cau mày'
|
| 262 |
+
- [uvw-1745] split-name-boundary "Newton thiết lập" → 'Newton' + 'thiết lập'
|
| 263 |
+
- [uvb-n-3769] split-name-boundary "Chu Du tính tình" → 'Chu Du' + 'tính tình'
|
| 264 |
+
- [uvw-14536] split-name-boundary "Lương khởi nghĩa" → 'Lương' + 'khởi nghĩa'
|
| 265 |
+
- [uvw-754] split-name-boundary "Nguyễn bắt đầu" → 'Nguyễn' + 'bắt đầu'
|
| 266 |
+
- [uvb-n-18390] split-name-boundary "Văn sửng sốt" → 'Văn' + 'sửng sốt'
|
| 267 |
+
- [uvb-f-6739] split-name-boundary "Ngẫm nghĩ lại" → 'Ngẫm' + 'nghĩ lại'
|
| 268 |
+
- [uvn-16785] split-name-boundary "Biên bản ghi nhớ" → 'Biên' + 'bản ghi nhớ'
|
| 269 |
+
- [uvb-f-16752] split-name-boundary "Nữ minh tinh" → 'Nữ' + 'minh tinh'
|
| 270 |
+
- [uvw-5598] split-name-boundary "Texas biến đổi" → 'Texas' + 'biến đổi'
|
| 271 |
+
- [uvn-2059] split-name-boundary "Hạ nghị sĩ" → 'Hạ' + 'nghị sĩ'
|
| 272 |
+
- [uvn-5151] split-name-boundary "Masanđạt doanh thu" → 'Masanđạt' + 'doanh thu'
|
| 273 |
+
- [uvw-19553] split-name-boundary "Khu tự trị" → 'Khu' + 'tự trị'
|
| 274 |
+
- [uvb-n-5806] split-name-boundary "Đáng lẽ ra" → 'Đáng' + 'lẽ ra'
|
| 275 |
+
- [uvb-n-1302] split-name-boundary "Huyền tương đối" → 'Huyền' + 'tương đối'
|
| 276 |
+
- [uvw-16476] split-name-boundary "Mạng khoa học" → 'Mạng' + 'khoa học'
|
| 277 |
+
- [uvw-2471] split-name-boundary "Lê biên soạn" → 'Lê' + 'biên soạn'
|
| 278 |
+
- [uvb-n-3787] split-name-boundary "Đài phát thanh" → 'Đài' + 'phát thanh'
|
| 279 |
+
- [uvb-n-15532] split-name-boundary "La Mã thần thánh" → 'La Mã' + 'thần thánh'
|
| 280 |
+
- [uvn-47] split-name-boundary "Xét chứng chỉ" → 'Xét' + 'chứng chỉ'
|
| 281 |
+
- [uvw-16315] split-name-boundary "Mendeleev chỉnh lý" → 'Mendeleev' + 'chỉnh lý'
|
| 282 |
+
- [uvn-12038] split-name-boundary "Cơ quan chức năng" → 'Cơ' + 'quan chức năng'
|
| 283 |
+
- [uvw-3820] split-name-boundary "Âm tức là" → 'Âm' + 'tức là'
|
| 284 |
+
- [uvn-9015] split-name-boundary "Cơ quan chức năng" → 'Cơ' + 'quan chức năng'
|
| 285 |
+
- [uvb-n-14607] split-name-boundary "Kỵ ghi nhớ" → 'Kỵ' + 'ghi nhớ'
|
| 286 |
+
- [uvb-f-3703] split-name-boundary "Duy cố tình" → 'Duy' + 'cố tình'
|
| 287 |
+
- [vlc-19841] split-name-boundary "Chủ sở hữu quyền" → 'Chủ' + 'sở hữu quyền'
|
| 288 |
+
- [uvb-n-1525] split-name-boundary "Cao Lãnh hưởng ứng" → 'Cao Lãnh' + 'hưởng ứng'
|
| 289 |
+
- ... and 38 more
|
| 290 |
|
| 291 |
### udd-ws-v1.1-test.txt
|
| 292 |
|
| 293 |
+
- [uvw-12971] split-name-boundary "California nhân danh" → 'California' + 'nhân danh'
|
| 294 |
+
- [uvn-6100] split-name-boundary "Hoàng đầu thú" → 'Hoàng' + 'đầu thú'
|
| 295 |
+
- [uvw-16039] split-name-boundary "Thông hoảng hốt" → 'Thông' + 'hoảng hốt'
|
| 296 |
+
- [uvw-9799] split-name-boundary "Môn-Khmer nguyên thủy" → 'Môn-Khmer' + 'nguyên thủy'
|
| 297 |
+
- [uvw-8566] split-name-boundary "Hoàng thái tử" → 'Hoàng' + 'thái tử'
|
| 298 |
+
- [uvb-n-17470] split-name-boundary "Văn mệt mỏi" → 'Văn' + 'mệt mỏi'
|
| 299 |
+
- [uvw-8360] split-name-boundary "A di chuyển" → 'A' + 'di chuyển'
|
| 300 |
+
- [uvn-350] split-name-boundary "Ba Đình đối đầu" → 'Ba Đình' + 'đối đầu'
|
| 301 |
+
- [uvw-6709] split-name-boundary "Hàm tán xạ" → 'Hàm' + 'tán xạ'
|
| 302 |
+
- [uvw-13962] split-name-boundary "Đông Âu vệ tinh" → 'Đông Âu' + 'vệ tinh'
|
| 303 |
+
- [uvn-9573] split-name-boundary "Mangilal sở hữu" → 'Mangilal' + 'sở hữu'
|
| 304 |
+
- [uvb-f-14820] split-name-boundary "Arya lặng lẽ" → 'Arya' + 'lặng lẽ'
|
| 305 |
+
- [uvw-8943] split-name-boundary "Mỹ hứng chịu" → 'Mỹ' + 'hứng chịu'
|
| 306 |
+
- [uvw-8943] split-name-boundary "Tennessee hứng chịu" → 'Tennessee' + 'hứng chịu'
|
| 307 |
+
- [uvn-17072] split-name-boundary "Kim tiết lộ" → 'Kim' + 'tiết lộ'
|
| 308 |
+
- [vlc-2624] split-name-boundary "Mạch tích hợp" → 'Mạch' + 'tích hợp'
|
| 309 |
+
- [uvw-1478] split-name-boundary "Phản vật chất" → 'Phản' + 'vật chất'
|
| 310 |
+
- [vlc-9115] split-name-boundary "Chủ sở hữu" → 'Chủ' + 'sở hữu'
|
| 311 |
+
- [uvw-4004] split-name-boundary "Chu kỳ tính" → 'Chu' + 'kỳ tính'
|
| 312 |
+
- [vlc-842] split-name-boundary "Hạ sĩ quan" → 'Hạ' + 'sĩ quan'
|
| 313 |
+
- [uvb-f-15773] split-name-boundary "Wamba cố tình" → 'Wamba' + 'cố tình'
|
| 314 |
+
- [uvn-12071] split-name-boundary "Kinh doanh số" → 'Kinh' + 'doanh số'
|
| 315 |
+
- [uvw-14537] split-name-boundary "Đỗ Nguyễn trông nom" → 'Đỗ Nguyễn' + 'trông nom'
|
| 316 |
+
- [vlc-12093] split-name-boundary "Chủ sở hữu quyền" → 'Chủ' + 'sở hữu quyền'
|
| 317 |
+
- [uvn-2062] split-name-boundary "Ukraine nhượng bộ" → 'Ukraine' + 'nhượng bộ'
|
| 318 |
+
- [uvb-f-2026] split-name-boundary "Lữ hoan hỉ" → 'Lữ' + 'hoan hỉ'
|
| 319 |
+
- [uvn-19730] split-name-boundary "Jeong-hee cáo buộc" → 'Jeong-hee' + 'cáo buộc'
|
| 320 |
+
- [uvb-f-12536] split-name-boundary "Lê chua chát" → 'Lê' + 'chua chát'
|
| 321 |
+
- [uvb-n-6581] split-name-boundary "Tuy âm dương" → 'Tuy' + 'âm dương'
|
| 322 |
+
- [uvb-f-10929] split-name-boundary "Vĩ cảm nhận" → 'Vĩ' + 'cảm nhận'
|
| 323 |
+
- ... and 50 more
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rank file sent_idx score n_syllables uncertainty boundary_weight n_long_tokens max_uncertainty text
|
| 2 |
+
1 test 5312 0.127511 15 0.109295 0.1667 0 0.442459 Các hóa thạch Neanderthal 1 được cho là có niên đại 40.000 năm tuổi .
|
| 3 |
+
2 test 4226 0.118466 19 0.076564 0.4167 1 0.438001 Dù vậy , thầy trò HLV Hoàng Tuấn Anh vấp phải hàng thủ được tổ chức tốt củaU .
|
| 4 |
+
3 test 4592 0.117090 14 0.083636 0.4000 0 0.487245 Nó thậm chí vừa kỷ niệm 67 năm bay quanh hành tinh xanh .
|
| 5 |
+
4 dev 1986 0.114202 10 0.091362 0.2500 0 0.497709 Văn sửng sốt : - Làm sao lại bỏ ?
|
| 6 |
+
5 test 7993 0.107452 15 0.073089 0.3333 1 0.444471 Các Chúa Nguyễn về danh nghĩa là quan lại của Nhà Lê Trung hưng .
|
| 7 |
+
6 test 2938 0.103645 15 0.089826 0.1538 0 0.466537 Nữ minh tinh nhíu mày : - Ra ngoài hồ sao lâu quá vậy ?
|
| 8 |
+
7 test 4770 0.102785 22 0.070080 0.4667 0 0.485898 Người Nữ Chân đã trả thù cho vương quốc Bột Hải từng bị người Khiết Đan tiêu diệt vào năm xưa .
|
| 9 |
+
8 dev 103 0.102390 18 0.090345 0.1333 0 0.453747 Ngài đã trao truyền cho Ma Ha Ca Diếp cái gì khi trao cho ngài cành hoa ?
|
| 10 |
+
9 test 5515 0.102103 9 0.079413 0.2857 0 0.492459 Thế David đối xử tốt với chị chứ ?
|
| 11 |
+
10 dev 9698 0.101365 23 0.082935 0.2222 0 0.385680 Các axit béo thường bão hòa hoặc không bão hòa đơn với độ dài chuỗi từ 16 đến 26 nguyên tử carbon .
|
| 12 |
+
11 dev 1395 0.099803 8 0.087327 0.1429 0 0.362241 Mặt Trời có hạng quang phổ G2V .
|
| 13 |
+
12 dev 4864 0.098360 17 0.063645 0.5455 0 0.385769 Thường sử dân vô tri vô dục , sử phù trí giả bất cảm vi dã .
|
| 14 |
+
13 test 7109 0.098148 6 0.065432 0.5000 0 0.392534 Giải nghĩa : Duyệt dã .
|
| 15 |
+
14 dev 3698 0.096770 12 0.072577 0.3333 0 0.486716 Chẳng lẽ cứ vua Lê , chúa Trịnh mãi thế này .
|
| 16 |
+
15 test 6806 0.096738 11 0.061561 0.5714 0 0.480032 Nữ thần tới để đôn đốc tướng quân lựa chọn .
|
| 17 |
+
16 dev 3159 0.096030 26 0.061459 0.5625 0 0.462741 Công nghệ nhận diện căn cước công dân gắn chip thông quaNFCgiúp quá trình xác thực danh tính diễn ra nhanh chóng và chính xác .
|
| 18 |
+
17 test 6613 0.095808 17 0.078901 0.2143 0 0.463867 Nữ minh tinh bĩu môi : - Nhưng tôi lại không thích nói chuyện với anh !
|
| 19 |
+
18 test 7577 0.095739 15 0.082973 0.1538 0 0.469382 Họ chửi rủa ỏm tỏi : - Tây vô đây làm gì đông quá !
|
| 20 |
+
19 test 3804 0.095277 23 0.082284 0.1579 0 0.415389 Nhất Linh ĐÔI BẠN Chương 2 Phần I Bên ông tuần có mở tiệc thọ mừng cụ Bang , bà nội Dũng .
|
| 21 |
+
20 test 7391 0.095185 13 0.073219 0.3000 0 0.398074 VN30 vượt 1.800 điểm ( Ảnh minh họa : Đăng Đức ) .
|
| 22 |
+
21 test 6337 0.095036 15 0.082365 0.1538 0 0.470823 Đây là 5/6 con sông của Lục Đầu Giang cùng với sông Kinh Thầy .
|
| 23 |
+
22 dev 8081 0.094295 8 0.070721 0.3333 0 0.461954 Tựa đề và phương pháp dịch 4.5 .
|
| 24 |
+
23 dev 4386 0.092331 13 0.067361 0.2222 1 0.473245 Gần 30.500 du học sinh và hơn 110 trường đã phản hồi .
|
| 25 |
+
24 dev 8691 0.092190 13 0.085098 0.0833 0 0.469826 Nhưng lúc San về , y bảo : - Anh liệu đấy !
|
| 26 |
+
25 test 2469 0.092038 24 0.072030 0.2778 0 0.416939 Khi Nhất Tiếu Hồng Trần nhìn thấy con số bạo thương này , kinh ngạc tới mức không thốt ra được nửa câu .
|
| 27 |
+
26 dev 7211 0.091950 17 0.059497 0.5455 0 0.442904 Huân chương Tự do hạng Nhất của Nhà nước Cộng hòa Dân chủ Nhân dân Lào .
|
| 28 |
+
27 dev 6989 0.091855 11 0.066804 0.3750 0 0.397094 Y thành thực yêu nghề và yêu các trẻ em .
|
| 29 |
+
28 dev 7942 0.091527 14 0.084990 0.0769 0 0.408987 Gã đang tán gì không biết nmà Kỳ Hương cười tươi như hoa .
|
| 30 |
+
29 test 1577 0.091421 16 0.073137 0.2500 0 0.427447 Hoa tủi còn đâu duyên tác hợp , Mây bay rồi nữa giấc chiêm bao !
|
| 31 |
+
30 dev 6168 0.090475 34 0.071848 0.2593 0 0.454712 Nghị Hách , mặc lòng mặc bộ áo trào vào ngày dạ tiệc , cũng chấp tay vái dài lưng cúi thật khom , mà rằng : - Bẩm lạy cụ lớn ạ .
|
| 32 |
+
31 dev 5426 0.090424 12 0.067818 0.3333 0 0.451500 Holly lúc nào cũng ngưỡng mộ tài nấu nướng của mẹ .
|
| 33 |
+
32 dev 7059 0.090244 12 0.075203 0.2000 0 0.467545 Văn vừa nói vừa ấn cái đồng hồ vào tay Minh .
|
| 34 |
+
33 test 8734 0.090198 9 0.070154 0.2857 0 0.447857 Và tình ái là sợi dây vấn vít .
|
| 35 |
+
34 test 1833 0.090018 11 0.057284 0.5714 0 0.451056 Định nghĩa Thông dịch Dịch đuổi Dịch song hành 7.2 .
|
| 36 |
+
35 test 2251 0.089105 8 0.077967 0.1429 0 0.477627 Liêm rất ghét những kẻ vong bản .
|
| 37 |
+
36 dev 8295 0.088628 17 0.062561 0.4167 0 0.457358 Cô ưu tiên những trang phục trẻ trung , quyến rũ tôn vòng eo thon gọn .
|
| 38 |
+
37 dev 832 0.088105 17 0.072557 0.2143 0 0.487539 Một anh bạn tôi thôi học 20 năm rồi mà còn oán môn Địa chất học .
|
| 39 |
+
38 test 7451 0.087897 39 0.050528 0.5417 1 0.428335 CỬA HÀNG TIỆN LỢI “ TIỆN LỢI ” NHỜ HỆ TH���NG LUÂN CHUYỂN HÀNG HÓA Chúng ta hãy cùng phân tích hoạt động mua hàng tại cửa hàng tiện lợi từ khía cạnh phí giao dịch liên quan .
|
| 40 |
+
39 test 4041 0.087631 12 0.071698 0.2222 0 0.470650 Phía sau , Thái Mạo dẫn binh lính đuổi đến rồi .
|
| 41 |
+
40 dev 796 0.087543 10 0.070034 0.2500 0 0.458788 Gió đêm mùa hạ sao lại lạnh thế này ?
|
| 42 |
+
41 test 4435 0.087460 13 0.067277 0.3000 0 0.498480 Đương đọc , Quỳnh bỗng phải dừng lại để tay áp ngực .
|
| 43 |
+
42 test 1926 0.086980 26 0.073598 0.1818 0 0.493773 Thủy Tiễn » « Vèo » , « vèo » - Vô ích thôi nhóc ạ , như thế không làm gì được ta đâu .
|
| 44 |
+
43 test 8174 0.086778 17 0.076569 0.1333 0 0.446461 San cười phì một cái ra đằng mũi , rồi lại chúi đầu vào sách học .
|
| 45 |
+
44 dev 6779 0.086491 19 0.077387 0.1176 0 0.474255 Tao mà cố tình hại mày , lát nữa xuống bơi , hà bá rút cẳng tao liền !
|
| 46 |
+
45 test 8864 0.086474 16 0.054625 0.4000 1 0.426044 Triết gia đi đi lại lại trong phòng , bực mình vì bị bác bỏ .
|
| 47 |
+
46 dev 1644 0.086101 10 0.047834 0.8000 0 0.468189 Viện trưởng Viện kiểm sát nhân dân tối cao .
|
| 48 |
+
47 test 5290 0.085898 22 0.066376 0.2941 0 0.457848 Đội bóng xứ sen hồng có hành trình chinh phục tấm vé chính thức dự VCK toàn quốc rất thuyết phục .
|
| 49 |
+
48 test 5925 0.085605 29 0.058089 0.4737 0 0.426702 Lý Công Uẩn lên ngôi Thế thứ các triều đại từ thời Hùng Vương đến hết TK X I. Thế thứ các triều đại thời sơ sử II .
|
| 50 |
+
49 dev 2947 0.085583 12 0.057055 0.5000 0 0.342904 Niết Bàn là lý tưởng cao đẹp nhất của chúng sanh .
|
| 51 |
+
50 test 5429 0.084998 18 0.056665 0.5000 0 0.460121 Thị dĩ thánh nhân xử thượng nhi dân bất trọng , xử tiền nhi dân bất hại .
|
| 52 |
+
51 test 1210 0.084340 10 0.075906 0.1111 0 0.457209 Ngữ đoạn và cấu trúc của ngữ đoạn 2.1 .
|
| 53 |
+
52 test 1107 0.084321 31 0.067457 0.2500 0 0.499115 Christopher Paolini Eragon - Cậu bé cưỡi rồng Tập 1 Thung lũng Palancar Sáng hôm sau , vầng dương ló dạng với những màu hồng và vàng tươi rực rỡ .
|
| 54 |
+
53 test 4422 0.084027 21 0.071423 0.1765 0 0.433664 Mấy anh lính khố xanh toan giơ cao cái roi mây thì quan công sứ ra hiệu ngăn lại hỏi ...
|
| 55 |
+
54 test 7130 0.083636 23 0.069090 0.2105 0 0.495195 Quẻ Thuần Khôn còn gọi là quẻ Khôn ( 坤 kūn ) , tức Đất là quẻ số 2 trong Kinh Dịch .
|
| 56 |
+
55 dev 5861 0.083627 17 0.063950 0.3077 0 0.491722 Trong lùng bùng áo mưa , Khang nói , Khang muốn về nhà thay quần áo .
|
| 57 |
+
56 test 9950 0.083516 48 0.058813 0.2500 1 0.483714 Nguyễn Đăng Tiến tước Quản Vũ hầu , tức Cai Gia ( theo Hoàng Lê nhất thống chí ) một tay " giặc già " Trung Quốc gốc người Việt Đông , Quảng Tây sang đầu quân làm thuộc hạ , tân khách dưới trướng Nguyễn Khản .
|
| 58 |
+
57 test 838 0.083323 7 0.071420 0.1667 0 0.497610 Cay đắng chạy vào Malaysia 31 .
|
| 59 |
+
58 test 4666 0.082789 21 0.051381 0.4167 1 0.465111 Ông từng giữ chức Chủ tịch và Tổng Thư ký của Tổng Liên đoàn Vovinam Việt Võ Đạo Thế giới .
|
| 60 |
+
59 test 8882 0.082225 9 0.063953 0.2857 0 0.490249 Sao bà Hoàng lại nói như thế nhỉ ?
|
| 61 |
+
60 test 8524 0.082209 31 0.059530 0.3810 0 0.384412 Ngẫm nghĩ giây lát , thị nữ bèn tâu : - Trình bệ hạ , quả là quan điện tiền Trần Thủ Độ có năng lui tới cung hoàng hậu .
|
| 62 |
+
61 test 1619 0.081681 30 0.059900 0.3636 0 0.483023 Mọi người có thể tích lũy những vật thặng thừa và từ đó sự phân biệt giàu nghèo do sự lớn nhỏ mạnh yếu về lao động xuất hiện .
|
| 63 |
+
62 dev 9085 0.081666 37 0.064009 0.2759 0 0.495617 Ứng dụng của ắc quy Các phương pháp phóng và nạp Nạp ắc quy lần thứ nhất Ắc quy mới lắp hoặc sau khi sửa chữa thay thế bản cực xong , phải nạp hình thành .
|
| 64 |
+
63 dev 9841 0.081625 15 0.081625 0.0000 0 0.478545 Như người ta vẫn nói : “ Cho con mèo đồng xu Koban ” .
|
| 65 |
+
64 dev 5095 0.081587 31 0.063164 0.2917 0 0.406860 Bản hồ địa giả thân hạ 本乎地者親下 vật nào gốc ở đất thì thân thuộc với cõi dưới mệnh người trông Thượng cửu Thượng cửu : kháng long hữu hối .
|
| 66 |
+
65 test 2511 0.081424 15 0.069792 0.1667 0 0.415228 Cửu tam Hào từ : Lao khiêm , quân tử hữu chung , cát .
|
| 67 |
+
66 test 9833 0.081417 23 0.066614 0.2222 0 0.445216 Đối quark là các hạt như " đối đỏ " , " đối xanh lam " , " đối xanh lơ " .
|
| 68 |
+
67 dev 8121 0.081388 44 0.055582 0.4643 0 0.459157 Tuy nhiên , Khang vương Triệu Cấu của Bắc Tống tránh được nạn , đồng thời xưng đế ở Nam Kinh Quy Đức phủ ( nay thuộc Thương Khâu , Hà Nam ) , kiến quốc Nam Tống , tức Tống Cao Tông .
|
| 69 |
+
68 dev 3069 0.081200 31 0.056000 0.4500 0 0.405153 Công Tử Phù Tô không chạy theo nàng , mà lại cùng Công Tử Liên Thành song chiến với con Linh Sơn Tuyết Hầu mắt đỏ lông trắng như tuyết .
|
| 70 |
+
69 test 9339 0.081184 23 0.066424 0.2222 0 0.454714 Con người ốm yếu thế , ốm yếu từ những bệnh tật tích lũy trong năm , sáu , mười nghìn năm .
|
| 71 |
+
70 test 7548 0.081175 20 0.064940 0.2500 0 0.336833 Nãy giờ ngồi làm thinh , Kỳ Nam bỗng tủm tim cưới khiến Kỳ Hương cau mày khó chịu .
|
| 72 |
+
71 dev 4246 0.081055 8 0.060791 0.3333 0 0.221456 Truyện vị thần núi Hồng Lĩnh 31 .
|
| 73 |
+
72 dev 4780 0.081043 31 0.072938 0.1111 0 0.482829 Ngô Phù Sai không giết con mình nhưng cất quân đi đánh Tề và hội chư hầu lần nữa , nước Việt đánh úp nước Ngô và giết chết Hữu !
|
| 74 |
+
73 dev 2317 0.080775 9 0.053850 0.5000 0 0.279596 Đặc trưng của dịch thuật thính thị 6.2 .
|
| 75 |
+
74 dev 2306 0.080758 9 0.060569 0.3333 0 0.384998 Lee Nguyễn Cầu thủ Hoa Kỳ gốc Việt .
|
| 76 |
+
75 test 976 0.080685 12 0.060514 0.3333 0 0.263441 Thái độ trào lộng nhường chỗ cho châm biếm chua chát .
|
| 77 |
+
76 test 3445 0.080647 15 0.069894 0.1538 0 0.474387 Trần căn phòng không có vết ẩm như người ta thấy khắp tòa nhà .
|
| 78 |
+
77 dev 460 0.080567 38 0.063147 0.2759 0 0.485083 Cho nên trong tác phẩm “ Cung oán ngâm khúc ” của tác giả Ôn Như Hầu đã có câu : “ Phải duyên hương lửa cùng nhau , Xe dê lọ rắc lá dâu mới vào .
|
| 79 |
+
78 test 6026 0.080384 21 0.064307 0.2500 0 0.438402 Diệt Thiên Tru Ma : " Đám chó Khải Hoàn kia , ta lập tức tới giết sạch bọn ngươi !
|
| 80 |
+
79 dev 4155 0.079644 9 0.070794 0.1250 0 0.299169 Một ngày mùa đông tuyết phủ trắng xóa .
|
| 81 |
+
80 test 5672 0.079348 12 0.066123 0.2000 0 0.488454 Nhờ công Lê Lai cứu chúa này mà Okada thoát nạn .
|
| 82 |
+
81 dev 2368 0.079296 14 0.079296 0.0000 0 0.428298 Cau tiến sát tấm cửa liếp , cởi giỏ cá đeo bên hông .
|
| 83 |
+
82 test 3631 0.079109 36 0.061027 0.2963 0 0.466549 Anh trai Đường Minh nằm trên giường , vẻ mặt từa tựa Trác Mộc Cường Ba lúc nhác thấy tấm ảnh , cứ ngây ngây dại dại nhìn lên bức tường dán chi chít ảnh .
|
| 84 |
+
83 dev 1610 0.078465 30 0.062231 0.2609 0 0.461420 Thời niên thiếu Năm Quý Mão ( 1783 ) , Nguyễn Du thi Hương ở trường Sơn Nam , đậu Tam trường ( Sinh đồ ) lúc 18 tuổi .
|
| 85 |
+
84 test 7826 0.078035 37 0.050540 0.3462 1 0.462731 Không một ông nào trả lời vì có lẽ các ông đại diện ấy đến lúc ấy đều bán tín bán nghi không biết ăn chuột bao tử như thế là văn minh hay man dã .
|
| 86 |
+
85 dev 148 0.078000 25 0.058500 0.3333 0 0.359546 Bước vào đại học , nền tảng tích lũy từ các kỳ thi học sinh giỏi giúp Lâm chủ động sắp xếp bài vở .
|
| 87 |
+
86 dev 1030 0.077849 14 0.066727 0.1667 0 0.458599 Anh tập ngậm đũa để ăn uống , lật sách và gõ phím .
|
| 88 |
+
87 dev 5952 0.077848 9 0.051899 0.5000 0 0.433390 Tác giả chịu ơn độc giả nhiều lắm .
|
| 89 |
+
88 dev 4228 0.077757 14 0.066649 0.1667 0 0.371469 Qua một cánh đồng ngót hai cây số mới thấy đường cái quan .
|
| 90 |
+
89 dev 3394 0.077748 9 0.060471 0.2857 0 0.401418 Tao chơi bời không phải vô mục đích .
|
| 91 |
+
90 test 7668 0.077733 20 0.058300 0.3333 0 0.334984 Khi ở nhà chồng , Thị Kính giữ phận làm dâu , tôn kính phụng dưỡng bố mẹ chồng .
|
| 92 |
+
91 dev 1011 0.077532 36 0.060302 0.2857 0 0.427724 Tiêu Tiêu lườm Tĩnh Chi bằng ánh mắt bất lực rồi đáp với giọng chưa hết tức giận , “ này , cậu ngốc thật hay cố ý giả bộ trong sáng ngây thơ thế ?
|
| 93 |
+
92 dev 6341 0.077531 33 0.060571 0.2800 0 0.448857 Đà Lạt chiều em gió gác trăng thềm Một chút sương mơ ảo huyền mộng mị Một chút tơ vương rối hồn thi sĩ Gỡ giùm ta giăng mắc , hỡi em ..
|
| 94 |
+
93 dev 9723 0.077383 11 0.056279 0.3750 0 0.372973 Suy luận gièm pha Đánh rắn phải đánh vào đầu .
|
| 95 |
+
94 dev 269 0.077355 21 0.050281 0.5385 0 0.387546 Tôi bị xử phạt vi phạm hành chính liên quan đến an toàn vệ sinhthực phẩmkhi kinh doanh quán ăn .
|
| 96 |
+
95 test 4780 0.077185 9 0.060033 0.2857 0 0.491836 Như vậy mà cậu không thấy mệt sao ?
|
| 97 |
+
96 dev 3745 0.077038 10 0.061630 0.2500 0 0.280040 Đề thi Đẫm Máu Tác giả : Lôi Mễ .
|
| 98 |
+
97 dev 959 0.076946 16 0.056427 0.3636 0 0.454889 Cộng hòa Séc là quốc gia đa đảng theo chế độ cộng hòa đại nghị .
|
| 99 |
+
98 test 3777 0.076745 22 0.041861 0.8333 0 0.375912 Ngày nay chúng ta tạo nhân ngày mai chúng ta thọ quả , thực là rõ ràng rành mạch biết bao .
|
| 100 |
+
99 dev 4329 0.076731 19 0.068205 0.1250 0 0.490920 Dưới ánh đèn măng-sông sáng lóe , lúc ấy tôi mới ngắm kỹ dung mạo ông Cai Móm .
|
| 101 |
+
100 test 3819 0.076712 14 0.059009 0.3000 0 0.438582 Tình yêu của họ là một thứ tình yêu lệ thuộc kẻ khác .
|
| 102 |
+
101 test 9664 0.076650 15 0.060225 0.2727 0 0.449106 Thời đó ai ai cũng rõ Chu Du khôi ngô “ tuấn tú ” .
|
| 103 |
+
102 dev 7839 0.076608 15 0.071500 0.0714 0 0.442286 Kì lạ là học sinh mới vẩn tỉnh bơ ăn phần trưa của mình .
|
| 104 |
+
103 test 4187 0.076496 8 0.066934 0.1429 0 0.322865 Maurice và Adolphe sợ quá phát khóc ...
|
| 105 |
+
104 test 5805 0.076324 9 0.047702 0.6000 0 0.396684 A. Định nghĩa B . Phân loại 1 .
|
| 106 |
+
105 dev 2378 0.076312 18 0.059353 0.2857 0 0.362455 Mỗi làm gió thoảng qua đều được ướp hương hoa loa kèn thơm ngát và dịu ngọt .
|
| 107 |
+
106 dev 6866 0.076010 10 0.068409 0.1111 0 0.428811 Khổng Tử bèn rời nước Sở về nước Vệ .
|
| 108 |
+
107 dev 9325 0.075954 12 0.050636 0.5000 0 0.370414 Nghiên cứu mới công bố trên tạp chí quốc tếNature Communication .
|
| 109 |
+
108 dev 4434 0.075877 9 0.066393 0.1429 0 0.343580 Cái gì là lạ nhoi nhoi trong tôi ?
|
| 110 |
+
109 test 6429 0.075794 8 0.066320 0.1429 0 0.495409 Em nào giặt đồ mà chẳng cần ...
|
| 111 |
+
110 dev 2874 0.075443 30 0.057233 0.3182 0 0.439693 Trương Phúc Phan dùng kế trá hàng , tuyển mộ 15 người Chà Và ( có gốc gác từ Malacca ) ra Côn Đảo làm thuê cho quân Anh .
|
| 112 |
+
111 dev 9803 0.075373 26 0.060879 0.2381 0 0.356382 Nhà vua cầm sừng tê văn dài bảy tấc mà đi xuống biển , đại để cũng như nói cầm sừng tê đi xuống nước .
|
| 113 |
+
112 dev 7431 0.075365 31 0.060778 0.2400 0 0.480767 Tên gọi Sào Nam ( 巢南 ) được lấy từ câu " 越鳥巢南枝 [ Việt điểu sào nam chi , nghĩa là Chim Việt làm tổ cành Nam ] " .
|
| 114 |
+
113 dev 3905 0.075328 10 0.052729 0.4286 0 0.292166 Kể ra công sở tiêu tiền rất phí phạm .
|
| 115 |
+
114 dev 2765 0.075259 26 0.054186 0.3889 0 0.354216 Trác Mộc Cường Ba kéo tay người phụ nữ , chỉ vào Phương Tân đứng xa xa nói : ‘ A ma , đô na !
|
| 116 |
+
115 dev 8323 0.075191 18 0.058482 0.2857 0 0.430440 Mạnh Phàm Triết kêu lên thất thanh , rồi cùng Phương Mộc ngã nhào xuống sân thượng .
|
| 117 |
+
116 dev 7668 0.075161 52 0.037174 0.4839 2 0.471260 Một số di tích tiêu biểu tại khu vực Óc Eo – Ba Thê đã được khai quật và bảo tồn bao gồm : Nam Linh Sơn Tự , Gò Cây Me , Gò Út Trạnh , Gò Óc Eo , Gò Cây Thị A và B , Gò Giồng Cát ...
|
| 118 |
+
117 test 3268 0.075130 16 0.070434 0.0667 0 0.407115 Sự thực , em cũng đã yêu vụng giấu thầm anh trong bao nhiêu lâu !
|
| 119 |
+
118 test 8948 0.074990 30 0.059992 0.2500 0 0.498176 Vị tướng già đứng nhìn người chép sách trẻ tuổi và hóm hỉnh nheo mắt : - Cháu sẽ thu xếp khăn gói lên đường trong tuần trăng này .
|
| 120 |
+
119 test 1651 0.074973 13 0.068725 0.0909 0 0.381690 Phương Tân nghi hoặc trong lòng , lộ ra cả nét mặt .
|
| 121 |
+
120 dev 8449 0.074818 37 0.058192 0.2857 0 0.462078 Ngoài khối hiệp thông chính , còn tồn tại các giáo hội ly khai theo lịch cũ ( Chính thống giáo Cựu lịch ) , hoặc nghi thức cũ ( Tín hữu Cựu nghi thức ) .
|
| 122 |
+
121 dev 6243 0.074749 50 0.049595 0.3056 1 0.443688 Đến lúc này , Liêu Thiên Tộ Đế mới xem trọng sự việc , đồng thời hạ lệnh thân chinh , song quân Liêu bị quân Kim đánh bại , còn nội bộ triều Liêu lại xảy ra việc Da Luật Chương Nô và Cao Vĩnh Xương làm phản .
|
| 123 |
+
122 dev 9296 0.074705 15 0.059764 0.2500 0 0.490440 Kỳ Nam bật cười : - Có cái chuyên môn như vậy nữa sao ?
|
| 124 |
+
123 dev 9421 0.074615 20 0.059692 0.2500 0 0.482721 Mặc dầu vậy , chúng vẫn tông cửa xông vào , rất ít gia đình Do Thái tránh được .
|
| 125 |
+
124 test 7378 0.074589 20 0.063401 0.1765 0 0.482855 Đọc dò và đọc lướt theo mục đích Đọc dò Bài luyện tập Đọc lướt Bài luyện tập 7 .
|
| 126 |
+
125 dev 5276 0.074495 20 0.063321 0.1765 0 0.456219 Kinh sách thường dạy : Phật và chúng sanh tánh thường rỗng lặng , chính là nghĩa như vậy .
|
| 127 |
+
126 test 9085 0.074444 16 0.051180 0.4545 0 0.463774 Một thể chất bạc nhược không bao giờ có đặng một tinh thần dũng mãnh .
|
| 128 |
+
127 dev 6163 0.074312 34 0.063383 0.1724 0 0.488757 Tỉ dụ như câu này , ở chương 2 : “ Hữu vô tương SANH , “ Nan dị tương THÀNH , “ Trường đoản tương HÌNH , “ Cao hạ tương KHUYNH .
|
| 129 |
+
128 test 6627 0.074230 12 0.055673 0.3333 0 0.433737 Kẻ tả hữu thưa : “ Ấy là Dương Tu ” .
|
| 130 |
+
129 test 6221 0.074173 36 0.055629 0.3333 0 0.429212 Sự kiện 908 – Một năm sau khi tiếm vị , Hậu Lương Thái Tổ cho hạ độc giết chết Lý Chúc , tức Đường Ai Đế , hoàng đế cuối cùng của triều Đường .
|
| 131 |
+
130 dev 5220 0.074140 14 0.063549 0.1667 0 0.453948 Trong tự nhiên và văn hóa Tập tin : Color icon pink v2 .
|
| 132 |
+
131 dev 1481 0.074068 10 0.057608 0.2857 0 0.388282 Khả trinh 可貞 – có thể giữ bền được .
|
| 133 |
+
132 dev 8916 0.074041 8 0.064786 0.1429 0 0.446816 Hương già mà bày đặt trông mẹ .
|
| 134 |
+
133 test 9576 0.073958 53 0.055817 0.3250 0 0.444774 Làm như thế cốt để mưu nghiệp lớn , chọn ở chỗ giữa , làm kế cho con cháu muôn vạn đời , trên kính mệnh trời , dưới theo ý dân , nếu có chỗ tiện thì dời đổi , cho nên vận nước lâu dài , phong tục giàu thịnh .
|
| 135 |
+
134 test 7450 0.073856 13 0.051131 0.4444 0 0.374198 Tuy thế , thỉnh thoảng chàng cũng làm được việc giá trị .
|
| 136 |
+
135 test 4585 0.073824 17 0.056454 0.3077 0 0.444112 Thế Lữ hoan hỉ tuyên bố : Từ nay , chúng ta đã có Xuân Diệu .
|
| 137 |
+
136 dev 5341 0.073682 29 0.063156 0.1667 0 0.410964 Đại Bình nguyên nằm ở trung bộ Texas , trải dài từ Vùng Cán xoong của tiểu bang và Llano Estacado cho đến Vùng Đồi Texas gần Austin .
|
| 138 |
+
137 dev 4170 0.073531 10 0.051472 0.4286 0 0.481334 Nguyên phệ , nguyên vĩnh trinh , vô cữu .
|
| 139 |
+
138 test 8058 0.073486 15 0.063688 0.1538 0 0.379196 Trước mắt anh , những luống cúc mâm xôi vàng rực đã bung nở .
|
| 140 |
+
139 dev 947 0.073358 24 0.051962 0.4118 0 0.431265 Nó ra đời như một liệu pháp y tế để kiểm soát các cơn động kinh ở bệnh nhân động kinh kháng thuốc .
|
| 141 |
+
140 dev 6672 0.073331 8 0.054998 0.3333 0 0.437901 Ba chàng trai ngơ ngác nhìn nhau .
|
| 142 |
+
141 dev 9005 0.073292 13 0.061077 0.2000 0 0.441073 Khi ông tạ thế , vua Minh Mạng phong Lương năng bá .
|
| 143 |
+
142 test 6982 0.073233 12 0.067130 0.0909 0 0.466531 Chị Nga đứng im , tròn xoe mắt , không hiểu .
|
| 144 |
+
143 test 195 0.073208 14 0.052292 0.4000 0 0.451739 Đành phải phó mặc mọi sự , chống đỡ bây giờ vô hiệu .
|
| 145 |
+
144 test 7397 0.073016 33 0.042047 0.2609 2 0.414529 Đế Lai bèn để ái nữ là Âu Cơ và các thị tỳ ở lại nơi hành tại rồi đi chu du thiên hạ , ngắm các nơi danh lam thắng cảnh .
|
| 146 |
+
145 dev 8652 0.072991 13 0.061762 0.1818 0 0.432060 Không bao giờ sự vật hé ra một tý cho họ thấy .
|
| 147 |
+
146 dev 344 0.072935 39 0.049903 0.4615 0 0.475066 Nơi nguyên quán Võ Tánh là Gò Công , ấp Gò Tre có hai câu đối ghi công ơn họ Võ như sau : “ Khổng Tước kỳ , khẳng khái Cần vương , tam hùng thủ liệt .
|
| 148 |
+
147 dev 4097 0.072916 17 0.060049 0.2143 0 0.418667 Tôi không bao giờ có ý đùa cụ , nhưng đã có lần dò ý cụ .
|
| 149 |
+
148 test 3199 0.072866 19 0.069031 0.0556 0 0.379981 Con chó đi rồi , tríêt gia duỗi thẳng chân về phía lò sưởi đang cháy tí tách .
|
| 150 |
+
149 test 4693 0.072819 16 0.054615 0.3333 0 0.411808 Sách có câu : " Tinh thần minh mẩn trong thân thể tráng kiện " .
|
| 151 |
+
150 test 1162 0.072775 9 0.064689 0.1250 0 0.346305 Tiếng lọach xọach kéo chốt rồi cửa mở .
|
| 152 |
+
151 test 211 0.072616 12 0.059413 0.2222 0 0.330733 Cây lương thực chính vùng này là lúa nước và ngô .
|
| 153 |
+
152 test 2715 0.072512 12 0.060427 0.2000 0 0.407835 Hương thơm ngọt ngào của món cranachan thoảng vào từ bếp .
|
| 154 |
+
153 test 427 0.072379 18 0.060315 0.2000 0 0.475350 Lão Sloan cúi nhìn chăm chú , miệng lẩm bẩm : - Chắc đồ chôm chỉa đây .
|
| 155 |
+
154 dev 17 0.072159 9 0.054119 0.3333 0 0.461577 Triệu Việt Vương đã chết như thế nào ?
|
| 156 |
+
155 test 7331 0.072123 35 0.053577 0.3462 0 0.488467 Theo Hoài Thanh trong Thi nhân Việt Nam : “ Độ ấy Thơ Mới vừa ra đời , Thế Lữ như vừng sao đột hiện ánh sáng chói khắp cả trời thơ Việt Nam .
|
| 157 |
+
156 test 7856 0.072076 16 0.063066 0.1429 0 0.445630 Còn gì bằng được ông Chánh mật thám gọi đến chữa cho con gái nữa .
|
| 158 |
+
157 dev 4300 0.071919 18 0.051941 0.3846 0 0.492143 Rồi những ngày tháng cứ Mưa dầm thấm từ từ Nàng rằng anh quyết tử Yêu yêu ...
|
| 159 |
+
158 dev 8322 0.071744 39 0.058867 0.2188 0 0.457048 Đao Đao Kiến Huyết nhào lên điên cuồng tấn công , trong nháy mắt thò tay vào bọc lấy hồng dược uống thêm , nhưng vẫn không chịu nổi một chiêu bạo kích của Ma Tiêu Dao kia .
|
| 160 |
+
159 dev 2786 0.071588 13 0.060575 0.1818 0 0.477334 Thủ cựu đợi thời chi tượng : giữ mức cũ đợi thời .
|
| 161 |
+
160 dev 6588 0.071568 13 0.071568 0.0000 0 0.398594 Sao mày đốn thế , mày để tao gào rát cả cổ !
|
| 162 |
+
161 dev 1281 0.071485 9 0.055599 0.2857 0 0.343125 Đồng hồ báo xăng chỉ ba phần tư .
|
| 163 |
+
162 test 3149 0.071397 8 0.071397 0.0000 0 0.290680 Để đầu trần để tránh lửa bén .
|
| 164 |
+
163 test 6835 0.071345 16 0.057968 0.2308 0 0.475611 Có thể vì Tuyền thích gương mặt Khang , với mũi dài và mắt xếch .
|
| 165 |
+
164 test 7572 0.071192 15 0.060239 0.1818 0 0.381069 Trong Doanh hoàn chí lược ( 1849 ) , Từ Kế Dư viếtː " ...
|
| 166 |
+
165 test 7554 0.071139 11 0.071139 0.0000 0 0.493656 Súng nổ rền trời … tôi nói dóc làm gì .
|
| 167 |
+
166 dev 6613 0.071066 36 0.048731 0.4583 0 0.386043 Đến thế kỷ 16 , đại lãnh chúa Hideoshi phái một hạm đội mở cuộc viễn chinh đầu tiên tiến chiếm Cao Ly , nhưng hạm đội Nhật bị hải quân Cao Ly đánh tan .
|
| 168 |
+
167 dev 429 0.071032 12 0.064575 0.1000 0 0.382149 Một cơn gió mạnh đem theo hương thơm ngào ngạt hơn .
|
| 169 |
+
168 test 4080 0.070979 23 0.049376 0.4375 0 0.489624 Xét nghiệm định lượng lactat cao 6,58 cho thấy người bệnh bị sốc nhiễm khuẩn khiến huyết áp tụt sâu 78/45 mmHg .
|
| 170 |
+
169 dev 2851 0.070935 29 0.044823 0.1364 2 0.464640 Một người khác xưng mình là “ Tề Thiên Đại Thánh ” và thường gây hấn với một người khác xưng là “ Nam Hải Quán Âm ” .
|
| 171 |
+
170 dev 6536 0.070934 30 0.056258 0.2609 0 0.399172 Tinh thần trí não họ như của đứa trẻ thơ , mừng giận thương vui đều phát hiện liền bằng những cử động sát một bên với xúc động .
|
| 172 |
+
171 dev 9147 0.070888 9 0.055135 0.2857 0 0.402720 Bắc Việt của một ngày xa xưa ơi !
|
| 173 |
+
172 dev 623 0.070861 21 0.055943 0.2667 0 0.481031 Những thiên Hà Cừ Thư , Bình Chuẩn Thư , viết với nhãn lực của một nhà kinh tế học .
|
| 174 |
+
173 test 1974 0.070815 12 0.064913 0.0909 0 0.424932 Nếu thế mà vẫn không được thì đành chịu vậy ” .
|
| 175 |
+
174 dev 6195 0.070735 67 0.049300 0.4348 0 0.477989 Nguồn gốc của Kim Vân Kiều truyện Theo Trần Đình Sử trong Thi pháp Truyện Kiều , Kim Vân Kiều truyện đã qua sáu lần biên soạn lại : Bản ghi chép sớm nhất về sự tích Thúy Kiều - Từ Hải là Kỷ tiễu trừ Từ Hải bản mạt ( Ghi chép đầu đuôi chuyện dẹp trừ Từ Hải ) của Mao Khôn đời Minh .
|
| 176 |
+
175 test 4908 0.070677 10 0.056541 0.2500 0 0.421126 Ngoài xấp tiền giấy còn một đống tiền hào .
|
| 177 |
+
176 dev 7978 0.070414 15 0.061026 0.1538 0 0.470716 Cúc Hương nháy mắt : - Nói vậy chứ anh để tụi này trả .
|
| 178 |
+
177 test 7782 0.070395 9 0.062573 0.1250 0 0.311407 Nam nhíu mày : - Ông ngoại nào ?
|
| 179 |
+
178 test 4248 0.070362 14 0.050259 0.4000 0 0.394092 Làm sao thần có thể an toàn được nếu định lừa bệ hạ ?
|
| 180 |
+
179 test 2394 0.070320 18 0.066413 0.0588 0 0.432113 Dù phải lội sình và bị muỗi cắn , đỉa bám thì cũng nên đi cho biết .
|
| 181 |
+
180 test 8544 0.070090 23 0.057346 0.2222 0 0.497318 Nền Đệ Ngũ cộng hòa dưới quyền Charles de Gaulle được thành lập vào năm 1958 và tồn tại cho đến nay .
|
| 182 |
+
181 dev 4679 0.069849 13 0.059103 0.1818 0 0.496467 Cúc Hương lên tiếng : - Con Thục nói vậy không được .
|
| 183 |
+
182 test 6695 0.069797 9 0.054287 0.2857 0 0.208383 Hành lang hôi mùi cải luộc chiếu nát .
|
| 184 |
+
183 test 4783 0.069674 19 0.047671 0.4615 0 0.263335 Ba hiệp đầu chứng kiến thế trận cân bằng , hai đội liên tục ăn miếng trả miếng .
|
| 185 |
+
184 dev 4754 0.069618 23 0.051457 0.3529 0 0.409701 Ngày mai đây , người ta sẽ lấy đi sản nghiệp suốt mấy mươi năm khó nhọc gầy dựng của ba mẹ .
|
| 186 |
+
185 dev 912 0.069618 17 0.049142 0.4167 0 0.470716 Cúc Hương nháy mắt : - Mày để ý anh chàng Phong Khê kia chứ gì ?
|
| 187 |
+
186 dev 3578 0.069538 44 0.052153 0.3333 0 0.447925 Năm 1533 , Nguyễn Kim đón con trai của Lê Chiêu Tông tên Lê Ninh , lập làm vua tức vua Lê Trang Tông , nhờ công ấy ông được phong làm Thượng phụ thái sư Hưng quốc công chưởng nội ngoại sự .
|
| 188 |
+
187 test 5033 0.069520 21 0.066209 0.0500 0 0.408108 Đêm nay chim ngủ đâu Mà đêm nay hồn anh ở đâu Này chú chim xanh Bao giờ báo tiệp ?
|
| 189 |
+
188 dev 5163 0.069380 13 0.063598 0.0909 0 0.412497 Cô Tư Hạnh tốc nóp , dụi mắt : - Nó đâu ?
|
| 190 |
+
189 dev 8998 0.069294 21 0.051970 0.3333 0 0.472209 Tổng quan Ngân Hà bản chất là một thiên hà xoắn ốc chặn ngang kiểu SBbc theo phân loại Hubble .
|
| 191 |
+
190 dev 5623 0.069076 22 0.059657 0.1579 0 0.441546 Tiến yêu Lãng như em ruột , vợ Tiến còn bé tí cũng bắt chước chồng , coi Lãng như em .
|
| 192 |
+
191 dev 8855 0.069027 28 0.049189 0.2000 1 0.458044 Bài chia sẻ của Đình Bắc ẢNH CHỤP MÀN HÌNH Đình Bắc vừa trải qua giải đấu chói sáng tại VCK U . 23 châu Á 2026 .
|
| 193 |
+
192 dev 6700 0.068847 30 0.054094 0.2727 0 0.414839 CAO VĂN LUẬN Viện trưởng viện Đại Học Huế Chu Tử SỐNG Phần I Chương 1 Huyền hốt hoảng gọi với theo người thanh niên : - Anh Thịnh !
|
| 194 |
+
193 dev 3915 0.068588 24 0.059642 0.1500 0 0.425539 Tống Mẫn Công nói : “ Ta với Nam Cung Trường Vạn là chỗ thân nhau lắm , cần gì điều ấy ” .
|
| 195 |
+
194 test 2710 0.068587 18 0.060967 0.1250 0 0.384732 U mày đau bụng , kêu rối rít lên , làm tao cũng quên bẵng đi mất ...
|
| 196 |
+
195 test 29 0.068497 13 0.047421 0.4444 0 0.338639 Lời tâu của Lý Tiến , Lý Cầm và Trương Trọng 13 .
|
| 197 |
+
196 dev 8974 0.068337 18 0.040107 0.4545 1 0.467712 Ngày nay , Thụy Điển là một nước quân chủ lập hiến với thể chế đại nghị .
|
| 198 |
+
197 test 8657 0.068301 20 0.048212 0.4167 0 0.487623 Chiêu Quốc vương Trần Ích Tắc , trấn thủ lộ này , mời ông đến làm chủ hội vật .
|
| 199 |
+
198 dev 6791 0.068133 36 0.056777 0.2000 0 0.459344 Hệ Mặt Trời nằm ở mặt trong của Cánh tay Orion - một cấu trúc hình xoắn ốc chứa đầy bụi và khí gas , cách tâm quay Galactic Center khoảng 26,000 năm ánh sáng .
|
| 200 |
+
199 test 4537 0.068118 13 0.052399 0.3000 0 0.403474 Chiều chiều nghe vượn hú , Hoa lá rụng , buồn buồn .
|
| 201 |
+
200 dev 3912 0.067944 32 0.054355 0.2500 0 0.426858 Căn cứ năm 627 , sứ giả Phù Nam còn đến tiến cống nhà Đường , nên có thể suy ra nước Phù Nam bị tiêu diệt phải sau năm này .
|
|
@@ -0,0 +1,1782 @@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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# sent_id = uvb-f-10324
|
| 2 |
+
# text = Tiếng nước đập ì ầm vang trong không gian .
|
| 3 |
+
Tiếng B-W
|
| 4 |
+
nước B-W
|
| 5 |
+
đập B-W
|
| 6 |
+
ì B-W
|
| 7 |
+
ầm I-W
|
| 8 |
+
vang B-W
|
| 9 |
+
trong B-W
|
| 10 |
+
không B-W
|
| 11 |
+
gian I-W
|
| 12 |
+
. B-W
|
| 13 |
+
|
| 14 |
+
# sent_id = uvb-f-10494
|
| 15 |
+
# text = Văng vẳng đâu đây dạo khúc Ánh Trăng của Beethoven .
|
| 16 |
+
Văng B-W
|
| 17 |
+
vẳng I-W
|
| 18 |
+
đâu B-W
|
| 19 |
+
đây I-W
|
| 20 |
+
dạo B-W
|
| 21 |
+
khúc B-W
|
| 22 |
+
Ánh B-W
|
| 23 |
+
Trăng I-W
|
| 24 |
+
của B-W
|
| 25 |
+
Beethoven B-W
|
| 26 |
+
. B-W
|
| 27 |
+
|
| 28 |
+
# sent_id = uvb-f-1078
|
| 29 |
+
# text = Mặt Kỳ Nam xụ xuống mất hứng .
|
| 30 |
+
Mặt B-W
|
| 31 |
+
Kỳ B-W
|
| 32 |
+
Nam I-W
|
| 33 |
+
xụ B-W
|
| 34 |
+
xuống B-W
|
| 35 |
+
mất B-W
|
| 36 |
+
hứng I-W
|
| 37 |
+
. B-W
|
| 38 |
+
|
| 39 |
+
# sent_id = uvb-f-11528
|
| 40 |
+
# text = Trong chuyện của Homer thần linh giữ vai trò đáng kể .
|
| 41 |
+
Trong B-W
|
| 42 |
+
chuyện B-W
|
| 43 |
+
của B-W
|
| 44 |
+
Homer B-W
|
| 45 |
+
thần B-W
|
| 46 |
+
linh I-W
|
| 47 |
+
giữ B-W
|
| 48 |
+
vai B-W
|
| 49 |
+
trò I-W
|
| 50 |
+
đáng B-W
|
| 51 |
+
kể I-W
|
| 52 |
+
. B-W
|
| 53 |
+
|
| 54 |
+
# sent_id = uvb-f-116
|
| 55 |
+
# text = Thân không là lính thú Sao không về cố hương ?
|
| 56 |
+
Thân B-W
|
| 57 |
+
không B-W
|
| 58 |
+
là B-W
|
| 59 |
+
lính B-W
|
| 60 |
+
thú I-W
|
| 61 |
+
Sao B-W
|
| 62 |
+
không B-W
|
| 63 |
+
về B-W
|
| 64 |
+
cố B-W
|
| 65 |
+
hương I-W
|
| 66 |
+
? B-W
|
| 67 |
+
|
| 68 |
+
# sent_id = uvb-f-12571
|
| 69 |
+
# text = Anh không nỡ tẩy chay em chút nào .
|
| 70 |
+
Anh B-W
|
| 71 |
+
không B-W
|
| 72 |
+
nỡ B-W
|
| 73 |
+
tẩy B-W
|
| 74 |
+
chay I-W
|
| 75 |
+
em B-W
|
| 76 |
+
chút B-W
|
| 77 |
+
nào B-W
|
| 78 |
+
. B-W
|
| 79 |
+
|
| 80 |
+
# sent_id = uvb-f-13184
|
| 81 |
+
# text = Ta thấy Odysseus phải ra tay đối phó với tình thế một mất một còn .
|
| 82 |
+
Ta B-W
|
| 83 |
+
thấy B-W
|
| 84 |
+
Odysseus B-W
|
| 85 |
+
phải B-W
|
| 86 |
+
ra B-W
|
| 87 |
+
tay I-W
|
| 88 |
+
đối B-W
|
| 89 |
+
phó I-W
|
| 90 |
+
với B-W
|
| 91 |
+
tình B-W
|
| 92 |
+
thế I-W
|
| 93 |
+
một B-W
|
| 94 |
+
mất I-W
|
| 95 |
+
một I-W
|
| 96 |
+
còn I-W
|
| 97 |
+
. B-W
|
| 98 |
+
|
| 99 |
+
# sent_id = uvb-f-14791
|
| 100 |
+
# text = Vậy mà tao phóng xe như điên sợ trễ .
|
| 101 |
+
Vậy B-W
|
| 102 |
+
mà I-W
|
| 103 |
+
tao B-W
|
| 104 |
+
phóng B-W
|
| 105 |
+
xe B-W
|
| 106 |
+
như B-W
|
| 107 |
+
điên I-W
|
| 108 |
+
sợ B-W
|
| 109 |
+
trễ B-W
|
| 110 |
+
. B-W
|
| 111 |
+
|
| 112 |
+
# sent_id = uvb-f-15743
|
| 113 |
+
# text = Say sưa tự tôn con người coi mình như thần linh .
|
| 114 |
+
Say B-W
|
| 115 |
+
sưa I-W
|
| 116 |
+
tự B-W
|
| 117 |
+
tôn I-W
|
| 118 |
+
con B-W
|
| 119 |
+
người I-W
|
| 120 |
+
coi B-W
|
| 121 |
+
mình B-W
|
| 122 |
+
như B-W
|
| 123 |
+
thần B-W
|
| 124 |
+
linh I-W
|
| 125 |
+
. B-W
|
| 126 |
+
|
| 127 |
+
# sent_id = uvb-f-16030
|
| 128 |
+
# text = Quỳnh nghiến răng , rủa thầm .
|
| 129 |
+
Quỳnh B-W
|
| 130 |
+
nghiến B-W
|
| 131 |
+
răng I-W
|
| 132 |
+
, B-W
|
| 133 |
+
rủa B-W
|
| 134 |
+
thầm I-W
|
| 135 |
+
. B-W
|
| 136 |
+
|
| 137 |
+
# sent_id = uvb-f-16202
|
| 138 |
+
# text = Nữ minh tinh khịt mũi : - Con ễnh ương chứ ai !
|
| 139 |
+
Nữ B-W
|
| 140 |
+
minh I-W
|
| 141 |
+
tinh I-W
|
| 142 |
+
khịt B-W
|
| 143 |
+
mũi I-W
|
| 144 |
+
: B-W
|
| 145 |
+
- B-W
|
| 146 |
+
Con B-W
|
| 147 |
+
ễnh B-W
|
| 148 |
+
ương I-W
|
| 149 |
+
chứ B-W
|
| 150 |
+
ai B-W
|
| 151 |
+
! B-W
|
| 152 |
+
|
| 153 |
+
# sent_id = uvb-f-16922
|
| 154 |
+
# text = Cecelia Ahern PS I LOVE YOU Chương 4 PS I LOVE YOU - SỨC MẠNH TÌNH YÊU Vào hôm sinh nhật Holly đứng trước chiếc gương lớn ngắm mình .
|
| 155 |
+
Cecelia B-W
|
| 156 |
+
Ahern B-W
|
| 157 |
+
PS B-W
|
| 158 |
+
I B-W
|
| 159 |
+
LOVE B-W
|
| 160 |
+
YOU B-W
|
| 161 |
+
Chương B-W
|
| 162 |
+
4 B-W
|
| 163 |
+
PS B-W
|
| 164 |
+
I B-W
|
| 165 |
+
LOVE B-W
|
| 166 |
+
YOU I-W
|
| 167 |
+
- B-W
|
| 168 |
+
SỨC B-W
|
| 169 |
+
MẠNH I-W
|
| 170 |
+
TÌNH I-W
|
| 171 |
+
YÊU I-W
|
| 172 |
+
Vào B-W
|
| 173 |
+
hôm B-W
|
| 174 |
+
sinh B-W
|
| 175 |
+
nhật I-W
|
| 176 |
+
Holly B-W
|
| 177 |
+
đứng B-W
|
| 178 |
+
trước B-W
|
| 179 |
+
chiếc B-W
|
| 180 |
+
gương B-W
|
| 181 |
+
lớn B-W
|
| 182 |
+
ngắm B-W
|
| 183 |
+
mình B-W
|
| 184 |
+
. B-W
|
| 185 |
+
|
| 186 |
+
# sent_id = uvb-f-17901
|
| 187 |
+
# text = Bọn gia nhân túc trực rất đông , người vận quần áo khá sang trọng , kẻ bận sơ sài tầm thường như anh chăn lợn Gurth .
|
| 188 |
+
Bọn B-W
|
| 189 |
+
gia B-W
|
| 190 |
+
nhân I-W
|
| 191 |
+
túc B-W
|
| 192 |
+
trực I-W
|
| 193 |
+
rất B-W
|
| 194 |
+
đông B-W
|
| 195 |
+
, B-W
|
| 196 |
+
người B-W
|
| 197 |
+
vận B-W
|
| 198 |
+
quần B-W
|
| 199 |
+
áo I-W
|
| 200 |
+
khá B-W
|
| 201 |
+
sang B-W
|
| 202 |
+
trọng I-W
|
| 203 |
+
, B-W
|
| 204 |
+
kẻ B-W
|
| 205 |
+
bận B-W
|
| 206 |
+
sơ B-W
|
| 207 |
+
sài I-W
|
| 208 |
+
tầm B-W
|
| 209 |
+
thường B-W
|
| 210 |
+
như B-W
|
| 211 |
+
anh B-W
|
| 212 |
+
chăn B-W
|
| 213 |
+
lợn I-W
|
| 214 |
+
Gurth B-W
|
| 215 |
+
. B-W
|
| 216 |
+
|
| 217 |
+
# sent_id = uvb-f-18098
|
| 218 |
+
# text = Khải nheo nheo mắt : - Nhớ nghen !
|
| 219 |
+
Khải B-W
|
| 220 |
+
nheo B-W
|
| 221 |
+
nheo I-W
|
| 222 |
+
mắt B-W
|
| 223 |
+
: B-W
|
| 224 |
+
- B-W
|
| 225 |
+
Nhớ B-W
|
| 226 |
+
nghen B-W
|
| 227 |
+
! B-W
|
| 228 |
+
|
| 229 |
+
# sent_id = uvb-f-19929
|
| 230 |
+
# text = Anh ta chỉ là một sự xao lãng thôi .
|
| 231 |
+
Anh B-W
|
| 232 |
+
ta B-W
|
| 233 |
+
chỉ B-W
|
| 234 |
+
là B-W
|
| 235 |
+
một B-W
|
| 236 |
+
sự B-W
|
| 237 |
+
xao B-W
|
| 238 |
+
lãng I-W
|
| 239 |
+
thôi B-W
|
| 240 |
+
. B-W
|
| 241 |
+
|
| 242 |
+
# sent_id = uvb-f-2195
|
| 243 |
+
# text = Em nhớ về hởi người thương Bờ xe nước tạc thơi gian đó Ai cắt cớ nói chi bao điều khó Đá La Hà vẫn trỗi mọc còn kia .
|
| 244 |
+
Em B-W
|
| 245 |
+
nhớ B-W
|
| 246 |
+
về B-W
|
| 247 |
+
hởi B-W
|
| 248 |
+
người B-W
|
| 249 |
+
thương I-W
|
| 250 |
+
Bờ B-W
|
| 251 |
+
xe I-W
|
| 252 |
+
nước I-W
|
| 253 |
+
tạc B-W
|
| 254 |
+
thơi B-W
|
| 255 |
+
gian I-W
|
| 256 |
+
đó B-W
|
| 257 |
+
Ai B-W
|
| 258 |
+
cắt B-W
|
| 259 |
+
cớ I-W
|
| 260 |
+
nói B-W
|
| 261 |
+
chi B-W
|
| 262 |
+
bao B-W
|
| 263 |
+
điều B-W
|
| 264 |
+
khó B-W
|
| 265 |
+
Đá B-W
|
| 266 |
+
La I-W
|
| 267 |
+
Hà I-W
|
| 268 |
+
vẫn B-W
|
| 269 |
+
trỗi B-W
|
| 270 |
+
mọc B-W
|
| 271 |
+
còn B-W
|
| 272 |
+
kia B-W
|
| 273 |
+
. B-W
|
| 274 |
+
|
| 275 |
+
# sent_id = uvb-f-3070
|
| 276 |
+
# text = Xin chào sĩ quan quân kỳ Iago !
|
| 277 |
+
Xin B-W
|
| 278 |
+
chào I-W
|
| 279 |
+
sĩ B-W
|
| 280 |
+
quan I-W
|
| 281 |
+
quân B-W
|
| 282 |
+
kỳ I-W
|
| 283 |
+
Iago B-W
|
| 284 |
+
! B-W
|
| 285 |
+
|
| 286 |
+
# sent_id = uvb-f-5207
|
| 287 |
+
# text = Nhiệm bán tín bán nghi : - Tâm lý gì lạ vậy ?
|
| 288 |
+
Nhiệm B-W
|
| 289 |
+
bán B-W
|
| 290 |
+
tín I-W
|
| 291 |
+
bán I-W
|
| 292 |
+
nghi I-W
|
| 293 |
+
: B-W
|
| 294 |
+
- B-W
|
| 295 |
+
Tâm B-W
|
| 296 |
+
lý I-W
|
| 297 |
+
gì B-W
|
| 298 |
+
lạ B-W
|
| 299 |
+
vậy B-W
|
| 300 |
+
? B-W
|
| 301 |
+
|
| 302 |
+
# sent_id = uvb-f-6015
|
| 303 |
+
# text = Liên xua tay mắng yêu : − Mình chỉ nói gở !
|
| 304 |
+
Liên B-W
|
| 305 |
+
xua B-W
|
| 306 |
+
tay I-W
|
| 307 |
+
mắng B-W
|
| 308 |
+
yêu I-W
|
| 309 |
+
: B-W
|
| 310 |
+
− B-W
|
| 311 |
+
Mình B-W
|
| 312 |
+
chỉ B-W
|
| 313 |
+
nói B-W
|
| 314 |
+
gở I-W
|
| 315 |
+
! B-W
|
| 316 |
+
|
| 317 |
+
# sent_id = uvb-f-6292
|
| 318 |
+
# text = Trương Hán Siêu bưng một khay trà đặt lên án .
|
| 319 |
+
Trương B-W
|
| 320 |
+
Hán I-W
|
| 321 |
+
Siêu I-W
|
| 322 |
+
bưng B-W
|
| 323 |
+
một B-W
|
| 324 |
+
khay B-W
|
| 325 |
+
trà I-W
|
| 326 |
+
đặt B-W
|
| 327 |
+
lên B-W
|
| 328 |
+
án B-W
|
| 329 |
+
. B-W
|
| 330 |
+
|
| 331 |
+
# sent_id = uvb-f-6893
|
| 332 |
+
# text = GỬI CỐ NHÂN Nguyễn Bính Mưa dầm gió bấc cố nhân ơi !
|
| 333 |
+
GỬI B-W
|
| 334 |
+
CỐ B-W
|
| 335 |
+
NHÂN I-W
|
| 336 |
+
Nguyễn B-W
|
| 337 |
+
Bính I-W
|
| 338 |
+
Mưa B-W
|
| 339 |
+
dầm B-W
|
| 340 |
+
gió B-W
|
| 341 |
+
bấc I-W
|
| 342 |
+
cố B-W
|
| 343 |
+
nhân I-W
|
| 344 |
+
ơi B-W
|
| 345 |
+
! B-W
|
| 346 |
+
|
| 347 |
+
# sent_id = uvb-f-7016
|
| 348 |
+
# text = Nhỡ Nhàng Nguyễn Bính Công tôi xe chỉ vót nan Phất diều mướn gió nơi nàng thả chơi Nỡ nào tắt gió nàng ơi !
|
| 349 |
+
Nhỡ B-W
|
| 350 |
+
Nhàng I-W
|
| 351 |
+
Nguyễn B-W
|
| 352 |
+
Bính I-W
|
| 353 |
+
Công B-W
|
| 354 |
+
tôi B-W
|
| 355 |
+
xe B-W
|
| 356 |
+
chỉ B-W
|
| 357 |
+
vót B-W
|
| 358 |
+
nan B-W
|
| 359 |
+
Phất B-W
|
| 360 |
+
diều B-W
|
| 361 |
+
mướn B-W
|
| 362 |
+
gió B-W
|
| 363 |
+
nơi B-W
|
| 364 |
+
nàng B-W
|
| 365 |
+
thả B-W
|
| 366 |
+
chơi B-W
|
| 367 |
+
Nỡ B-W
|
| 368 |
+
nào B-W
|
| 369 |
+
tắt B-W
|
| 370 |
+
gió B-W
|
| 371 |
+
nàng B-W
|
| 372 |
+
ơi B-W
|
| 373 |
+
! B-W
|
| 374 |
+
|
| 375 |
+
# sent_id = uvb-f-7435
|
| 376 |
+
# text = Mặt San đung đưa và tiếng y dơn dớt .
|
| 377 |
+
Mặt B-W
|
| 378 |
+
San B-W
|
| 379 |
+
đung B-W
|
| 380 |
+
đưa I-W
|
| 381 |
+
và B-W
|
| 382 |
+
tiếng B-W
|
| 383 |
+
y B-W
|
| 384 |
+
dơn B-W
|
| 385 |
+
dớt I-W
|
| 386 |
+
. B-W
|
| 387 |
+
|
| 388 |
+
# sent_id = uvb-f-7705
|
| 389 |
+
# text = Phó hương quản sao lại chứa chấp hắn ?
|
| 390 |
+
Phó B-W
|
| 391 |
+
hương B-W
|
| 392 |
+
quản I-W
|
| 393 |
+
sao B-W
|
| 394 |
+
lại B-W
|
| 395 |
+
chứa B-W
|
| 396 |
+
chấp B-W
|
| 397 |
+
hắn B-W
|
| 398 |
+
? B-W
|
| 399 |
+
|
| 400 |
+
# sent_id = uvb-f-8631
|
| 401 |
+
# text = Chém ruồi ai dùng gươm vàng làm chi .
|
| 402 |
+
Chém B-W
|
| 403 |
+
ruồi B-W
|
| 404 |
+
ai B-W
|
| 405 |
+
dùng B-W
|
| 406 |
+
gươm B-W
|
| 407 |
+
vàng B-W
|
| 408 |
+
làm B-W
|
| 409 |
+
chi I-W
|
| 410 |
+
. B-W
|
| 411 |
+
|
| 412 |
+
# sent_id = uvb-f-8734
|
| 413 |
+
# text = Trà đá thì chỉ có học môn bơi chó !
|
| 414 |
+
Trà B-W
|
| 415 |
+
đá I-W
|
| 416 |
+
thì B-W
|
| 417 |
+
chỉ B-W
|
| 418 |
+
có B-W
|
| 419 |
+
học B-W
|
| 420 |
+
môn B-W
|
| 421 |
+
bơi B-W
|
| 422 |
+
chó I-W
|
| 423 |
+
! B-W
|
| 424 |
+
|
| 425 |
+
# sent_id = uvb-f-9174
|
| 426 |
+
# text = Tự chúng ta tạo nghiệp lành hoặc nghiệp dữ , tạo càng lâu thì sức mạnh càng lắm .
|
| 427 |
+
Tự B-W
|
| 428 |
+
chúng B-W
|
| 429 |
+
ta I-W
|
| 430 |
+
tạo B-W
|
| 431 |
+
nghiệp B-W
|
| 432 |
+
lành I-W
|
| 433 |
+
hoặc B-W
|
| 434 |
+
nghiệp B-W
|
| 435 |
+
dữ I-W
|
| 436 |
+
, B-W
|
| 437 |
+
tạo B-W
|
| 438 |
+
càng B-W
|
| 439 |
+
lâu B-W
|
| 440 |
+
thì B-W
|
| 441 |
+
sức B-W
|
| 442 |
+
mạnh I-W
|
| 443 |
+
càng B-W
|
| 444 |
+
lắm B-W
|
| 445 |
+
. B-W
|
| 446 |
+
|
| 447 |
+
# sent_id = uvb-f-9389
|
| 448 |
+
# text = Thái Vĩ ngập ngừng giây lát , rồi cũng đi đến đó ngồi .
|
| 449 |
+
Thái B-W
|
| 450 |
+
Vĩ I-W
|
| 451 |
+
ngập B-W
|
| 452 |
+
ngừng I-W
|
| 453 |
+
giây B-W
|
| 454 |
+
lát I-W
|
| 455 |
+
, B-W
|
| 456 |
+
rồi B-W
|
| 457 |
+
cũng B-W
|
| 458 |
+
đi B-W
|
| 459 |
+
đến B-W
|
| 460 |
+
đó B-W
|
| 461 |
+
ngồi B-W
|
| 462 |
+
. B-W
|
| 463 |
+
|
| 464 |
+
# sent_id = uvb-n-10024
|
| 465 |
+
# text = Phải biến Quấy , Nên biến Hư , Sống biến Chết , Lạnh biến Nóng , Vinh biến Nhục , Thiện biến Ác ...
|
| 466 |
+
Phải B-W
|
| 467 |
+
biến B-W
|
| 468 |
+
Quấy B-W
|
| 469 |
+
, B-W
|
| 470 |
+
Nên B-W
|
| 471 |
+
biến B-W
|
| 472 |
+
Hư B-W
|
| 473 |
+
, B-W
|
| 474 |
+
Sống B-W
|
| 475 |
+
biến B-W
|
| 476 |
+
Chết B-W
|
| 477 |
+
, B-W
|
| 478 |
+
Lạnh B-W
|
| 479 |
+
biến B-W
|
| 480 |
+
Nóng B-W
|
| 481 |
+
, B-W
|
| 482 |
+
Vinh B-W
|
| 483 |
+
biến B-W
|
| 484 |
+
Nhục B-W
|
| 485 |
+
, B-W
|
| 486 |
+
Thiện B-W
|
| 487 |
+
biến I-W
|
| 488 |
+
Ác B-W
|
| 489 |
+
... B-W
|
| 490 |
+
|
| 491 |
+
# sent_id = uvb-n-11434
|
| 492 |
+
# text = Truyện trích từ Sử ký Tư Mã Thiên .
|
| 493 |
+
Truyện B-W
|
| 494 |
+
trích B-W
|
| 495 |
+
từ B-W
|
| 496 |
+
Sử B-W
|
| 497 |
+
ký I-W
|
| 498 |
+
Tư B-W
|
| 499 |
+
Mã I-W
|
| 500 |
+
Thiên I-W
|
| 501 |
+
. B-W
|
| 502 |
+
|
| 503 |
+
# sent_id = uvb-n-11587
|
| 504 |
+
# text = Tất nhiên tiên sinh phải biết cầm âm ?
|
| 505 |
+
Tất B-W
|
| 506 |
+
nhiên I-W
|
| 507 |
+
tiên B-W
|
| 508 |
+
sinh I-W
|
| 509 |
+
phải B-W
|
| 510 |
+
biết B-W
|
| 511 |
+
cầm B-W
|
| 512 |
+
âm I-W
|
| 513 |
+
? B-W
|
| 514 |
+
|
| 515 |
+
# sent_id = uvb-n-11976
|
| 516 |
+
# text = Những vị kỳ lão ở xứ Gò Công còn nhớ câu : Lệ thủy trình tường thoại , Quy khâu trúc phước cơ .
|
| 517 |
+
Những B-W
|
| 518 |
+
vị B-W
|
| 519 |
+
kỳ B-W
|
| 520 |
+
lão I-W
|
| 521 |
+
ở B-W
|
| 522 |
+
xứ B-W
|
| 523 |
+
Gò B-W
|
| 524 |
+
Công I-W
|
| 525 |
+
còn B-W
|
| 526 |
+
nhớ B-W
|
| 527 |
+
câu B-W
|
| 528 |
+
: B-W
|
| 529 |
+
Lệ B-W
|
| 530 |
+
thủy I-W
|
| 531 |
+
trình B-W
|
| 532 |
+
tường B-W
|
| 533 |
+
thoại I-W
|
| 534 |
+
, B-W
|
| 535 |
+
Quy B-W
|
| 536 |
+
khâu I-W
|
| 537 |
+
trúc B-W
|
| 538 |
+
phước B-W
|
| 539 |
+
cơ I-W
|
| 540 |
+
. B-W
|
| 541 |
+
|
| 542 |
+
# sent_id = uvb-n-12321
|
| 543 |
+
# text = Trời hôm nay , sương mai phớt nhẹ lên mái nhà .
|
| 544 |
+
Trời B-W
|
| 545 |
+
hôm B-W
|
| 546 |
+
nay I-W
|
| 547 |
+
, B-W
|
| 548 |
+
sương B-W
|
| 549 |
+
mai I-W
|
| 550 |
+
phớt B-W
|
| 551 |
+
nhẹ B-W
|
| 552 |
+
lên B-W
|
| 553 |
+
mái B-W
|
| 554 |
+
nhà I-W
|
| 555 |
+
. B-W
|
| 556 |
+
|
| 557 |
+
# sent_id = uvb-n-13233
|
| 558 |
+
# text = Khoa học dạy ta : nước lạnh đặc lại thì bớt thể vóc của nó đi .
|
| 559 |
+
Khoa B-W
|
| 560 |
+
học I-W
|
| 561 |
+
dạy B-W
|
| 562 |
+
ta B-W
|
| 563 |
+
: B-W
|
| 564 |
+
nước B-W
|
| 565 |
+
lạnh B-W
|
| 566 |
+
đặc B-W
|
| 567 |
+
lại B-W
|
| 568 |
+
thì B-W
|
| 569 |
+
bớt B-W
|
| 570 |
+
thể B-W
|
| 571 |
+
vóc I-W
|
| 572 |
+
của B-W
|
| 573 |
+
nó B-W
|
| 574 |
+
đi B-W
|
| 575 |
+
. B-W
|
| 576 |
+
|
| 577 |
+
# sent_id = uvb-n-13288
|
| 578 |
+
# text = Bộ Mạnh Tử dày gấp rưỡi bộ Luận Ngữ , gồm 14 chương : I. Lương Huệ vương , thượng .
|
| 579 |
+
Bộ B-W
|
| 580 |
+
Mạnh B-W
|
| 581 |
+
Tử I-W
|
| 582 |
+
dày B-W
|
| 583 |
+
gấp B-W
|
| 584 |
+
rưỡi B-W
|
| 585 |
+
bộ B-W
|
| 586 |
+
Luận B-W
|
| 587 |
+
Ngữ I-W
|
| 588 |
+
, B-W
|
| 589 |
+
gồm B-W
|
| 590 |
+
14 B-W
|
| 591 |
+
chương B-W
|
| 592 |
+
: B-W
|
| 593 |
+
I. B-W
|
| 594 |
+
Lương B-W
|
| 595 |
+
Huệ I-W
|
| 596 |
+
vương I-W
|
| 597 |
+
, B-W
|
| 598 |
+
thượng B-W
|
| 599 |
+
. B-W
|
| 600 |
+
|
| 601 |
+
# sent_id = uvb-n-15114
|
| 602 |
+
# text = Chuông điện thoại thật phiền .
|
| 603 |
+
Chuông B-W
|
| 604 |
+
điện B-W
|
| 605 |
+
thoại I-W
|
| 606 |
+
thật B-W
|
| 607 |
+
phiền B-W
|
| 608 |
+
. B-W
|
| 609 |
+
|
| 610 |
+
# sent_id = uvb-n-16553
|
| 611 |
+
# text = Một ngày kia Tháo đương ngủ ngày , rớt mền .
|
| 612 |
+
Một B-W
|
| 613 |
+
ngày B-W
|
| 614 |
+
kia I-W
|
| 615 |
+
Tháo B-W
|
| 616 |
+
đương B-W
|
| 617 |
+
ngủ B-W
|
| 618 |
+
ngày I-W
|
| 619 |
+
, B-W
|
| 620 |
+
rớt B-W
|
| 621 |
+
mền B-W
|
| 622 |
+
. B-W
|
| 623 |
+
|
| 624 |
+
# sent_id = uvb-n-17014
|
| 625 |
+
# text = Mẹ con con chịu trọng ân của đức ngài .
|
| 626 |
+
Mẹ B-W
|
| 627 |
+
con I-W
|
| 628 |
+
con B-W
|
| 629 |
+
chịu B-W
|
| 630 |
+
trọng B-W
|
| 631 |
+
ân I-W
|
| 632 |
+
của B-W
|
| 633 |
+
đức B-W
|
| 634 |
+
ngài I-W
|
| 635 |
+
. B-W
|
| 636 |
+
|
| 637 |
+
# sent_id = uvb-n-18226
|
| 638 |
+
# text = Ngữ đoạn và cấu trúc của ngữ đoạn Khái niệm ngữ đoạn ( hay ngữ ) .
|
| 639 |
+
Ngữ B-W
|
| 640 |
+
đoạn I-W
|
| 641 |
+
và B-W
|
| 642 |
+
cấu B-W
|
| 643 |
+
trúc I-W
|
| 644 |
+
của B-W
|
| 645 |
+
ngữ B-W
|
| 646 |
+
đoạn I-W
|
| 647 |
+
Khái B-W
|
| 648 |
+
niệm I-W
|
| 649 |
+
ngữ B-W
|
| 650 |
+
đoạn I-W
|
| 651 |
+
( B-W
|
| 652 |
+
hay B-W
|
| 653 |
+
ngữ I-W
|
| 654 |
+
) B-W
|
| 655 |
+
. B-W
|
| 656 |
+
|
| 657 |
+
# sent_id = uvb-n-18736
|
| 658 |
+
# text = Lục Giả đáp : - Vương hơn chứ .
|
| 659 |
+
Lục B-W
|
| 660 |
+
Giả I-W
|
| 661 |
+
đáp B-W
|
| 662 |
+
: B-W
|
| 663 |
+
- B-W
|
| 664 |
+
Vương B-W
|
| 665 |
+
hơn B-W
|
| 666 |
+
chứ B-W
|
| 667 |
+
. B-W
|
| 668 |
+
|
| 669 |
+
# sent_id = uvb-n-19309
|
| 670 |
+
# text = Cái thằng " nhãi " sinh viên trường Lạc Hồng định trêu ghẹo anh chắc ?
|
| 671 |
+
Cái B-W
|
| 672 |
+
thằng B-W
|
| 673 |
+
" B-W
|
| 674 |
+
nhãi B-W
|
| 675 |
+
" B-W
|
| 676 |
+
sinh B-W
|
| 677 |
+
viên I-W
|
| 678 |
+
trường B-W
|
| 679 |
+
Lạc B-W
|
| 680 |
+
Hồng I-W
|
| 681 |
+
định B-W
|
| 682 |
+
trêu B-W
|
| 683 |
+
ghẹo I-W
|
| 684 |
+
anh B-W
|
| 685 |
+
chắc B-W
|
| 686 |
+
? B-W
|
| 687 |
+
|
| 688 |
+
# sent_id = uvb-n-2201
|
| 689 |
+
# text = Hideoshi quyết phục thù một lần nữa .
|
| 690 |
+
Hideoshi B-W
|
| 691 |
+
quyết B-W
|
| 692 |
+
phục B-W
|
| 693 |
+
thù I-W
|
| 694 |
+
một B-W
|
| 695 |
+
lần B-W
|
| 696 |
+
nữa B-W
|
| 697 |
+
. B-W
|
| 698 |
+
|
| 699 |
+
# sent_id = uvb-n-3769
|
| 700 |
+
# text = Bởi vì Chu Du tính tình mạnh mẽ , hào phóng .
|
| 701 |
+
Bởi B-W
|
| 702 |
+
vì I-W
|
| 703 |
+
Chu B-W
|
| 704 |
+
Du I-W
|
| 705 |
+
tính B-W
|
| 706 |
+
tình I-W
|
| 707 |
+
mạnh B-W
|
| 708 |
+
mẽ I-W
|
| 709 |
+
, B-W
|
| 710 |
+
hào B-W
|
| 711 |
+
phóng I-W
|
| 712 |
+
. B-W
|
| 713 |
+
|
| 714 |
+
# sent_id = uvb-n-3847
|
| 715 |
+
# text = Thấy những chiếc răng nanh sắc nhọn , triết gia lùi lại .
|
| 716 |
+
Thấy B-W
|
| 717 |
+
những B-W
|
| 718 |
+
chiếc B-W
|
| 719 |
+
răng B-W
|
| 720 |
+
nanh I-W
|
| 721 |
+
sắc B-W
|
| 722 |
+
nhọn I-W
|
| 723 |
+
, B-W
|
| 724 |
+
triết B-W
|
| 725 |
+
gia I-W
|
| 726 |
+
lùi B-W
|
| 727 |
+
lại B-W
|
| 728 |
+
. B-W
|
| 729 |
+
|
| 730 |
+
# sent_id = uvb-n-3874
|
| 731 |
+
# text = Kính dâng Tam Bảo chứng minh , và thành thực cầu mong các bậc cao minh phủ chính cho những điều sơ lậu .
|
| 732 |
+
Kính B-W
|
| 733 |
+
dâng B-W
|
| 734 |
+
Tam B-W
|
| 735 |
+
Bảo I-W
|
| 736 |
+
chứng B-W
|
| 737 |
+
minh I-W
|
| 738 |
+
, B-W
|
| 739 |
+
và B-W
|
| 740 |
+
thành B-W
|
| 741 |
+
thực I-W
|
| 742 |
+
cầu B-W
|
| 743 |
+
mong I-W
|
| 744 |
+
các B-W
|
| 745 |
+
bậc B-W
|
| 746 |
+
cao B-W
|
| 747 |
+
minh I-W
|
| 748 |
+
phủ B-W
|
| 749 |
+
chính I-W
|
| 750 |
+
cho B-W
|
| 751 |
+
những B-W
|
| 752 |
+
điều B-W
|
| 753 |
+
sơ B-W
|
| 754 |
+
lậu I-W
|
| 755 |
+
. B-W
|
| 756 |
+
|
| 757 |
+
# sent_id = uvb-n-3968
|
| 758 |
+
# text = Lại có khi dùng đồng tự làm âm .
|
| 759 |
+
Lại B-W
|
| 760 |
+
có B-W
|
| 761 |
+
khi I-W
|
| 762 |
+
dùng B-W
|
| 763 |
+
đồng B-W
|
| 764 |
+
tự I-W
|
| 765 |
+
làm B-W
|
| 766 |
+
âm B-W
|
| 767 |
+
. B-W
|
| 768 |
+
|
| 769 |
+
# sent_id = uvb-n-511
|
| 770 |
+
# text = Bà Nam Phương nhận số tiền trên , gởi lời cảm ơn Cụ Hồ và Ủy ban Hành chánh Huế .
|
| 771 |
+
Bà B-W
|
| 772 |
+
Nam B-W
|
| 773 |
+
Phương I-W
|
| 774 |
+
nhận B-W
|
| 775 |
+
số B-W
|
| 776 |
+
tiền B-W
|
| 777 |
+
trên B-W
|
| 778 |
+
, B-W
|
| 779 |
+
gởi B-W
|
| 780 |
+
lời B-W
|
| 781 |
+
cảm B-W
|
| 782 |
+
ơn I-W
|
| 783 |
+
Cụ B-W
|
| 784 |
+
Hồ I-W
|
| 785 |
+
và B-W
|
| 786 |
+
Ủy B-W
|
| 787 |
+
ban I-W
|
| 788 |
+
Hành B-W
|
| 789 |
+
chánh I-W
|
| 790 |
+
Huế B-W
|
| 791 |
+
. B-W
|
| 792 |
+
|
| 793 |
+
# sent_id = uvb-n-567
|
| 794 |
+
# text = NHẬP TỊCH Trà nhập tịch Lễ mộc dục Đại tế Xướng ca Giao hiếu Cơm quả , cơm quan viên Khoản đãi IV .
|
| 795 |
+
NHẬP B-W
|
| 796 |
+
TỊCH I-W
|
| 797 |
+
Trà B-W
|
| 798 |
+
nhập I-W
|
| 799 |
+
tịch I-W
|
| 800 |
+
Lễ B-W
|
| 801 |
+
mộc B-W
|
| 802 |
+
dục I-W
|
| 803 |
+
Đại B-W
|
| 804 |
+
tế I-W
|
| 805 |
+
Xướng B-W
|
| 806 |
+
ca I-W
|
| 807 |
+
Giao B-W
|
| 808 |
+
hiếu I-W
|
| 809 |
+
Cơm B-W
|
| 810 |
+
quả I-W
|
| 811 |
+
, B-W
|
| 812 |
+
cơm B-W
|
| 813 |
+
quan B-W
|
| 814 |
+
viên I-W
|
| 815 |
+
Khoản B-W
|
| 816 |
+
đãi B-W
|
| 817 |
+
IV B-W
|
| 818 |
+
. B-W
|
| 819 |
+
|
| 820 |
+
# sent_id = uvb-n-5687
|
| 821 |
+
# text = Với tấm hân hoan ấy , tôi thành thực cám ơn tác giả và xin trân trọng giới thiệu Dịch Thuật và Tự Do với bạn đọc .
|
| 822 |
+
Với B-W
|
| 823 |
+
tấm B-W
|
| 824 |
+
hân B-W
|
| 825 |
+
hoan I-W
|
| 826 |
+
ấy B-W
|
| 827 |
+
, B-W
|
| 828 |
+
tôi B-W
|
| 829 |
+
thành B-W
|
| 830 |
+
thực I-W
|
| 831 |
+
cám B-W
|
| 832 |
+
ơn I-W
|
| 833 |
+
tác B-W
|
| 834 |
+
giả I-W
|
| 835 |
+
và B-W
|
| 836 |
+
xin B-W
|
| 837 |
+
trân B-W
|
| 838 |
+
trọng I-W
|
| 839 |
+
giới B-W
|
| 840 |
+
thiệu I-W
|
| 841 |
+
Dịch B-W
|
| 842 |
+
Thuật I-W
|
| 843 |
+
và B-W
|
| 844 |
+
Tự B-W
|
| 845 |
+
Do I-W
|
| 846 |
+
với B-W
|
| 847 |
+
bạn B-W
|
| 848 |
+
đọc I-W
|
| 849 |
+
. B-W
|
| 850 |
+
|
| 851 |
+
# sent_id = uvb-n-6010
|
| 852 |
+
# text = Ví dụ như chơi trò thổi bong bóng .
|
| 853 |
+
Ví B-W
|
| 854 |
+
dụ I-W
|
| 855 |
+
như B-W
|
| 856 |
+
chơi B-W
|
| 857 |
+
trò B-W
|
| 858 |
+
thổi B-W
|
| 859 |
+
bong B-W
|
| 860 |
+
bóng I-W
|
| 861 |
+
. B-W
|
| 862 |
+
|
| 863 |
+
# sent_id = uvb-n-7402
|
| 864 |
+
# text = Đôi khi họ đốt mu rùa để đoán điềm mộng mị .
|
| 865 |
+
Đôi B-W
|
| 866 |
+
khi I-W
|
| 867 |
+
họ B-W
|
| 868 |
+
đốt B-W
|
| 869 |
+
mu B-W
|
| 870 |
+
rùa I-W
|
| 871 |
+
để B-W
|
| 872 |
+
đoán B-W
|
| 873 |
+
điềm B-W
|
| 874 |
+
mộng B-W
|
| 875 |
+
mị I-W
|
| 876 |
+
. B-W
|
| 877 |
+
|
| 878 |
+
# sent_id = uvb-n-7669
|
| 879 |
+
# text = Cung Khôn Thái được thiết lập ở gần điện Cần Thánh chỗ vua ở .
|
| 880 |
+
Cung B-W
|
| 881 |
+
Khôn I-W
|
| 882 |
+
Thái I-W
|
| 883 |
+
được B-W
|
| 884 |
+
thiết B-W
|
| 885 |
+
lập I-W
|
| 886 |
+
ở B-W
|
| 887 |
+
gần B-W
|
| 888 |
+
điện B-W
|
| 889 |
+
Cần B-W
|
| 890 |
+
Thánh I-W
|
| 891 |
+
chỗ B-W
|
| 892 |
+
vua B-W
|
| 893 |
+
ở B-W
|
| 894 |
+
. B-W
|
| 895 |
+
|
| 896 |
+
# sent_id = uvn-14241
|
| 897 |
+
# text = Sau khi cho giáo viên nhập điểm nhà trường còn hậu kiểm nữa .
|
| 898 |
+
Sau B-W
|
| 899 |
+
khi B-W
|
| 900 |
+
cho B-W
|
| 901 |
+
giáo B-W
|
| 902 |
+
viên I-W
|
| 903 |
+
nhập B-W
|
| 904 |
+
điểm B-W
|
| 905 |
+
nhà B-W
|
| 906 |
+
trường I-W
|
| 907 |
+
còn B-W
|
| 908 |
+
hậu B-W
|
| 909 |
+
kiểm I-W
|
| 910 |
+
nữa B-W
|
| 911 |
+
. B-W
|
| 912 |
+
|
| 913 |
+
# sent_id = uvn-16886
|
| 914 |
+
# text = Trong thiết kế đầm đuôi cá cùng phần thân áo bó sát từ thương hiệu Giambattista Valli đến từ BST Love của nhà mốt .
|
| 915 |
+
Trong B-W
|
| 916 |
+
thiết B-W
|
| 917 |
+
kế I-W
|
| 918 |
+
đầm B-W
|
| 919 |
+
đuôi I-W
|
| 920 |
+
cá I-W
|
| 921 |
+
cùng B-W
|
| 922 |
+
phần B-W
|
| 923 |
+
thân B-W
|
| 924 |
+
áo I-W
|
| 925 |
+
bó B-W
|
| 926 |
+
sát I-W
|
| 927 |
+
từ B-W
|
| 928 |
+
thương B-W
|
| 929 |
+
hiệu I-W
|
| 930 |
+
Giambattista B-W
|
| 931 |
+
Valli I-W
|
| 932 |
+
đến B-W
|
| 933 |
+
từ B-W
|
| 934 |
+
BST B-W
|
| 935 |
+
Love B-W
|
| 936 |
+
của B-W
|
| 937 |
+
nhà B-W
|
| 938 |
+
mốt I-W
|
| 939 |
+
. B-W
|
| 940 |
+
|
| 941 |
+
# sent_id = uvn-18693
|
| 942 |
+
# text = Để tìm niên đại mẫu vật lâu đời hơn , họ cần sử dụng đồng vị khác như beryllium-10 .
|
| 943 |
+
Để B-W
|
| 944 |
+
tìm B-W
|
| 945 |
+
niên B-W
|
| 946 |
+
đại I-W
|
| 947 |
+
mẫu B-W
|
| 948 |
+
vật I-W
|
| 949 |
+
lâu B-W
|
| 950 |
+
đời I-W
|
| 951 |
+
hơn B-W
|
| 952 |
+
, B-W
|
| 953 |
+
họ B-W
|
| 954 |
+
cần B-W
|
| 955 |
+
sử B-W
|
| 956 |
+
dụng I-W
|
| 957 |
+
đồng B-W
|
| 958 |
+
vị I-W
|
| 959 |
+
khác B-W
|
| 960 |
+
như B-W
|
| 961 |
+
beryllium-10 B-W
|
| 962 |
+
. B-W
|
| 963 |
+
|
| 964 |
+
# sent_id = uvn-18725
|
| 965 |
+
# text = Trường Chinh 8A sẽ chủ yếu phóng vệ tinh lên các quỹ đạo đồng bộ Mặt Trời .
|
| 966 |
+
Trường B-W
|
| 967 |
+
Chinh I-W
|
| 968 |
+
8A I-W
|
| 969 |
+
sẽ B-W
|
| 970 |
+
chủ B-W
|
| 971 |
+
yếu I-W
|
| 972 |
+
phóng B-W
|
| 973 |
+
vệ B-W
|
| 974 |
+
tinh I-W
|
| 975 |
+
lên B-W
|
| 976 |
+
các B-W
|
| 977 |
+
quỹ B-W
|
| 978 |
+
đạo I-W
|
| 979 |
+
đồng B-W
|
| 980 |
+
bộ I-W
|
| 981 |
+
Mặt B-W
|
| 982 |
+
Trời I-W
|
| 983 |
+
. B-W
|
| 984 |
+
|
| 985 |
+
# sent_id = uvn-19673
|
| 986 |
+
# text = Bị can Tăng Hoàng Vinh giữ vai trò giúp sức cho Hòa trong việc nhận và tiêu thụ hàng .
|
| 987 |
+
Bị B-W
|
| 988 |
+
can I-W
|
| 989 |
+
Tăng B-W
|
| 990 |
+
Hoàng I-W
|
| 991 |
+
Vinh I-W
|
| 992 |
+
giữ B-W
|
| 993 |
+
vai B-W
|
| 994 |
+
trò I-W
|
| 995 |
+
giúp B-W
|
| 996 |
+
sức I-W
|
| 997 |
+
cho B-W
|
| 998 |
+
Hòa B-W
|
| 999 |
+
trong B-W
|
| 1000 |
+
việc B-W
|
| 1001 |
+
nhận B-W
|
| 1002 |
+
và B-W
|
| 1003 |
+
tiêu B-W
|
| 1004 |
+
thụ I-W
|
| 1005 |
+
hàng B-W
|
| 1006 |
+
. B-W
|
| 1007 |
+
|
| 1008 |
+
# sent_id = uvn-4740
|
| 1009 |
+
# text = Đây là phần lợi nhuận tích lũy nhiều năm .
|
| 1010 |
+
Đây B-W
|
| 1011 |
+
là B-W
|
| 1012 |
+
phần B-W
|
| 1013 |
+
lợi B-W
|
| 1014 |
+
nhuận I-W
|
| 1015 |
+
tích B-W
|
| 1016 |
+
lũy I-W
|
| 1017 |
+
nhiều B-W
|
| 1018 |
+
năm B-W
|
| 1019 |
+
. B-W
|
| 1020 |
+
|
| 1021 |
+
# sent_id = uvn-6121
|
| 1022 |
+
# text = Ví dụ : After years of refusing to take life seriously , Matt really seems to have turned over a new leaf and has started to find work ( Sau nhiều năm từ chối sống một cách nghiêm túc , Matt dường như đã bước sang trang mới và bắt đầu tìm việc ) .
|
| 1023 |
+
Ví B-W
|
| 1024 |
+
dụ I-W
|
| 1025 |
+
: B-W
|
| 1026 |
+
After B-W
|
| 1027 |
+
years B-W
|
| 1028 |
+
of B-W
|
| 1029 |
+
refusing B-W
|
| 1030 |
+
to B-W
|
| 1031 |
+
take B-W
|
| 1032 |
+
life B-W
|
| 1033 |
+
seriously B-W
|
| 1034 |
+
, B-W
|
| 1035 |
+
Matt B-W
|
| 1036 |
+
really B-W
|
| 1037 |
+
seems B-W
|
| 1038 |
+
to B-W
|
| 1039 |
+
have B-W
|
| 1040 |
+
turned B-W
|
| 1041 |
+
over B-W
|
| 1042 |
+
a B-W
|
| 1043 |
+
new B-W
|
| 1044 |
+
leaf B-W
|
| 1045 |
+
and B-W
|
| 1046 |
+
has B-W
|
| 1047 |
+
started B-W
|
| 1048 |
+
to B-W
|
| 1049 |
+
find B-W
|
| 1050 |
+
work I-W
|
| 1051 |
+
( B-W
|
| 1052 |
+
Sau B-W
|
| 1053 |
+
nhiều B-W
|
| 1054 |
+
năm B-W
|
| 1055 |
+
từ B-W
|
| 1056 |
+
chối I-W
|
| 1057 |
+
sống B-W
|
| 1058 |
+
một B-W
|
| 1059 |
+
cách I-W
|
| 1060 |
+
nghiêm B-W
|
| 1061 |
+
túc I-W
|
| 1062 |
+
, B-W
|
| 1063 |
+
Matt B-W
|
| 1064 |
+
dường B-W
|
| 1065 |
+
như I-W
|
| 1066 |
+
đã B-W
|
| 1067 |
+
bước B-W
|
| 1068 |
+
sang B-W
|
| 1069 |
+
trang B-W
|
| 1070 |
+
mới B-W
|
| 1071 |
+
và B-W
|
| 1072 |
+
bắt B-W
|
| 1073 |
+
đầu I-W
|
| 1074 |
+
tìm B-W
|
| 1075 |
+
việc B-W
|
| 1076 |
+
) B-W
|
| 1077 |
+
. B-W
|
| 1078 |
+
|
| 1079 |
+
# sent_id = uvn-964
|
| 1080 |
+
# text = Các kỹ sư Nhật Bản khởi động siêu máy tính lượng tử lai đầu tiên trên thế giới .
|
| 1081 |
+
Các B-W
|
| 1082 |
+
kỹ B-W
|
| 1083 |
+
sư I-W
|
| 1084 |
+
Nhật B-W
|
| 1085 |
+
Bản I-W
|
| 1086 |
+
khởi B-W
|
| 1087 |
+
động I-W
|
| 1088 |
+
siêu B-W
|
| 1089 |
+
máy I-W
|
| 1090 |
+
tính I-W
|
| 1091 |
+
lượng B-W
|
| 1092 |
+
tử I-W
|
| 1093 |
+
lai B-W
|
| 1094 |
+
đầu B-W
|
| 1095 |
+
tiên I-W
|
| 1096 |
+
trên B-W
|
| 1097 |
+
thế B-W
|
| 1098 |
+
giới I-W
|
| 1099 |
+
. B-W
|
| 1100 |
+
|
| 1101 |
+
# sent_id = uvw-10198
|
| 1102 |
+
# text = Hữu thưởng vu đại quốc .
|
| 1103 |
+
Hữu B-W
|
| 1104 |
+
thưởng B-W
|
| 1105 |
+
vu B-W
|
| 1106 |
+
đại B-W
|
| 1107 |
+
quốc I-W
|
| 1108 |
+
. B-W
|
| 1109 |
+
|
| 1110 |
+
# sent_id = uvw-11634
|
| 1111 |
+
# text = Có người nghĩa sĩ viếng câu đối rằng : :: Thệ tâm thiên địa lưu trường xích , :: Thiết xỉ giang sơn thổ thiệt hồng .
|
| 1112 |
+
Có B-W
|
| 1113 |
+
người B-W
|
| 1114 |
+
nghĩa B-W
|
| 1115 |
+
sĩ I-W
|
| 1116 |
+
viếng B-W
|
| 1117 |
+
câu B-W
|
| 1118 |
+
đối I-W
|
| 1119 |
+
rằng B-W
|
| 1120 |
+
: B-W
|
| 1121 |
+
:: B-W
|
| 1122 |
+
Thệ B-W
|
| 1123 |
+
tâm B-W
|
| 1124 |
+
thiên B-W
|
| 1125 |
+
địa I-W
|
| 1126 |
+
lưu B-W
|
| 1127 |
+
trường B-W
|
| 1128 |
+
xích B-W
|
| 1129 |
+
, B-W
|
| 1130 |
+
:: B-W
|
| 1131 |
+
Thiết B-W
|
| 1132 |
+
xỉ B-W
|
| 1133 |
+
giang B-W
|
| 1134 |
+
sơn I-W
|
| 1135 |
+
thổ B-W
|
| 1136 |
+
thiệt B-W
|
| 1137 |
+
hồng B-W
|
| 1138 |
+
. B-W
|
| 1139 |
+
|
| 1140 |
+
# sent_id = uvw-13194
|
| 1141 |
+
# text = Quân xướng thần họa .
|
| 1142 |
+
Quân B-W
|
| 1143 |
+
xướng B-W
|
| 1144 |
+
thần B-W
|
| 1145 |
+
họa B-W
|
| 1146 |
+
. B-W
|
| 1147 |
+
|
| 1148 |
+
# sent_id = uvw-13430
|
| 1149 |
+
# text = Đường thẳng chứa ba điểm đó được gọi là đường thẳng Euler .
|
| 1150 |
+
Đường B-W
|
| 1151 |
+
thẳng I-W
|
| 1152 |
+
chứa B-W
|
| 1153 |
+
ba B-W
|
| 1154 |
+
điểm B-W
|
| 1155 |
+
đó B-W
|
| 1156 |
+
được B-W
|
| 1157 |
+
gọi B-W
|
| 1158 |
+
là I-W
|
| 1159 |
+
đường B-W
|
| 1160 |
+
thẳng I-W
|
| 1161 |
+
Euler B-W
|
| 1162 |
+
. B-W
|
| 1163 |
+
|
| 1164 |
+
# sent_id = uvw-14316
|
| 1165 |
+
# text = Hệ tiên đề Hilbert Hệ tiên đề số học Lý thuyết tập hợp Frankael-Zermelo Tiên đề chọn Tiên đề trong vật lý Tiên đề Bohr Các tiên đề Bohr là các tiên đề của mô hình Bohr , được sử dụng để giải thích các hiện tượng vật lý , ví dụ như công thức Rydberg về các vạch quang phổ của nguyên tử hydro .
|
| 1166 |
+
Hệ B-W
|
| 1167 |
+
tiên I-W
|
| 1168 |
+
đề I-W
|
| 1169 |
+
Hilbert B-W
|
| 1170 |
+
Hệ B-W
|
| 1171 |
+
tiên I-W
|
| 1172 |
+
đề I-W
|
| 1173 |
+
số B-W
|
| 1174 |
+
học I-W
|
| 1175 |
+
Lý B-W
|
| 1176 |
+
thuyết I-W
|
| 1177 |
+
tập B-W
|
| 1178 |
+
hợp I-W
|
| 1179 |
+
Frankael-Zermelo B-W
|
| 1180 |
+
Tiên B-W
|
| 1181 |
+
đề I-W
|
| 1182 |
+
chọn B-W
|
| 1183 |
+
Tiên B-W
|
| 1184 |
+
đề I-W
|
| 1185 |
+
trong B-W
|
| 1186 |
+
vật B-W
|
| 1187 |
+
lý I-W
|
| 1188 |
+
Tiên B-W
|
| 1189 |
+
đề I-W
|
| 1190 |
+
Bohr B-W
|
| 1191 |
+
Các B-W
|
| 1192 |
+
tiên B-W
|
| 1193 |
+
đề I-W
|
| 1194 |
+
Bohr B-W
|
| 1195 |
+
là B-W
|
| 1196 |
+
các B-W
|
| 1197 |
+
tiên B-W
|
| 1198 |
+
đề I-W
|
| 1199 |
+
của B-W
|
| 1200 |
+
mô B-W
|
| 1201 |
+
hình I-W
|
| 1202 |
+
Bohr B-W
|
| 1203 |
+
, B-W
|
| 1204 |
+
được B-W
|
| 1205 |
+
sử B-W
|
| 1206 |
+
dụng I-W
|
| 1207 |
+
để B-W
|
| 1208 |
+
giải B-W
|
| 1209 |
+
thích I-W
|
| 1210 |
+
các B-W
|
| 1211 |
+
hiện B-W
|
| 1212 |
+
tượng I-W
|
| 1213 |
+
vật B-W
|
| 1214 |
+
lý I-W
|
| 1215 |
+
, B-W
|
| 1216 |
+
ví B-W
|
| 1217 |
+
dụ I-W
|
| 1218 |
+
như B-W
|
| 1219 |
+
công B-W
|
| 1220 |
+
thức I-W
|
| 1221 |
+
Rydberg B-W
|
| 1222 |
+
về B-W
|
| 1223 |
+
các B-W
|
| 1224 |
+
vạch B-W
|
| 1225 |
+
quang B-W
|
| 1226 |
+
phổ I-W
|
| 1227 |
+
của B-W
|
| 1228 |
+
nguyên B-W
|
| 1229 |
+
tử I-W
|
| 1230 |
+
hydro B-W
|
| 1231 |
+
. B-W
|
| 1232 |
+
|
| 1233 |
+
# sent_id = uvw-1451
|
| 1234 |
+
# text = Trong thế giới Quan Âm gồm có Quan Âm Nam Hải và Quan Âm Diệu Thiện .
|
| 1235 |
+
Trong B-W
|
| 1236 |
+
thế B-W
|
| 1237 |
+
giới I-W
|
| 1238 |
+
Quan B-W
|
| 1239 |
+
Âm I-W
|
| 1240 |
+
gồm B-W
|
| 1241 |
+
có B-W
|
| 1242 |
+
Quan B-W
|
| 1243 |
+
Âm I-W
|
| 1244 |
+
Nam B-W
|
| 1245 |
+
Hải I-W
|
| 1246 |
+
và B-W
|
| 1247 |
+
Quan B-W
|
| 1248 |
+
Âm I-W
|
| 1249 |
+
Diệu B-W
|
| 1250 |
+
Thiện I-W
|
| 1251 |
+
. B-W
|
| 1252 |
+
|
| 1253 |
+
# sent_id = uvw-15121
|
| 1254 |
+
# text = Nhà Habsburg cũng bắt đầu tích lũy lãnh thổ cách xa các vùng đất cha truyền con nối .
|
| 1255 |
+
Nhà B-W
|
| 1256 |
+
Habsburg B-W
|
| 1257 |
+
cũng B-W
|
| 1258 |
+
bắt B-W
|
| 1259 |
+
đầu I-W
|
| 1260 |
+
tích B-W
|
| 1261 |
+
lũy I-W
|
| 1262 |
+
lãnh B-W
|
| 1263 |
+
thổ I-W
|
| 1264 |
+
cách B-W
|
| 1265 |
+
xa B-W
|
| 1266 |
+
các B-W
|
| 1267 |
+
vùng B-W
|
| 1268 |
+
đất I-W
|
| 1269 |
+
cha B-W
|
| 1270 |
+
truyền I-W
|
| 1271 |
+
con I-W
|
| 1272 |
+
nối I-W
|
| 1273 |
+
. B-W
|
| 1274 |
+
|
| 1275 |
+
# sent_id = uvw-15306
|
| 1276 |
+
# text = Nhà Tống tiêu diệt quốc gia của Trí Cao năm 1055 .
|
| 1277 |
+
Nhà B-W
|
| 1278 |
+
Tống B-W
|
| 1279 |
+
tiêu B-W
|
| 1280 |
+
diệt I-W
|
| 1281 |
+
quốc B-W
|
| 1282 |
+
gia I-W
|
| 1283 |
+
của B-W
|
| 1284 |
+
Trí B-W
|
| 1285 |
+
Cao I-W
|
| 1286 |
+
năm B-W
|
| 1287 |
+
1055 B-W
|
| 1288 |
+
. B-W
|
| 1289 |
+
|
| 1290 |
+
# sent_id = uvw-15392
|
| 1291 |
+
# text = Trần Tư Trai 《 Hải quốc văn kiến lục 》 nói : 《 An Nam lấy Giao Chỉ làm Đông Kinh , lấy Quảng Nam làm Tây kinh .
|
| 1292 |
+
Trần B-W
|
| 1293 |
+
Tư I-W
|
| 1294 |
+
Trai I-W
|
| 1295 |
+
《 B-W
|
| 1296 |
+
Hải B-W
|
| 1297 |
+
quốc I-W
|
| 1298 |
+
văn I-W
|
| 1299 |
+
kiến I-W
|
| 1300 |
+
lục I-W
|
| 1301 |
+
》 B-W
|
| 1302 |
+
nói B-W
|
| 1303 |
+
: B-W
|
| 1304 |
+
《 B-W
|
| 1305 |
+
An B-W
|
| 1306 |
+
Nam I-W
|
| 1307 |
+
lấy B-W
|
| 1308 |
+
Giao B-W
|
| 1309 |
+
Chỉ I-W
|
| 1310 |
+
làm B-W
|
| 1311 |
+
Đông B-W
|
| 1312 |
+
Kinh I-W
|
| 1313 |
+
, B-W
|
| 1314 |
+
lấy B-W
|
| 1315 |
+
Quảng B-W
|
| 1316 |
+
Nam I-W
|
| 1317 |
+
làm B-W
|
| 1318 |
+
Tây B-W
|
| 1319 |
+
kinh I-W
|
| 1320 |
+
. B-W
|
| 1321 |
+
|
| 1322 |
+
# sent_id = uvw-15619
|
| 1323 |
+
# text = Long Hồ dinh đổi tên thành Hà Tiên trấn .
|
| 1324 |
+
Long B-W
|
| 1325 |
+
Hồ I-W
|
| 1326 |
+
dinh B-W
|
| 1327 |
+
đổi B-W
|
| 1328 |
+
tên B-W
|
| 1329 |
+
thành B-W
|
| 1330 |
+
Hà B-W
|
| 1331 |
+
Tiên I-W
|
| 1332 |
+
trấn B-W
|
| 1333 |
+
. B-W
|
| 1334 |
+
|
| 1335 |
+
# sent_id = uvw-16915
|
| 1336 |
+
# text = Hình ảnh Tập tin : DNA replication .
|
| 1337 |
+
Hình B-W
|
| 1338 |
+
ảnh I-W
|
| 1339 |
+
Tập B-W
|
| 1340 |
+
tin I-W
|
| 1341 |
+
: B-W
|
| 1342 |
+
DNA B-W
|
| 1343 |
+
replication B-W
|
| 1344 |
+
. B-W
|
| 1345 |
+
|
| 1346 |
+
# sent_id = uvw-17218
|
| 1347 |
+
# text = Điểm nóng chảy và điểm sôi Hợp chất hữu cơ rất dễ nóng chảy hay sôi .
|
| 1348 |
+
Điểm B-W
|
| 1349 |
+
nóng B-W
|
| 1350 |
+
chảy I-W
|
| 1351 |
+
và B-W
|
| 1352 |
+
điểm B-W
|
| 1353 |
+
sôi B-W
|
| 1354 |
+
Hợp B-W
|
| 1355 |
+
chất I-W
|
| 1356 |
+
hữu B-W
|
| 1357 |
+
cơ I-W
|
| 1358 |
+
rất B-W
|
| 1359 |
+
dễ B-W
|
| 1360 |
+
nóng B-W
|
| 1361 |
+
chảy I-W
|
| 1362 |
+
hay B-W
|
| 1363 |
+
sôi B-W
|
| 1364 |
+
. B-W
|
| 1365 |
+
|
| 1366 |
+
# sent_id = uvw-17235
|
| 1367 |
+
# text = Khổng Dĩnh Đạt thời Đường thì nói " Hoa Hạ vi Trung Quốc dã " .
|
| 1368 |
+
Khổng B-W
|
| 1369 |
+
Dĩnh I-W
|
| 1370 |
+
Đạt I-W
|
| 1371 |
+
thời B-W
|
| 1372 |
+
Đường B-W
|
| 1373 |
+
thì B-W
|
| 1374 |
+
nói B-W
|
| 1375 |
+
" B-W
|
| 1376 |
+
Hoa B-W
|
| 1377 |
+
Hạ I-W
|
| 1378 |
+
vi B-W
|
| 1379 |
+
Trung B-W
|
| 1380 |
+
Quốc I-W
|
| 1381 |
+
dã B-W
|
| 1382 |
+
" B-W
|
| 1383 |
+
. B-W
|
| 1384 |
+
|
| 1385 |
+
# sent_id = uvw-18245
|
| 1386 |
+
# text = Ngừng nạp 1 giờ cho các ngăn ắc quy ổn định .
|
| 1387 |
+
Ngừng B-W
|
| 1388 |
+
nạp B-W
|
| 1389 |
+
1 B-W
|
| 1390 |
+
giờ B-W
|
| 1391 |
+
cho B-W
|
| 1392 |
+
các B-W
|
| 1393 |
+
ngăn B-W
|
| 1394 |
+
ắc B-W
|
| 1395 |
+
quy I-W
|
| 1396 |
+
ổn B-W
|
| 1397 |
+
định I-W
|
| 1398 |
+
. B-W
|
| 1399 |
+
|
| 1400 |
+
# sent_id = uvw-19010
|
| 1401 |
+
# text = Ông thân thiết với nhà toán học Thụy Sĩ Nicolas Fatio de Duillier .
|
| 1402 |
+
Ông B-W
|
| 1403 |
+
thân B-W
|
| 1404 |
+
thiết I-W
|
| 1405 |
+
với B-W
|
| 1406 |
+
nhà B-W
|
| 1407 |
+
toán B-W
|
| 1408 |
+
học I-W
|
| 1409 |
+
Thụy B-W
|
| 1410 |
+
Sĩ I-W
|
| 1411 |
+
Nicolas B-W
|
| 1412 |
+
Fatio I-W
|
| 1413 |
+
de I-W
|
| 1414 |
+
Duillier I-W
|
| 1415 |
+
. B-W
|
| 1416 |
+
|
| 1417 |
+
# sent_id = uvw-2178
|
| 1418 |
+
# text = Đồng nguyên chất mềm và dễ uốn ; bề mặt đồng tươi có màu cam đỏ .
|
| 1419 |
+
Đồng B-W
|
| 1420 |
+
nguyên B-W
|
| 1421 |
+
chất I-W
|
| 1422 |
+
mềm B-W
|
| 1423 |
+
và B-W
|
| 1424 |
+
dễ B-W
|
| 1425 |
+
uốn B-W
|
| 1426 |
+
; B-W
|
| 1427 |
+
bề B-W
|
| 1428 |
+
mặt I-W
|
| 1429 |
+
đồng B-W
|
| 1430 |
+
tươi B-W
|
| 1431 |
+
có B-W
|
| 1432 |
+
màu B-W
|
| 1433 |
+
cam B-W
|
| 1434 |
+
đỏ I-W
|
| 1435 |
+
. B-W
|
| 1436 |
+
|
| 1437 |
+
# sent_id = uvw-3214
|
| 1438 |
+
# text = Thiên địa hòa xướng chi tượng : tượng trời đất giao hòa .
|
| 1439 |
+
Thiên B-W
|
| 1440 |
+
địa I-W
|
| 1441 |
+
hòa B-W
|
| 1442 |
+
xướng I-W
|
| 1443 |
+
chi B-W
|
| 1444 |
+
tượng B-W
|
| 1445 |
+
: B-W
|
| 1446 |
+
tượng B-W
|
| 1447 |
+
trời B-W
|
| 1448 |
+
đất I-W
|
| 1449 |
+
giao B-W
|
| 1450 |
+
hòa I-W
|
| 1451 |
+
. B-W
|
| 1452 |
+
|
| 1453 |
+
# sent_id = uvw-379
|
| 1454 |
+
# text = Phục Hy ghi : Nhu giả ẩm thực chi đạo dã , ẩm thực tất hữu tụng , cố thụ chi dĩ tụng .
|
| 1455 |
+
Phục B-W
|
| 1456 |
+
Hy I-W
|
| 1457 |
+
ghi B-W
|
| 1458 |
+
: B-W
|
| 1459 |
+
Nhu B-W
|
| 1460 |
+
giả B-W
|
| 1461 |
+
ẩm B-W
|
| 1462 |
+
thực I-W
|
| 1463 |
+
chi B-W
|
| 1464 |
+
đạo B-W
|
| 1465 |
+
dã I-W
|
| 1466 |
+
, B-W
|
| 1467 |
+
ẩm B-W
|
| 1468 |
+
thực I-W
|
| 1469 |
+
tất B-W
|
| 1470 |
+
hữu B-W
|
| 1471 |
+
tụng B-W
|
| 1472 |
+
, B-W
|
| 1473 |
+
cố B-W
|
| 1474 |
+
thụ B-W
|
| 1475 |
+
chi B-W
|
| 1476 |
+
dĩ B-W
|
| 1477 |
+
tụng B-W
|
| 1478 |
+
. B-W
|
| 1479 |
+
|
| 1480 |
+
# sent_id = uvw-4040
|
| 1481 |
+
# text = Nhi Đinh Lê nhị gia , nãi tuẫn kỷ tư , hốt thiên mệnh , võng đạo Thương Chu chi tích , thường an quyết ấp vu tư , trí thế đại phất trường , toán số đoản xúc , bách tính hao tổn , vạn vật thất nghi .
|
| 1482 |
+
Nhi B-W
|
| 1483 |
+
Đinh B-W
|
| 1484 |
+
Lê I-W
|
| 1485 |
+
nhị B-W
|
| 1486 |
+
gia I-W
|
| 1487 |
+
, B-W
|
| 1488 |
+
nãi B-W
|
| 1489 |
+
tuẫn B-W
|
| 1490 |
+
kỷ B-W
|
| 1491 |
+
tư I-W
|
| 1492 |
+
, B-W
|
| 1493 |
+
hốt B-W
|
| 1494 |
+
thiên B-W
|
| 1495 |
+
mệnh I-W
|
| 1496 |
+
, B-W
|
| 1497 |
+
võng B-W
|
| 1498 |
+
đạo B-W
|
| 1499 |
+
Thương B-W
|
| 1500 |
+
Chu I-W
|
| 1501 |
+
chi B-W
|
| 1502 |
+
tích I-W
|
| 1503 |
+
, B-W
|
| 1504 |
+
thường B-W
|
| 1505 |
+
an B-W
|
| 1506 |
+
quyết B-W
|
| 1507 |
+
ấp B-W
|
| 1508 |
+
vu B-W
|
| 1509 |
+
tư I-W
|
| 1510 |
+
, B-W
|
| 1511 |
+
trí B-W
|
| 1512 |
+
thế B-W
|
| 1513 |
+
đại I-W
|
| 1514 |
+
phất B-W
|
| 1515 |
+
trường B-W
|
| 1516 |
+
, B-W
|
| 1517 |
+
toán B-W
|
| 1518 |
+
số I-W
|
| 1519 |
+
đoản B-W
|
| 1520 |
+
xúc I-W
|
| 1521 |
+
, B-W
|
| 1522 |
+
bách B-W
|
| 1523 |
+
tính I-W
|
| 1524 |
+
hao B-W
|
| 1525 |
+
tổn I-W
|
| 1526 |
+
, B-W
|
| 1527 |
+
vạn B-W
|
| 1528 |
+
vật I-W
|
| 1529 |
+
thất B-W
|
| 1530 |
+
nghi I-W
|
| 1531 |
+
. B-W
|
| 1532 |
+
|
| 1533 |
+
# sent_id = uvw-415
|
| 1534 |
+
# text = Giải nghĩa : Chỉ dã .
|
| 1535 |
+
Giải B-W
|
| 1536 |
+
nghĩa I-W
|
| 1537 |
+
: B-W
|
| 1538 |
+
Chỉ B-W
|
| 1539 |
+
dã I-W
|
| 1540 |
+
. B-W
|
| 1541 |
+
|
| 1542 |
+
# sent_id = uvw-4428
|
| 1543 |
+
# text = Cửu ngũ : Nhu vu tửu thực , trinh cát .
|
| 1544 |
+
Cửu B-W
|
| 1545 |
+
ngũ I-W
|
| 1546 |
+
: B-W
|
| 1547 |
+
Nhu B-W
|
| 1548 |
+
vu B-W
|
| 1549 |
+
tửu B-W
|
| 1550 |
+
thực I-W
|
| 1551 |
+
, B-W
|
| 1552 |
+
trinh B-W
|
| 1553 |
+
cát B-W
|
| 1554 |
+
. B-W
|
| 1555 |
+
|
| 1556 |
+
# sent_id = uvw-5791
|
| 1557 |
+
# text = Kỳ địa quảng nhi thản bình , quyết thổ cao nhi sảng khải .
|
| 1558 |
+
Kỳ B-W
|
| 1559 |
+
địa B-W
|
| 1560 |
+
quảng B-W
|
| 1561 |
+
nhi B-W
|
| 1562 |
+
thản B-W
|
| 1563 |
+
bình I-W
|
| 1564 |
+
, B-W
|
| 1565 |
+
quyết B-W
|
| 1566 |
+
thổ B-W
|
| 1567 |
+
cao B-W
|
| 1568 |
+
nhi B-W
|
| 1569 |
+
sảng B-W
|
| 1570 |
+
khải I-W
|
| 1571 |
+
. B-W
|
| 1572 |
+
|
| 1573 |
+
# sent_id = uvw-6347
|
| 1574 |
+
# text = Dân cư miệt hôn điếm chi khốn ; vạn vật cực phồn phụ chi phong .
|
| 1575 |
+
Dân B-W
|
| 1576 |
+
cư I-W
|
| 1577 |
+
miệt B-W
|
| 1578 |
+
hôn B-W
|
| 1579 |
+
điếm I-W
|
| 1580 |
+
chi B-W
|
| 1581 |
+
khốn B-W
|
| 1582 |
+
; B-W
|
| 1583 |
+
vạn B-W
|
| 1584 |
+
vật I-W
|
| 1585 |
+
cực B-W
|
| 1586 |
+
phồn B-W
|
| 1587 |
+
phụ I-W
|
| 1588 |
+
chi B-W
|
| 1589 |
+
phong B-W
|
| 1590 |
+
. B-W
|
| 1591 |
+
|
| 1592 |
+
# sent_id = uvw-6691
|
| 1593 |
+
# text = Họ Cariamidae : Chim mào bắt rắn .
|
| 1594 |
+
Họ B-W
|
| 1595 |
+
Cariamidae B-W
|
| 1596 |
+
: B-W
|
| 1597 |
+
Chim B-W
|
| 1598 |
+
mào I-W
|
| 1599 |
+
bắt B-W
|
| 1600 |
+
rắn I-W
|
| 1601 |
+
. B-W
|
| 1602 |
+
|
| 1603 |
+
# sent_id = uvw-7555
|
| 1604 |
+
# text = Holocaust : Quân Mỹ giải phóng trại tập trung Dachau .
|
| 1605 |
+
Holocaust B-W
|
| 1606 |
+
: B-W
|
| 1607 |
+
Quân B-W
|
| 1608 |
+
Mỹ B-W
|
| 1609 |
+
giải B-W
|
| 1610 |
+
phóng I-W
|
| 1611 |
+
trại B-W
|
| 1612 |
+
tập B-W
|
| 1613 |
+
trung I-W
|
| 1614 |
+
Dachau B-W
|
| 1615 |
+
. B-W
|
| 1616 |
+
|
| 1617 |
+
# sent_id = uvw-8056
|
| 1618 |
+
# text = 1999 – Tổng thống Nigeria Ibrahim Baré Maïnassara bị ám sát .
|
| 1619 |
+
1999 B-W
|
| 1620 |
+
– B-W
|
| 1621 |
+
Tổng B-W
|
| 1622 |
+
thống I-W
|
| 1623 |
+
Nigeria B-W
|
| 1624 |
+
Ibrahim I-W
|
| 1625 |
+
Baré I-W
|
| 1626 |
+
Maïnassara I-W
|
| 1627 |
+
bị B-W
|
| 1628 |
+
ám B-W
|
| 1629 |
+
sát I-W
|
| 1630 |
+
. B-W
|
| 1631 |
+
|
| 1632 |
+
# sent_id = uvw-8082
|
| 1633 |
+
# text = Cô cũng 2 lần thắng giải Grand Prix Award cùng nhiều giải thưởng danh giá như MTV Video Music Awards Japan , World Music Awards , Japan Gold Disc Award .
|
| 1634 |
+
Cô B-W
|
| 1635 |
+
cũng B-W
|
| 1636 |
+
2 B-W
|
| 1637 |
+
lần B-W
|
| 1638 |
+
thắng B-W
|
| 1639 |
+
giải B-W
|
| 1640 |
+
Grand B-W
|
| 1641 |
+
Prix I-W
|
| 1642 |
+
Award I-W
|
| 1643 |
+
cùng B-W
|
| 1644 |
+
nhiều B-W
|
| 1645 |
+
giải B-W
|
| 1646 |
+
thưởng I-W
|
| 1647 |
+
danh B-W
|
| 1648 |
+
giá I-W
|
| 1649 |
+
như B-W
|
| 1650 |
+
MTV B-W
|
| 1651 |
+
Video I-W
|
| 1652 |
+
Music I-W
|
| 1653 |
+
Awards I-W
|
| 1654 |
+
Japan I-W
|
| 1655 |
+
, B-W
|
| 1656 |
+
World B-W
|
| 1657 |
+
Music I-W
|
| 1658 |
+
Awards I-W
|
| 1659 |
+
, B-W
|
| 1660 |
+
Japan B-W
|
| 1661 |
+
Gold I-W
|
| 1662 |
+
Disc I-W
|
| 1663 |
+
Award I-W
|
| 1664 |
+
. B-W
|
| 1665 |
+
|
| 1666 |
+
# sent_id = uvw-998
|
| 1667 |
+
# text = Công trình về hiệu ứng quang điện của ông mang tính bước ngoặt khai sinh ra lý thuyết lượng tử .
|
| 1668 |
+
Công B-W
|
| 1669 |
+
trình I-W
|
| 1670 |
+
về B-W
|
| 1671 |
+
hiệu B-W
|
| 1672 |
+
ứng I-W
|
| 1673 |
+
quang B-W
|
| 1674 |
+
điện I-W
|
| 1675 |
+
của B-W
|
| 1676 |
+
ông B-W
|
| 1677 |
+
mang B-W
|
| 1678 |
+
tính B-W
|
| 1679 |
+
bước B-W
|
| 1680 |
+
ngoặt I-W
|
| 1681 |
+
khai B-W
|
| 1682 |
+
sinh I-W
|
| 1683 |
+
ra B-W
|
| 1684 |
+
lý B-W
|
| 1685 |
+
thuyết I-W
|
| 1686 |
+
lượng B-W
|
| 1687 |
+
tử I-W
|
| 1688 |
+
. B-W
|
| 1689 |
+
|
| 1690 |
+
# sent_id = vlc-10445
|
| 1691 |
+
# text = Đơn phương miễn thị thực 1 .
|
| 1692 |
+
Đơn B-W
|
| 1693 |
+
phương I-W
|
| 1694 |
+
miễn B-W
|
| 1695 |
+
thị B-W
|
| 1696 |
+
thực I-W
|
| 1697 |
+
1 B-W
|
| 1698 |
+
. B-W
|
| 1699 |
+
|
| 1700 |
+
# sent_id = vlc-4443
|
| 1701 |
+
# text = Sơ yếu lý lịch và Phiếu lý lịch tư pháp .
|
| 1702 |
+
Sơ B-W
|
| 1703 |
+
yếu I-W
|
| 1704 |
+
lý B-W
|
| 1705 |
+
lịch I-W
|
| 1706 |
+
và B-W
|
| 1707 |
+
Phiếu B-W
|
| 1708 |
+
lý B-W
|
| 1709 |
+
lịch I-W
|
| 1710 |
+
tư B-W
|
| 1711 |
+
pháp I-W
|
| 1712 |
+
. B-W
|
| 1713 |
+
|
| 1714 |
+
# sent_id = vlc-6220
|
| 1715 |
+
# text = Ủy ban thường vụ Quốc hội quy định về thể thức và kỹ thuật trình bày văn bản quy phạm pháp luật của Quốc hội , Ủy ban thường vụ Quốc hội , Chủ tịch nước .
|
| 1716 |
+
Ủy B-W
|
| 1717 |
+
ban I-W
|
| 1718 |
+
thường B-W
|
| 1719 |
+
vụ I-W
|
| 1720 |
+
Quốc B-W
|
| 1721 |
+
hội I-W
|
| 1722 |
+
quy B-W
|
| 1723 |
+
định I-W
|
| 1724 |
+
về B-W
|
| 1725 |
+
thể B-W
|
| 1726 |
+
thức I-W
|
| 1727 |
+
và B-W
|
| 1728 |
+
kỹ B-W
|
| 1729 |
+
thuật I-W
|
| 1730 |
+
trình B-W
|
| 1731 |
+
bày I-W
|
| 1732 |
+
văn B-W
|
| 1733 |
+
bản I-W
|
| 1734 |
+
quy B-W
|
| 1735 |
+
phạm I-W
|
| 1736 |
+
pháp B-W
|
| 1737 |
+
luật I-W
|
| 1738 |
+
của B-W
|
| 1739 |
+
Quốc B-W
|
| 1740 |
+
hội I-W
|
| 1741 |
+
, B-W
|
| 1742 |
+
Ủy B-W
|
| 1743 |
+
ban I-W
|
| 1744 |
+
thường B-W
|
| 1745 |
+
vụ I-W
|
| 1746 |
+
Quốc B-W
|
| 1747 |
+
hội I-W
|
| 1748 |
+
, B-W
|
| 1749 |
+
Chủ B-W
|
| 1750 |
+
tịch I-W
|
| 1751 |
+
nước I-W
|
| 1752 |
+
. B-W
|
| 1753 |
+
|
| 1754 |
+
# sent_id = vlc-7243
|
| 1755 |
+
# text = Đối tượng được phong quân hàm sĩ quan tại ngũ Những người sau đây được xét phong quân hàm sĩ quan tại ngũ : 1 .
|
| 1756 |
+
Đối B-W
|
| 1757 |
+
tượng I-W
|
| 1758 |
+
được B-W
|
| 1759 |
+
phong B-W
|
| 1760 |
+
quân B-W
|
| 1761 |
+
hàm I-W
|
| 1762 |
+
sĩ B-W
|
| 1763 |
+
quan I-W
|
| 1764 |
+
tại B-W
|
| 1765 |
+
ngũ I-W
|
| 1766 |
+
Những B-W
|
| 1767 |
+
người B-W
|
| 1768 |
+
sau B-W
|
| 1769 |
+
đây B-W
|
| 1770 |
+
được B-W
|
| 1771 |
+
xét B-W
|
| 1772 |
+
phong B-W
|
| 1773 |
+
quân B-W
|
| 1774 |
+
hàm I-W
|
| 1775 |
+
sĩ B-W
|
| 1776 |
+
quan I-W
|
| 1777 |
+
tại B-W
|
| 1778 |
+
ngũ I-W
|
| 1779 |
+
: B-W
|
| 1780 |
+
1 B-W
|
| 1781 |
+
. B-W
|
| 1782 |
+
|
|
@@ -0,0 +1,336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Annotation Guideline v1.1: Word Segmentation
|
| 2 |
+
|
| 3 |
+
Phiên bản cập nhật sau AL Cycle 1 (92 câu gold, 5 domains).
|
| 4 |
+
|
| 5 |
+
## 1. Tổng quan
|
| 6 |
+
|
| 7 |
+
Guideline này bổ sung các quy tắc thực hành từ kinh nghiệm gán nhãn Cycle 1. Các quy tắc nền tảng (NIIVTB 9 rules, VLSP) vẫn giữ nguyên — xem `Annotation Guideline Summary.md`.
|
| 8 |
+
|
| 9 |
+
### 1.1 Kết quả Cycle 1
|
| 10 |
+
|
| 11 |
+
| Metric | Score |
|
| 12 |
+
|--------|-------|
|
| 13 |
+
| Câu gán nhãn | 92 (từ top 100 uncertainty) |
|
| 14 |
+
| Word F1 (silver vs gold) | 0.7808 |
|
| 15 |
+
| Over-merge errors | 134 |
|
| 16 |
+
| Over-split errors | 119 |
|
| 17 |
+
| Câu có lỗi | 75/92 (81.5%) |
|
| 18 |
+
|
| 19 |
+
Domain khó nhất: Wikipedia (F1=0.707), Legal (F1=0.713).
|
| 20 |
+
|
| 21 |
+
## 2. Quy tắc tên riêng
|
| 22 |
+
|
| 23 |
+
### 2.1 Tên người Việt
|
| 24 |
+
|
| 25 |
+
Tên người Việt gồm các thành phần: Họ + Tên đệm + Tên. Mỗi thành phần viết hoa chữ cái đầu.
|
| 26 |
+
|
| 27 |
+
**Quy tắc**: Gộp toàn bộ tên người thành một từ.
|
| 28 |
+
|
| 29 |
+
| Đúng | Sai |
|
| 30 |
+
|------|-----|
|
| 31 |
+
| `Nguyễn_Bính` | `Nguyễn` \| `Bính` |
|
| 32 |
+
| `Trương_Hán_Siêu` | `Trương_Hán` \| `Siêu` |
|
| 33 |
+
| `Tăng_Hoàng_Vinh` | `Tăng_Hoàng` \| `Vinh` |
|
| 34 |
+
| `Chu_Du` | `Chu` \| `Du` |
|
| 35 |
+
| `Kỳ_Nam` | `Kỳ` \| `Nam` |
|
| 36 |
+
|
| 37 |
+
**Lưu ý ranh giới**: Không gộp tên người với từ kế tiếp.
|
| 38 |
+
|
| 39 |
+
| Đúng | Sai (CRF hay mắc) |
|
| 40 |
+
|------|-----|
|
| 41 |
+
| `Nguyễn_Bính` \| `Mưa` \| `dầm` | `Nguyễn_Bính_Mưa_dầm` |
|
| 42 |
+
| `Chu_Du` \| `tính_tình` | `Chu_Du_tính_tình` |
|
| 43 |
+
| `Tăng_Hoàng_Vinh` \| `giữ` | `Tăng_Hoàng_Vinh_giữ` |
|
| 44 |
+
| `Quỳnh` \| `nghiến_răng` | `Quỳnh_nghiến` + `răng` |
|
| 45 |
+
| `Khải` \| `nheo_nheo` | `Khải_nheo` + `nheo` |
|
| 46 |
+
|
| 47 |
+
**Dấu hiệu nhận biết ranh giới**: Từ sau tên riêng thường là động từ, tính từ, hoặc danh từ chung (viết thường). Nếu syllable kế tiếp viết thường → tách.
|
| 48 |
+
|
| 49 |
+
### 2.2 Tên người Hán-Việt / Lịch sử
|
| 50 |
+
|
| 51 |
+
Tên nhân vật lịch sử Hán-Việt: gộp toàn bộ hiệu/tên.
|
| 52 |
+
|
| 53 |
+
| Đúng | Sai |
|
| 54 |
+
|------|-----|
|
| 55 |
+
| `Lương_Huệ_vương` | `Lương` \| `Huệ_vương` |
|
| 56 |
+
| `Khổng_Dĩnh_Đạt` | `Khổng_Dĩnh` \| `Đạt` |
|
| 57 |
+
| `Lục_Giả` | `Lục` \| `Giả` |
|
| 58 |
+
| `Phục_Hy` | `Phục` \| `Hy` |
|
| 59 |
+
|
| 60 |
+
### 2.3 Tên người nước ngoài
|
| 61 |
+
|
| 62 |
+
Gộp toàn bộ tên (kể cả giới từ "de", "von"):
|
| 63 |
+
|
| 64 |
+
| Đúng | Sai |
|
| 65 |
+
|------|-----|
|
| 66 |
+
| `Nicolas_Fatio_de_Duillier` | `Nicolas` \| `Fatio_de` \| `Duillier` |
|
| 67 |
+
| `Nigeria_Ibrahim_Baré_Maïnassara` | `Nigeria_Ibrahim` \| `Baré_Maïnassara` |
|
| 68 |
+
| `Beethoven` | (đúng, 1 syllable) |
|
| 69 |
+
|
| 70 |
+
### 2.4 Tên địa danh
|
| 71 |
+
|
| 72 |
+
| Đúng | Sai |
|
| 73 |
+
|------|-----|
|
| 74 |
+
| `Hà_Tiên` \| `trấn` | `Hà_Tiên_trấn` |
|
| 75 |
+
| `Long_Hồ` \| `dinh` | `Long` \| `Hồ_dinh` |
|
| 76 |
+
| `Lạc_Hồng` | `Lạc` \| `Hồng` |
|
| 77 |
+
| `Cần_Thánh` | `Cần` \| `Thánh` |
|
| 78 |
+
|
| 79 |
+
**Quy tắc**: Tên địa danh riêng gộp thành một từ. Danh từ chung chỉ đơn vị hành chính (trấn, dinh, huyện, tỉnh...) tách riêng.
|
| 80 |
+
|
| 81 |
+
### 2.5 Tên tổ chức / Giải thưởng
|
| 82 |
+
|
| 83 |
+
Gộp toàn bộ tên chính thức:
|
| 84 |
+
|
| 85 |
+
| Đúng | Sai |
|
| 86 |
+
|------|-----|
|
| 87 |
+
| `World_Music_Awards` | `World_Music` \| `Awards` |
|
| 88 |
+
| `MTV_Video_Music_Awards_Japan` | `MTV_Video` \| `Music` \| `Awards_Japan` |
|
| 89 |
+
| `Grand_Prix_Award` | `Grand` \| `Prix_Award` |
|
| 90 |
+
| `Japan_Gold_Disc_Award` | `Japan_Gold` \| `Disc_Award` |
|
| 91 |
+
|
| 92 |
+
## 3. Quy tắc từ nước ngoài (Latin script)
|
| 93 |
+
|
| 94 |
+
### 3.1 Nguyên tắc chung
|
| 95 |
+
|
| 96 |
+
Mỗi từ tiếng Anh/Latin là một từ riêng biệt. **Không gộp** các từ tiếng Anh liền nhau thành một cụm (trừ tên riêng — xem mục 2.5).
|
| 97 |
+
|
| 98 |
+
| Đúng | Sai |
|
| 99 |
+
|------|-----|
|
| 100 |
+
| `I` \| `LOVE` \| `YOU` | `I_LOVE` \| `YOU` |
|
| 101 |
+
| `DNA` \| `replication` | `DNA_replication` |
|
| 102 |
+
| `BST` \| `Love` | `BST_Love` |
|
| 103 |
+
| `Matt` \| `really` | `Matt_really` |
|
| 104 |
+
| `new` \| `leaf` | `new_leaf` |
|
| 105 |
+
| `of` \| `refusing` | `of_refusing` |
|
| 106 |
+
|
| 107 |
+
### 3.2 Viết tắt
|
| 108 |
+
|
| 109 |
+
Viết tắt (BST, DNA, PS, I.) là từ riêng biệt:
|
| 110 |
+
|
| 111 |
+
| Đúng | Sai |
|
| 112 |
+
|------|-----|
|
| 113 |
+
| `Ahern` \| `PS` | `Ahern_PS` |
|
| 114 |
+
| `I.` \| `Lương_Huệ_vương` | `I._Lương` |
|
| 115 |
+
|
| 116 |
+
## 4. Quy tắc Hán-Việt cổ văn
|
| 117 |
+
|
| 118 |
+
Nhiều câu Wikipedia chứa trích dẫn cổ văn Hán-Việt. Trong cổ văn, phần lớn từ là **đơn âm tiết**.
|
| 119 |
+
|
| 120 |
+
### 4.1 Nguyên tắc
|
| 121 |
+
|
| 122 |
+
Hư từ Hán-Việt cổ (chi 之, dĩ 以, hữu 有, vô 無, tất 必, nhi 而...) luôn là từ riêng biệt:
|
| 123 |
+
|
| 124 |
+
| Đúng | Sai |
|
| 125 |
+
|------|-----|
|
| 126 |
+
| `tất` \| `hữu` \| `tụng` | `tất_hữu_tụng` |
|
| 127 |
+
| `chi` \| `dĩ` \| `tụng` | `chi_dĩ_tụng` |
|
| 128 |
+
| `ẩm_thực` \| `chi` | `ẩm_thực_chi` |
|
| 129 |
+
| `thiên_địa` \| `lưu` | `thiên_địa_lưu` |
|
| 130 |
+
|
| 131 |
+
### 4.2 Từ ghép Hán-Việt vẫn gộp
|
| 132 |
+
|
| 133 |
+
Từ ghép Hán-Việt 2+ âm tiết có nghĩa cố định vẫn gộp:
|
| 134 |
+
|
| 135 |
+
| Gộp (đúng) | Lý do |
|
| 136 |
+
|-------------|-------|
|
| 137 |
+
| `thiên_địa` (天地) | Từ ghép đẳng lập: trời + đất |
|
| 138 |
+
| `giang_sơn` (江山) | Từ ghép đẳng lập: sông + núi |
|
| 139 |
+
| `ẩm_thực` (飲食) | Từ ghép đẳng lập: ăn + uống |
|
| 140 |
+
| `đại_quốc` (大國) | Từ ghép chính phụ: nước + lớn |
|
| 141 |
+
| `hòa_xướng` (和唱) | Từ ghép chính phụ: hòa + hát |
|
| 142 |
+
| `hôn_điếm` (昏店) | Từ ghép cố định |
|
| 143 |
+
| `Đinh_Lê` (丁黎) | Tên triều đại |
|
| 144 |
+
| `nhị_gia` (二家) | Cụm cố định |
|
| 145 |
+
|
| 146 |
+
### 4.3 Phân biệt cổ văn vs hiện đại
|
| 147 |
+
|
| 148 |
+
Cùng một chuỗi syllable có thể gộp khác nhau tùy ngữ cảnh:
|
| 149 |
+
|
| 150 |
+
| Ngữ cảnh | Tách | Ví dụ |
|
| 151 |
+
|-----------|------|-------|
|
| 152 |
+
| Cổ văn: `高 而 廣` | `cao` \| `nhi` \| `quảng` | 3 từ đơn |
|
| 153 |
+
| Hiện đại: `cao nhi` | Không tồn tại | — |
|
| 154 |
+
| Cổ văn: `決 土` | `quyết` \| `thổ` | 2 từ đơn |
|
| 155 |
+
| Hiện đại: `quyết_định` | `quyết_định` | 1 từ ghép |
|
| 156 |
+
|
| 157 |
+
## 5. Quy tắc từ ghép boundary shift
|
| 158 |
+
|
| 159 |
+
Đây là lỗi phổ biến nhất: CRF gộp đúng số syllable nhưng sai ranh giới.
|
| 160 |
+
|
| 161 |
+
### 5.1 Pattern: A_B_C → A_B | C (tách sai ở giữa)
|
| 162 |
+
|
| 163 |
+
| Sai | Đúng | Ghi chú |
|
| 164 |
+
|-----|------|---------|
|
| 165 |
+
| `lợi_nhuận_tích` \| `lũy` | `lợi_nhuận` \| `tích_lũy` | boundary shift |
|
| 166 |
+
| `niên_đại_mẫu` \| `vật` | `niên_đại` \| `mẫu_vật` | boundary shift |
|
| 167 |
+
| `ngăn_ắc` \| `quy_ổn_định` | `ngăn` \| `ắc_quy` \| `ổn_định` | boundary shift |
|
| 168 |
+
| `nanh_sắc` \| `nhọn` | `răng_nanh` \| `sắc_nhọn` | boundary shift |
|
| 169 |
+
| `thực_cầu` \| `mong` | `thành_thực` \| `cầu_mong` | boundary shift |
|
| 170 |
+
| `Hải_quốc_văn_kiến` \| `lục_》` | `Hải_quốc_văn_kiến_lục` \| `》` | tách dấu |
|
| 171 |
+
|
| 172 |
+
**Cách nhận biết**: Kiểm tra xem từ ghép có nghĩa hợp lý không. Nếu `A_B` không phải từ trong từ điển mà `B_C` mới đúng → boundary shift.
|
| 173 |
+
|
| 174 |
+
### 5.2 Pattern: Tên riêng + Từ kế tiếp
|
| 175 |
+
|
| 176 |
+
| Sai | Đúng |
|
| 177 |
+
|-----|------|
|
| 178 |
+
| `Nữ_minh` \| `tinh_khịt` | `Nữ_minh_tinh` \| `khịt_mũi` |
|
| 179 |
+
| `Liên_xua` \| `tay` | `Liên` \| `xua_tay` |
|
| 180 |
+
| `Hồ_dinh_đổi` | `Long_Hồ` \| `dinh` \| `đổi` |
|
| 181 |
+
|
| 182 |
+
## 6. Quy tắc từ ghép thường gặp
|
| 183 |
+
|
| 184 |
+
### 6.1 Từ ghép phải gộp (CRF hay tách sai)
|
| 185 |
+
|
| 186 |
+
| Từ | Loại | Ví dụ sai |
|
| 187 |
+
|----|------|-----------|
|
| 188 |
+
| `Ủy_ban` | Danh từ ghép | `Ủy` \| `ban` |
|
| 189 |
+
| `Chủ_tịch_nước` | Chức danh | `Chủ_tịch` \| `nước` |
|
| 190 |
+
| `lính_thú` | Danh từ ghép | `lính` \| `thú` |
|
| 191 |
+
| `mu_rùa` | Danh từ ghép | `mu` \| `rùa` |
|
| 192 |
+
| `trêu_ghẹo` | Động từ ghép đẳng lập | `trêu` \| `ghẹo` |
|
| 193 |
+
| `sương_mai` | Danh từ ghép | `sương` \| `mai` |
|
| 194 |
+
| `mái_nhà` | Danh từ ghép chính phụ | `mái` \| `nhà` |
|
| 195 |
+
| `siêu_máy_tính` | Danh từ ghép | `siêu` \| `máy_tính` |
|
| 196 |
+
| `lượng_tử` | Danh từ Hán-Việt | `lượng` \| `tử` |
|
| 197 |
+
| `tích_lũy` | Động từ Hán-Việt | `tích` \| `lũy` |
|
| 198 |
+
| `tại_ngũ` | Tính từ Hán-Việt | `tại` \| `ngũ` |
|
| 199 |
+
| `Hành_chánh` | Danh từ Hán-Việt | `Hành` \| `chánh` |
|
| 200 |
+
| `nghiến_răng` | Động từ ghép | `nghiến` \| `răng` |
|
| 201 |
+
| `nheo_nheo` | Từ láy | `nheo` \| `nheo` |
|
| 202 |
+
| `dơn_dớt` | Từ láy | `dơn` \| `dớt` |
|
| 203 |
+
| `đầm_đuôi_cá` | Danh từ ghép (thời trang) | `đầm` \| `đuôi` \| `cá` |
|
| 204 |
+
| `cha_truyền_con_nối` | Thành ngữ | `cha` \| `truyền_con` \| `nối` |
|
| 205 |
+
| `Đường_thẳng` | Thuật ngữ toán học | `Đường` \| `thẳng` |
|
| 206 |
+
| `nói_gở` | Động từ ghép | `nói` \| `gở` |
|
| 207 |
+
| `xua_tay` | Động từ ghép | `xua` \| `tay` |
|
| 208 |
+
| `bơi_chó` | Danh từ ghép | `bơi` \| `chó` |
|
| 209 |
+
| `người_thương` | Danh từ ghép | `người` \| `thương` |
|
| 210 |
+
| `chăn_lợn` | Động từ ghép | `chăn` \| `lợn` |
|
| 211 |
+
| `khay_trà` | Danh từ ghép | `khay` \| `trà` |
|
| 212 |
+
| `đồng_tự` | Thuật ngữ | `đồng` \| `tự` |
|
| 213 |
+
|
| 214 |
+
### 6.2 Từ ghép phải tách (CRF hay gộp sai)
|
| 215 |
+
|
| 216 |
+
| Từ (tách) | Loại | Ví dụ sai |
|
| 217 |
+
|------------|------|-----------|
|
| 218 |
+
| `phải` \| `biết` | Phụ từ + Động từ | `phải_biết` |
|
| 219 |
+
| `có` \| `học` | Phụ từ + Động từ | `có_học` |
|
| 220 |
+
| `lạnh` \| `đặc` | Tính từ + Bổ ngữ | `lạnh_đặc` |
|
| 221 |
+
| `chơi` \| `trò` | Động từ + Danh từ | `chơi_trò` |
|
| 222 |
+
| `làm` \| `âm` | Động từ + Danh từ | `làm_âm` |
|
| 223 |
+
| `dạo` \| `khúc` | Động từ + Danh từ | `dạo_khúc` |
|
| 224 |
+
| `miễn` \| `thị_thực` | Động từ + Danh từ | `miễn_thị_thực` |
|
| 225 |
+
| `phóng` \| `vệ_tinh` | Động từ + Danh từ | `phóng_vệ_tinh` |
|
| 226 |
+
|
| 227 |
+
**Nguyên tắc**: Nếu có thể chèn từ vào giữa (Rule 1) → tách. Ví dụ: `phải biết` → `phải nên biết` ✓ → tách.
|
| 228 |
+
|
| 229 |
+
### 6.3 Từ ghép pháp luật
|
| 230 |
+
|
| 231 |
+
| Gộp | Tách |
|
| 232 |
+
|-----|------|
|
| 233 |
+
| `quy_phạm` + `pháp_luật` (2 từ) | ~~`quy_phạm_pháp_luật`~~ (sai) |
|
| 234 |
+
| `trình_bày` + `văn_bản` (2 từ) | ~~`trình_bày_văn_bản`~~ (sai) |
|
| 235 |
+
| `thường_vụ` (1 từ) | ~~`ban_thường_vụ`~~ (sai) |
|
| 236 |
+
| `quân_hàm` (1 từ) | ~~`hàm_sĩ_quan`~~ (sai, boundary shift) |
|
| 237 |
+
| `sĩ_quan` (1 từ) | ~~`phong_quân`~~ (sai, boundary shift) |
|
| 238 |
+
| `thị_thực` (1 từ) | ~~`miễn_thị_thực`~~ (sai) |
|
| 239 |
+
|
| 240 |
+
**Nguyên tắc**: Thuật ngữ pháp luật 2 âm tiết → gộp (`quy_phạm`, `pháp_luật`, `sĩ_quan`, `quân_hàm`). Cụm 4 âm tiết → kiểm tra có phải 2 từ ghép 2 âm tiết ghép lại không.
|
| 241 |
+
|
| 242 |
+
## 7. Quy tắc đặc biệt
|
| 243 |
+
|
| 244 |
+
### 7.1 "Nhà" + Nghề nghiệp
|
| 245 |
+
|
| 246 |
+
| Pattern | Tách | Ghi chú |
|
| 247 |
+
|---------|------|---------|
|
| 248 |
+
| `nhà` \| `toán_học` | `nhà` = danh từ chung, `toán_học` = danh từ ghép | Tách |
|
| 249 |
+
| `nhà` \| `cầm_quyền` | | Tách |
|
| 250 |
+
|
| 251 |
+
Nhưng: `nhà_máy` (factory) → gộp (không thể chèn).
|
| 252 |
+
|
| 253 |
+
### 7.2 Tên tác phẩm / Tiêu đề
|
| 254 |
+
|
| 255 |
+
Tên tác phẩm tách riêng khỏi tên tác giả:
|
| 256 |
+
|
| 257 |
+
| Đúng | Sai |
|
| 258 |
+
|------|-----|
|
| 259 |
+
| `Nguyễn_Bính` \| `Mưa` \| `dầm` | `Nguyễn_Bính_Mưa_dầm` |
|
| 260 |
+
| `Nguyễn_Bính` \| `Công` | `Nguyễn_Bính_Công` |
|
| 261 |
+
| `Hải_quốc_văn_kiến_lục` | `Hải_quốc_văn_kiến` \| `lục` |
|
| 262 |
+
|
| 263 |
+
Lưu ý: Tên sách Hán-Việt gộp toàn bộ (`Hải_quốc_văn_kiến_lục` = 1 từ).
|
| 264 |
+
|
| 265 |
+
### 7.3 Tên cung điện / Địa danh lịch sử
|
| 266 |
+
|
| 267 |
+
| Đúng | Sai |
|
| 268 |
+
|------|-----|
|
| 269 |
+
| `Cung_Khôn_Thái` | `Cung` \| `Khôn_Thái` |
|
| 270 |
+
| `Bờ_xe_nước` | `Bờ` \| `xe` \| `nước` |
|
| 271 |
+
|
| 272 |
+
### 7.4 Thành ngữ / Quán ngữ
|
| 273 |
+
|
| 274 |
+
Gộp nếu nghĩa không suy ra từ thành phần:
|
| 275 |
+
|
| 276 |
+
| Gộp | Loại |
|
| 277 |
+
|-----|------|
|
| 278 |
+
| `cha_truyền_con_nối` | Thành ngữ 4 âm tiết |
|
| 279 |
+
| `như_điên` | Quán ngữ so sánh |
|
| 280 |
+
| `tẩy_chay` | Từ ghép (từ boycott) |
|
| 281 |
+
|
| 282 |
+
### 7.5 Dấu câu đặc biệt
|
| 283 |
+
|
| 284 |
+
Dấu câu luôn là từ riêng biệt:
|
| 285 |
+
|
| 286 |
+
| Đúng | Sai |
|
| 287 |
+
|------|-----|
|
| 288 |
+
| `》` (riêng) | `lục_》` |
|
| 289 |
+
| `»` (riêng) | gộp với từ trước |
|
| 290 |
+
|
| 291 |
+
## 8. Label Studio Workflow
|
| 292 |
+
|
| 293 |
+
### 8.1 Labels
|
| 294 |
+
|
| 295 |
+
| Label | Ý nghĩa | Dùng khi |
|
| 296 |
+
|-------|----------|----------|
|
| 297 |
+
| **W** | Word (từ thường) | Tên riêng, từ nước ngoài, từ ít gặp |
|
| 298 |
+
| **WH** | Word High confidence | Từ phổ biến, CRF confidence > 0.95 |
|
| 299 |
+
| **WM** | Word Medium confidence | CRF confidence 0.80–0.95 |
|
| 300 |
+
| **WL** | Word Low confidence | CRF confidence < 0.80, cần kiểm tra kỹ |
|
| 301 |
+
|
| 302 |
+
### 8.2 Quy trình gán nhãn
|
| 303 |
+
|
| 304 |
+
1. Đọc toàn bộ câu trước khi sửa
|
| 305 |
+
2. Kiểm tra các span WL (low confidence) trước — đây thường là lỗi
|
| 306 |
+
3. Kiểm tra ranh giới tên riêng (viết hoa)
|
| 307 |
+
4. Kiểm tra từ nước ngoài (Latin script)
|
| 308 |
+
5. Sử dụng dictionary plugin (xanh = có trong từ điển, đỏ = không có)
|
| 309 |
+
6. Đảm bảo **tất cả syllable đều được gán nhãn** (tránh bỏ sót)
|
| 310 |
+
|
| 311 |
+
### 8.3 Lỗi thường gặp khi gán nhãn
|
| 312 |
+
|
| 313 |
+
| Lỗi | Hậu quả |
|
| 314 |
+
|-----|---------|
|
| 315 |
+
| Bỏ sót syllable (không gán nhãn) | Câu bị loại khi export |
|
| 316 |
+
| Gộp dấu câu với từ trước | BIO sai |
|
| 317 |
+
| Bỏ qua từ nước ngoài | Câu bị loại |
|
| 318 |
+
|
| 319 |
+
## 9. Tóm tắt quy tắc ưu tiên
|
| 320 |
+
|
| 321 |
+
Khi không chắc chắn, áp dụng theo thứ tự:
|
| 322 |
+
|
| 323 |
+
1. **Tra từ điển** (Rule 7): Nếu có trong từ điển → gộp
|
| 324 |
+
2. **Test chèn** (Rule 1): Chèn được từ vào giữa → tách
|
| 325 |
+
3. **Hình vị ràng buộc** (Rule 6): Thành phần không đứng riêng được → gộp
|
| 326 |
+
4. **Nghĩa tổng hợp** (Rule 2–5): Nghĩa khác tổng thành phần → gộp
|
| 327 |
+
5. **Tên riêng**: Gộp toàn bộ, tách khỏi từ tiếp theo
|
| 328 |
+
6. **Cổ văn Hán-Việt**: Mặc định đơn âm tiết, trừ từ ghép cố định
|
| 329 |
+
7. **Từ nước ngoài**: Mỗi từ Latin là một từ riêng (trừ tên riêng)
|
| 330 |
+
|
| 331 |
+
## 10. Changelog
|
| 332 |
+
|
| 333 |
+
| Version | Date | Changes |
|
| 334 |
+
|---------|------|---------|
|
| 335 |
+
| v1.0 | 2026-02 | Initial guidelines (NIIVTB 9 rules + legal domain) |
|
| 336 |
+
| v1.1 | 2026-02 | Added: proper name rules, foreign word rules, Hán-Việt classical text rules, boundary shift patterns, compound word lists from Cycle 1 gold annotation (92 sentences) |
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See ra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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Automation of Treebank Annotation"
|
| 3 |
+
authors:
|
| 4 |
+
- "Thorsten Brants"
|
| 5 |
+
- "Wojciech Skut"
|
| 6 |
+
year: 1998
|
| 7 |
+
venue: "CoNLL 1998"
|
| 8 |
+
url: "https://aclanthology.org/W98-1207/"
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
**Automation** **of Treebank** **Annotation**
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
Thorsten Brants and Wojciech Skut
|
| 15 |
+
|
| 16 |
+
Universit£t des Saarlandes
|
| 17 |
+
Computational Linguistics
|
| 18 |
+
D-66041 Saarbrficken, Germany
|
| 19 |
+
```
|
| 20 |
+
{brant s, skut }Qcoli. uni-sb, de
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
**•..** **`Abstract`**
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
This paper describes applications of stochastic
|
| 28 |
+
and symbolic NLP methods to treebank annotation. In paxticular we focus on (1) the automation of treebank annotation, (2) the comparison of conflicting annotations for the same
|
| 29 |
+
sentence and (3) the automatic detection of inconsistencies. These techniques are currently
|
| 30 |
+
employed for building a German treebank.
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
rnu's nachgedacht werden
|
| 35 |
+
VMFIN VVPP VAINF
|
| 36 |
+
|
| 37 |
+
must thought-over be
|
| 38 |
+
|
| 39 |
+
_'it has to be thought over'_
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
**1** Introduction
|
| 44 |
+
|
| 45 |
+
The emergence of new statistical NLP methods increases the demand for corpora annotated with syntactic structures. The construction of such a corpus (a _treebank)_ is a time-consuming task that can
|
| 46 |
+
hardly be carried out unless some annotation work is
|
| 47 |
+
automated. Purely automatic annotation, however,
|
| 48 |
+
is not reliable enough to be employed without some
|
| 49 |
+
form of human supervision and hand-correction.
|
| 50 |
+
This interactive annotation strategy requires tools
|
| 51 |
+
for error detection and consistency checking.
|
| 52 |
+
|
| 53 |
+
The present paper reviews our experience with the
|
| 54 |
+
development of automatic annotation tools which
|
| 55 |
+
are currently used for building a corpus of German
|
| 56 |
+
newspaper text.
|
| 57 |
+
|
| 58 |
+
The next section gives an overview of the annotation format. Section 3 describes three applications
|
| 59 |
+
of statistical NLP methods to treebank annotation.
|
| 60 |
+
Finally, section 4 discusses mechanisms for comparing structures assigned by different annotators.
|
| 61 |
+
|
| 62 |
+
**2** Annotating Argument Structure
|
| 63 |
+
|
| 64 |
+
2.1 Annotation Scheme
|
| 65 |
+
|
| 66 |
+
Unlike most treebanks of English, our corpus is annotated with _predicate-argumenl s~ructures_ and not
|
| 67 |
+
phrase-structure trees. The reason is the free word
|
| 68 |
+
order in German, a feature seriously affecting the
|
| 69 |
+
transparency of traditional phrase structures. Thus
|
| 70 |
+
local and non-local dependencies are represented in
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Dar'uber
|
| 75 |
+
|
| 76 |
+
**PROAV**
|
| 77 |
+
```
|
| 78 |
+
about-it
|
| 79 |
+
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
$.
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
Figure h Sample structure from the Treebank
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
the same way, at the cost of allowing crossing tree
|
| 91 |
+
branches, as shown in figure 11 .
|
| 92 |
+
|
| 93 |
+
Such a direct representation of the predicateargument relation makes annotation easier than it
|
| 94 |
+
would be if additional trace-filler co-references were
|
| 95 |
+
used for encoding discontinuous constituents. Furthermore, our scheme facilitates automatic extraction of valence frames and the construction of semantic representations.
|
| 96 |
+
|
| 97 |
+
On the other hand, the predicate-argument structures used for annotating our corpus can still be converted automatically into phrase-structure trees if
|
| 98 |
+
necessary, cf. (Skut et al., 1997a). For more details
|
| 99 |
+
on the annotation scheme v. (Skut et al., 1997b).
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
2.2 The Annotation Mode
|
| 103 |
+
|
| 104 |
+
In order to make annotation more reliable, each sentence is annotated independently by two annotators.
|
| 105 |
+
Afterwards, the results are compared, and both annotators have to agree on a unique structure. In
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
1 The nodes and edges are labeled with category and
|
| 109 |
+
function symbols, respectively (see appendix A).
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
_Brants and Skut_ 49 _Automation of Treebank Annotation_
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
Thorsten Brants and Wojciech Skut (1998) **Automation of Treebank Annotation.** In D.M.W. _Powers_ (ed.)
|
| 117 |
+
_NeMLaP3/CoNLL98: New Methods in Language Processing and Computational Natural Language Learning,_ ACL, pp 49-57.
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
case of persistent disagreement or uncertainty, the
|
| 121 |
+
grammarian supervising the annotation work is consulted.
|
| 122 |
+
|
| 123 |
+
It has turned out that comparing annotations
|
| 124 |
+
involves significantly more effort than annotation
|
| 125 |
+
proper. As we do not want to abandon the annotateand-compare strategy, additional effort has been put
|
| 126 |
+
into the development of tools supporting the comparison of annotated structures (see section 4).
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
3 Automation
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
(1)
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
**Selbst** **besucht**
|
| 137 |
+
|
| 138 |
+
ADV VVPP
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
himself **visited**
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
**hat** **Peter** **Sabine**
|
| 146 |
+
|
| 147 |
+
**VAFIN** **NE** **NE**
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
**has** **Peter** **Sabine**
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
**never**
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
**hie**
|
| 159 |
+
## **ADV l**
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
**hie**
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
**ADV**
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
The efficiency of annotation can be significantly increased by using automatic annotation tools. Nevertheless, some form of human supervision and handcorrection is necessary to ensure sufficient reliability. As pointed out by (Marcus, Santorini, and
|
| 172 |
+
Marcinkiewicz, 1994), such a _semi-automatic_ annotation strategy turns out to be superior to purely
|
| 173 |
+
manual annotation in terms of accuracy and efficiency. Thus in most treebank projects, the task of
|
| 174 |
+
the annotators consists in correcting the output of a
|
| 175 |
+
parser, cf. (Marcus, Santorini, and Marcinkiewicz,
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
1994), (Black et al., 1996).
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
As for our project, the unavailability of
|
| 184 |
+
broad-coverage argument-structure and dependency
|
| 185 |
+
parsers made us adopt a bootstrapping strategy.
|
| 186 |
+
Having started with completely manual annotation,
|
| 187 |
+
we axe gradually increasing the degree of automation. The corpus annotated so far serves as training material for annotation tools based on statistical NLP methods, and the degree of automation
|
| 188 |
+
increases with the amount of annotated sentences.
|
| 189 |
+
|
| 190 |
+
Automatic processing and manual input are combined interactively: the annotator specifies some information, another piece of information is added automatically, the annotator adds new information or
|
| 191 |
+
corrects parts of the structure, new parts are added
|
| 192 |
+
automatically, and so on. The size and type of such
|
| 193 |
+
annotation increments depends on the size of the
|
| 194 |
+
training corpus. Currently, manual annotation consists in specifying the hierarchical structure, whereas
|
| 195 |
+
category and function labels as well as simple substructures are assigned automatically. These automation steps are described in the following sections.
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
**3.1** **Tagging Grammatical Functions**
|
| 200 |
+
|
| 201 |
+
Assigning grammatical functions to a given hierarchical structure is based on a generalization of standard paxt-of-speech tagging techniques.
|
| 202 |
+
|
| 203 |
+
In contrast to a standard probabilistic POS tagger (e.g. (Cutting et al., 1992; Feldweg, 1995)), the
|
| 204 |
+
tagger for grammatical functions works with lexical
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
_'Peter never visited Sabine himself'_
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
Figure 2: Example sentence
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
and contextual probability measures _PO.(')_ depending on the category of a mother node (Q). This additional parameter is necessary since the sequence of
|
| 215 |
+
grammatical functions depends heavily on the type
|
| 216 |
+
of phrase in which it occurs. Thus each category (S,
|
| 217 |
+
VP, NP, PP etc.) defines a separate Markov model.
|
| 218 |
+
|
| 219 |
+
Under this perspective, categories of daughter
|
| 220 |
+
nodes correspond to the outputs of a Markov model
|
| 221 |
+
(i.e., like words in POS tagging). Grammatical functions can be viewed as states of the model, analogously to tags in a standard part-of-speech tagger.
|
| 222 |
+
|
| 223 |
+
Given a sequence of word and phrase categories
|
| 224 |
+
T = T1...Tk and a parent category Q, we calculate the sequence of grammatical functions G =
|
| 225 |
+
G1... Gk that link T and Q as
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
_axgmax PQ( a[T)_ (1)
|
| 229 |
+
G
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
_PQ(G). Po(TIG)_
|
| 233 |
+
= axgmax
|
| 234 |
+
_a_ _PQ(T)_
|
| 235 |
+
|
| 236 |
+
= axgmaxPo(a ) • _Pq(TIG)_
|
| 237 |
+
|
| 238 |
+
G
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
Assuming the Markov property we have
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
k
|
| 245 |
+
_PQ(TIG) = I"I PQ(T~IG,)_ _(2)_
|
| 246 |
+
|
| 247 |
+
i----1
|
| 248 |
+
and (using a trigram model)
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
k
|
| 252 |
+
_**po(G) : IX Po(V, IGi-2, G,-1)**_ _**(a)**_
|
| 253 |
+
|
| 254 |
+
i=1
|
| 255 |
+
|
| 256 |
+
The contexts are smoothed by linear interpolation
|
| 257 |
+
of unigrams, bigrams, and trigrams. Their weights
|
| 258 |
+
are calculated by deleted interpolation (Brown et al.,
|
| 259 |
+
1992).
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
_Brants and Skut_ 50 _Automation of Treebank.4nnotation_
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
The structure of a sample sentence is shown jn
|
| 267 |
+
figure 2. Here, the probability of the S node having
|
| 268 |
+
this particular sequence of children is calculated as
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
_Ps(G,T)_ _=_ Ps(OCl$,$)-Ps(VPlOC)
|
| 272 |
+
|
| 273 |
+
- Ps(HDI$, OC). Ps(VAFINIHD)
|
| 274 |
+
|
| 275 |
+
- Ps(SBIOC, HD)-Ps(NEISB )
|
| 276 |
+
|
| 277 |
+
-Ps(NGIHD, SB)- Ps(ADVING )
|
| 278 |
+
|
| 279 |
+
($ indicates the start of the sequence).
|
| 280 |
+
|
| 281 |
+
The predictions of the tagger are correct in approx. 94% of all cases. During the annotation process this is further increased by exploiting a precision/recall trade-off (cf. section 3.5).
|
| 282 |
+
|
| 283 |
+
3.2 Tagging Phrasal Categories
|
| 284 |
+
|
| 285 |
+
The second level of automation is the recognition of
|
| 286 |
+
phrasal categories, which frees the annotator from
|
| 287 |
+
typing phrase labels. The task is performed by an
|
| 288 |
+
extension of the grammatical function tagger presented in the previous section.
|
| 289 |
+
|
| 290 |
+
Recall that each phrasal category defines a different Markov model. Given the categories of the
|
| 291 |
+
children nodes in a phrase, we can run these models
|
| 292 |
+
in parallel. The model that assigns the most probable sequence of grammatical functions determines
|
| 293 |
+
the category label to be assigned to the parent node.
|
| 294 |
+
|
| 295 |
+
Formally, we calculate the phrase category Q (and
|
| 296 |
+
at the same time the sequence of grammatical functions G = G1 ... Gk) on the basis of the sequence of
|
| 297 |
+
daughters 7" = T1 ... Tk with
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
E~
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
em in Tel Aviv **lebender** Dichter
|
| 305 |
+
ART APPIq NE NE ADJA NN
|
| 306 |
+
|
| 307 |
+
**1** ---- -- 0 4--1. **+**
|
| 308 |
+
|
| 309 |
+
a in Tel Aviv living poet
|
| 310 |
+
|
| 311 |
+
_'a poet living in Tel Aviv'_
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
Figure 3: Structural tags
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
(Ratnaparkhi, 1997) uses an iterative procedure to
|
| 318 |
+
assign two types of tags _(start X_ and _join X,_ where
|
| 319 |
+
X denotes the type of the phrase) combined with a
|
| 320 |
+
process to build trees.
|
| 321 |
+
|
| 322 |
+
We go one step further and assign simple structures in one pass. Furthermore, the nodes and
|
| 323 |
+
branches of these tree chunks have to be assigned
|
| 324 |
+
category and function labels.
|
| 325 |
+
|
| 326 |
+
The basic idea is to encode structures of limited depth using a finite number of tags. Given a
|
| 327 |
+
sequence of words (w0, wl .... wn/, we consider the
|
| 328 |
+
structural relation ri holding between _wi_ and _wi-1_
|
| 329 |
+
for 1 < i < n. For the recognition of NPs and PPs,
|
| 330 |
+
it is sufficient to distinguish the following seven values of rl which uniquely identify sub-structures of
|
| 331 |
+
limited depth.
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
argmax _maxPQ(GIT)._
|
| 336 |
+
Q 6
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
This procedure can also be performed using one
|
| 340 |
+
large {combined) Markov model that enables a very
|
| 341 |
+
efficient calculation of the maximum.
|
| 342 |
+
|
| 343 |
+
The overall accuracy of this approach is 95%.
|
| 344 |
+
|
| 345 |
+
3.3 Tagging Hierarchical **Structure**
|
| 346 |
+
|
| 347 |
+
The next automation step is the recognition of syntactic structures. In general, this task is much more
|
| 348 |
+
difficult than assigning category and function labels,
|
| 349 |
+
and requires a significantly larger training corpus
|
| 350 |
+
than the one currently available. What can be done
|
| 351 |
+
at the present stage is the recognition of relatively
|
| 352 |
+
simple structures such as NPs and PPs.
|
| 353 |
+
|
| 354 |
+
(Church, 1988) used a simple mechanism to mark
|
| 355 |
+
the boundaries of NPs. He used part-of-speech tagging and added two flags to the part-of-speech tags
|
| 356 |
+
to mark the beginning and the end of an NP.
|
| 357 |
+
|
| 358 |
+
Our goal is more ambitious in that we mark not
|
| 359 |
+
only the phrase boundaries of NPs but also the complete structure of a wider class of phrases, starting
|
| 360 |
+
with APs, NPs and PPs.
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
If more than one of the conditions above are met,
|
| 365 |
+
the first of the corresponding tags in the list is assigned. A structure tagged with these symbols is
|
| 366 |
+
shown in figure 3.
|
| 367 |
+
|
| 368 |
+
In addition, we encode the POS tag ti assigned to
|
| 369 |
+
w~. On the basis of these two pieces of information
|
| 370 |
+
we define _structural tags as_ pairs Si = (ri, _ti)._ Such
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
ri -
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
0 if _parent(wi) =parent(wi_l)_
|
| 378 |
+
+ if _parent(wi) =parent2(wi_l)_
|
| 379 |
+
++ if _parent(wi) = parentZ(wi_a)_
|
| 380 |
+
|
| 381 |
+
- if _parent2(wi) =parent(wi_l)_
|
| 382 |
+
-- if _parentZ(wi) = parent(wi_l)_
|
| 383 |
+
= if _parent2(wi) = parentg-(wi_l)_
|
| 384 |
+
1 else
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
_Brants and Skut_ _51_ _Automation of Treebank Annotation_
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
tags constitute a finite alphabet of symbols describing the structure and syntactic category of phrases
|
| 392 |
+
of depth < 3.
|
| 393 |
+
|
| 394 |
+
The task is to assign the most probable sequence
|
| 395 |
+
of structural tags ((So, $1, ..., Sn)) to a sequence of
|
| 396 |
+
part-of-speech tags _(To, T1, ..., Tn)._
|
| 397 |
+
|
| 398 |
+
Given a sequence of part-of-speech tags T =
|
| 399 |
+
T1 ... T~, we calculate the sequence of structural tags
|
| 400 |
+
S = $1 ... Sk such that
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
_argmax P( S]T)_ (4)
|
| 404 |
+
s
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
_P(S) - P(TIS)_
|
| 408 |
+
= argmax
|
| 409 |
+
_s_ _P(T)_
|
| 410 |
+
|
| 411 |
+
= argmaxP(S). _P(TIS)_
|
| 412 |
+
|
| 413 |
+
S
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
The part-of-speech tags are encoded in the structural tag (t), so S uniquely determines T. Therefore,
|
| 417 |
+
we have _P(T[S)_ = 1 ifTi = ii and 0 otherwise, which
|
| 418 |
+
simplifies calculations:
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
argmax _P(S). P(T[S)_ (5)
|
| 422 |
+
s
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
= argmax H _P(SiISi-2, Si-1)P(TdSO_
|
| 426 |
+
|
| 427 |
+
S i=1
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
As in the previous models, the contexts are
|
| 431 |
+
smoothed by linear interpolation of unigrams, bigrams, and trigrams. Their weights are calculated
|
| 432 |
+
by deleted interpolation.
|
| 433 |
+
|
| 434 |
+
This _chunk tagging_ technique can be applied to
|
| 435 |
+
treebank annotation in two ways. Firstly, we could
|
| 436 |
+
use it as a preprocessor; the annotator would then
|
| 437 |
+
complete and correct the output of the chunk tagger.
|
| 438 |
+
|
| 439 |
+
The second alternative is to combine this chunking
|
| 440 |
+
with manual input in an interactive way. Then the
|
| 441 |
+
annotator has to determine the boundaries of the
|
| 442 |
+
sub-structure that is to be build by the program.
|
| 443 |
+
|
| 444 |
+
Obviously, the second solution is favorable since
|
| 445 |
+
the user supplies information about chunk boundaries, while in the preprocessing mode the tagger has
|
| 446 |
+
to find both the boundaries and the internal structure of the chunks.
|
| 447 |
+
|
| 448 |
+
The assignment of structural tags is correct in
|
| 449 |
+
more than 94% of the cases. For detailed results
|
| 450 |
+
see section 3.6.3.
|
| 451 |
+
|
| 452 |
+
|
| 453 |
+
**3.4** **Interaction and Alternation**
|
| 454 |
+
|
| 455 |
+
To illustrate the interaction of manual input and the
|
| 456 |
+
automatic annotation techniques described above,
|
| 457 |
+
we show the way in which the structure in figure
|
| 458 |
+
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
3 is constructed. The current version of the annotation tool supports automatic assignment of category
|
| 462 |
+
and phrase labels, so the user has to specify the hierarchical structure step by step 2.
|
| 463 |
+
|
| 464 |
+
The starting point is the plain string of words together with their part-of-speech tags. The annotator first selects the words _Tel Aviv_ and executes the
|
| 465 |
+
command "group" (this is all done with the mouse).
|
| 466 |
+
Then the program inserts the category label MPN
|
| 467 |
+
(multi-lexeme proper noun) and assigns the grammatical function PNC (proper noun component) to
|
| 468 |
+
both words (cf. sections 3.2 and 3.1).
|
| 469 |
+
|
| 470 |
+
Having completed the first sub-structure, the annotator selects the newly created MPN and the
|
| 471 |
+
preposition _in,_ and creates a new phrase. The
|
| 472 |
+
tool automatically inserts the phrase label PP and
|
| 473 |
+
the grammatical functions AC (adpositional case
|
| 474 |
+
marker) and NK (noun kernel component). The following two steps are to determine the components
|
| 475 |
+
of the AP and, finally, those of the NP.
|
| 476 |
+
|
| 477 |
+
At any time, the annotator has the opportunity
|
| 478 |
+
to change and correct entries made by the program.
|
| 479 |
+
|
| 480 |
+
This interactive annotation mode is favorable
|
| 481 |
+
from the point of view of consistency checking. The
|
| 482 |
+
first reason is that the annotation increments are
|
| 483 |
+
rather small, so the annotator corrects not an entire
|
| 484 |
+
parse tree, but a fairly simple local structure. The
|
| 485 |
+
automatic assignment of phrase and function labels
|
| 486 |
+
is generally more reliable than manual input because
|
| 487 |
+
it is free of typically human errors (see the precision
|
| 488 |
+
results in (Brants, Skut, and Krenn, 1997)). Thus
|
| 489 |
+
the annotator can concentrate on the more difficult
|
| 490 |
+
task, i.e., building complex syntactic structures.
|
| 491 |
+
|
| 492 |
+
The second reason is that errors corrected at
|
| 493 |
+
lower levels in the structure facilitate the recognition of structures at higher levels, thus many wrong
|
| 494 |
+
readings are excluded by confirming or correcting a
|
| 495 |
+
choice at a lower level.
|
| 496 |
+
|
| 497 |
+
The partial automation of the annotation process
|
| 498 |
+
(automatic regocnition of phrase labels and grammatical functions) has reduced the average annotation time from about 10 to 1.5 - 2 minutes per
|
| 499 |
+
sentence, i.e. 600 - 800 tokens per minute, which
|
| 500 |
+
is comparable to the figures published by the creators of the Penn Treebank in (Marcus, Santorini,
|
| 501 |
+
and Marcinkiewicz, 1994).
|
| 502 |
+
|
| 503 |
+
The test version of the annotation tool using the
|
| 504 |
+
statistical chunking technique described in section
|
| 505 |
+
3.3 permits even larger annotation increments and
|
| 506 |
+
we expect a further increase in annotation speed.
|
| 507 |
+
The user just has to select the words constituting an
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
~The chunk tagger has not yet been fully integrated
|
| 511 |
+
into the annotation **tool.**
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
_Brants and Skut_ 52 _Automation of Treebank Annotation_
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
NP or PP. The program assigns a sequence of structural tags to them; these tags are then converted to
|
| 519 |
+
a tree structure and all labels are inserted.
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
3.5 tteliability
|
| 523 |
+
|
| 524 |
+
To make automatic annotation more reliable, the
|
| 525 |
+
program assigning labels performs an additional reliability check. We do not only calculate the best
|
| 526 |
+
assignment, but also the second-best alternative and
|
| 527 |
+
its probability. If the probability of the alternative
|
| 528 |
+
comes very close to that of the best sequence of labels, we regard the choice as unreliable, and the annotator is asked for confirmation.
|
| 529 |
+
|
| 530 |
+
Currently, we employ three reliability levels, expressed by quotients of probabilities _Pbest/Psecond-_
|
| 531 |
+
If this quotient is close to one (i.e., smaller than
|
| 532 |
+
some threshold 01), the decision counts as unreliable, and annotation is left to the annotator. If the
|
| 533 |
+
quotient is very large (i.e., greater than some threshold 02 > 91), the decision is regarded as reliable and
|
| 534 |
+
the respective annotation is made by the program.
|
| 535 |
+
|
| 536 |
+
If the quotient fails between 91 and 02, the decision
|
| 537 |
+
is tagged as "almost reliable". The annotation is
|
| 538 |
+
inserted by the program, but has to be confirmed by
|
| 539 |
+
the annotator.
|
| 540 |
+
|
| 541 |
+
This method enables the detection of a number of
|
| 542 |
+
errors that are likely to be missed if the annotator
|
| 543 |
+
is not asked for confirmation.
|
| 544 |
+
|
| 545 |
+
The results of using these reliability levels are reported in the experiments section below.
|
| 546 |
+
|
| 547 |
+
**3.6** **Experiments**
|
| 548 |
+
|
| 549 |
+
This section reports on the accuracy achieved by the
|
| 550 |
+
methods described in the previous sections.
|
| 551 |
+
|
| 552 |
+
At present, our corpus contains approx. 6300 sentences (115,000 tokens) of German newspaper text
|
| 553 |
+
(Frankfurter Rundschan). Results of tagging grammatical functions and phrase categories have improved slightly compared to those reported for a
|
| 554 |
+
smaller corpus of approx. 1200 sentences (Brants,
|
| 555 |
+
Skut, and Krenn, 1997). Accuracy figures for tagging the hierarchical structure are published for the
|
| 556 |
+
first time.
|
| 557 |
+
|
| 558 |
+
For each experiment, the corpus was divided into
|
| 559 |
+
two disjoint parts: 90% training data and 10% test
|
| 560 |
+
data. This procedure was repeated ten times, and
|
| 561 |
+
the results were averaged.
|
| 562 |
+
|
| 563 |
+
The thresholds 01 and 02 determining the reliability levels were set to 91 = 5 and 02 = 100.
|
| 564 |
+
```
|
| 565 |
+
3.6.1 Grammatical Functions
|
| 566 |
+
We employ the technique described in section 3.1
|
| 567 |
+
to assign grammatical functions to a structure defined by an annotator. Grammatical functions are
|
| 568 |
+
|
| 569 |
+
```
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
Table 1: Levels of reliability and the percentage of
|
| 573 |
+
cases in which the tagger assigned a correct grammatical function (or would have assigned ifa decision
|
| 574 |
+
had been forced).
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
|
| 578 |
+
_grammatical_
|
| 579 |
+
_function_
|
| 580 |
+
|
| 581 |
+
reliable
|
| 582 |
+
marked
|
| 583 |
+
unreliable
|
| 584 |
+
overall
|
| 585 |
+
|
| 586 |
+
|
| 587 |
+
```
|
| 588 |
+
cases correct
|
| 589 |
+
```
|
| 590 |
+
|
| 591 |
+
88% 97.0%
|
| 592 |
+
8% 85.0%
|
| 593 |
+
4% 59.5%
|
| 594 |
+
100% 94.6%
|
| 595 |
+
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
Table 2: Levels of reliability and the percentage of
|
| 599 |
+
cases in which the tagger assigned a correct phrase
|
| 600 |
+
category (or would have assigned it if a decision had
|
| 601 |
+
been forced).
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
_phrase_
|
| 606 |
+
|
| 607 |
+
_category_
|
| 608 |
+
|
| 609 |
+
reliable
|
| 610 |
+
marked
|
| 611 |
+
unreliable
|
| 612 |
+
overall
|
| 613 |
+
|
| 614 |
+
|
| 615 |
+
```
|
| 616 |
+
cases correct
|
| 617 |
+
```
|
| 618 |
+
|
| 619 |
+
76% 99.0%
|
| 620 |
+
19% 91.5%
|
| 621 |
+
5% 56.7%
|
| 622 |
+
100% 95.4%
|
| 623 |
+
|
| 624 |
+
|
| 625 |
+
|
| 626 |
+
represented by edge labels. Additionally, we exploit
|
| 627 |
+
the recall/accuracy tradeoff as described in section
|
| 628 |
+
3.5. The tagset of grammatical functions consists of
|
| 629 |
+
45 tags.
|
| 630 |
+
|
| 631 |
+
Tagging results are shown in table 1. Overall accuracy is 94.6%. 88% of all predictions are classified
|
| 632 |
+
as reliable, which is the most important class for
|
| 633 |
+
the actual annotation task. Accuracy in this class
|
| 634 |
+
is 97.0%. It depends on the category of the phrase,
|
| 635 |
+
e.g. accuracy for reliable cases reaches 99% for 51Ps
|
| 636 |
+
and PPs.
|
| 637 |
+
|
| 638 |
+
**3.6.2** **Phrasal Categories**
|
| 639 |
+
|
| 640 |
+
Now the task is to assign phrasal categories to a
|
| 641 |
+
structure specified by the annotator, i.e., only the
|
| 642 |
+
hierarchical structure is given. We employ the technique of competing Markov models as described in
|
| 643 |
+
```
|
| 644 |
+
section 3.2 to assign phrase categories to the structure. Additionally, we compute alternatives to assign one of the three reliability levels to each decision
|
| 645 |
+
as described in section 3.5. The tagset for phrasal
|
| 646 |
+
categories consists of 25 tags.
|
| 647 |
+
As can be seen from table 2, the results of assigning phrasal categories are even better than those of
|
| 648 |
+
assigning grammatical functions. Overall accuracy
|
| 649 |
+
is 95.4%. Tags that are regarded as reliable (76% of
|
| 650 |
+
all cases) have an accuracy of 99.0%, which results
|
| 651 |
+
|
| 652 |
+
```
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
_Brants and Skut_ 53 _Automation of Treebank Annotation_
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
Table 3: Chunk tagger accuracy with respect to hierarchical structure.
|
| 659 |
+
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
proc compare(A, B)
|
| 663 |
+
```
|
| 664 |
+
for each non-terminal node X in A:
|
| 665 |
+
search node Y in B
|
| 666 |
+
such that yield(X) = yield(Y)
|
| 667 |
+
```
|
| 668 |
+
|
| 669 |
+
if `Y exists:`
|
| 670 |
+
```
|
| 671 |
+
emit different labels if any
|
| 672 |
+
if Y does not exist:
|
| 673 |
+
emit X and its yield
|
| 674 |
+
end
|
| 675 |
+
end
|
| 676 |
+
|
| 677 |
+
```
|
| 678 |
+
|
| 679 |
+
Figure 4: Basic asymmetric algorithm to compare
|
| 680 |
+
annotation A with annotation B of the same sentence
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
(Calder, 1997) presents a method of comparing
|
| 684 |
+
the structure of context free trees found in different annotations. This section presents an extension
|
| 685 |
+
of this algorithm that compares predicate-argument
|
| 686 |
+
structures possibly containing crossing branches (cf.
|
| 687 |
+
figure 2). Node and edge labels, representing phrasal
|
| 688 |
+
categories and grammatical functions, are also taken
|
| 689 |
+
into account.
|
| 690 |
+
|
| 691 |
+
Phrasal (non-terminal) nodes are compared on
|
| 692 |
+
the basis of their yields: the yield of a nonterminal node X in an annotation A is the ordered set
|
| 693 |
+
of terminals that are (directly or indirectly) dominated by X. The yield need not be contiguous
|
| 694 |
+
since predicate-argument structures allow discontinuous constituents.
|
| 695 |
+
|
| 696 |
+
If both annotations contain nonterminal nodes
|
| 697 |
+
that cover the same terminal nodes, the labels of the
|
| 698 |
+
nonterminal nodes and their edges are compared.
|
| 699 |
+
|
| 700 |
+
This results in a combined measure of structural
|
| 701 |
+
and labeling differences, which is very useful in
|
| 702 |
+
cleaning the corpus and keeping track of the development of the treebank.
|
| 703 |
+
|
| 704 |
+
We use the basic algorithm shown in figure 4 to
|
| 705 |
+
determine the differences in two annotations A and
|
| 706 |
+
B. The basic form is asymmetric. Therefore, a complete comparison consists of two runs, one for each
|
| 707 |
+
direction, and the outputs of both runs are combined.
|
| 708 |
+
|
| 709 |
+
Figures 5 and 6 show examples of the output of
|
| 710 |
+
the algorithm. These outputs can be directly used
|
| 711 |
+
to mark the corresponding nodes and edges.
|
| 712 |
+
|
| 713 |
+
The yield is sufficient to uniquely determine corresponding nodes since the annotations used here do
|
| 714 |
+
not contain unary branching nodes. If unary branching occurs, both the parent and the child have the
|
| 715 |
+
same terminal yield and further mechanism to determine corresponding nodes are needed. (Calder,
|
| 716 |
+
|
| 717 |
+
1997) points out possible solutions to this problem.
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
_structural_
|
| 722 |
+
_tags_
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
reliable
|
| 726 |
+
marked
|
| 727 |
+
unreliable
|
| 728 |
+
overall
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
|
| 732 |
+
cases correct
|
| 733 |
+
|
| 734 |
+
|
| 735 |
+
86% 95.8%
|
| 736 |
+
11% 93.2%
|
| 737 |
+
3% 67.0%
|
| 738 |
+
100% 94.4%
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
|
| 742 |
+
in very reliable annotations.
|
| 743 |
+
|
| 744 |
+
|
| 745 |
+
3.6.3 Chunk Tagger
|
| 746 |
+
|
| 747 |
+
The chunk tagger described in section 3.3 assigns
|
| 748 |
+
tags encoding structural information to a sequence
|
| 749 |
+
of words and tags. The accuracy figures presented
|
| 750 |
+
here refer to the correct assignments of these tags
|
| 751 |
+
(see table 3).
|
| 752 |
+
|
| 753 |
+
The assignment of structural tags allows us to construct a tree; the labels are afterwards assigned in
|
| 754 |
+
a bottom-up fashion by the function/category label
|
| 755 |
+
tagger described in earlier sections.
|
| 756 |
+
|
| 757 |
+
Overall accuracy is 94.4% and reaches 95.8% in
|
| 758 |
+
the reliable cases.
|
| 759 |
+
|
| 760 |
+
A different measure of the chunker's correctness is
|
| 761 |
+
the percentage of _complete phrases_ recognized correctly. In order to determine this percentage, we
|
| 762 |
+
extracted all chunks of the maximal depth recognizable by the chunker. In a cross evaluation, 87.3% of
|
| 763 |
+
these chunks were recognized correctly as far as the
|
| 764 |
+
hierarchical structure is concerned.
|
| 765 |
+
|
| 766 |
+
|
| 767 |
+
4 Comparing Trees
|
| 768 |
+
|
| 769 |
+
|
| 770 |
+
Annotations produced by different annotators are
|
| 771 |
+
compared automatically and differences are marked.
|
| 772 |
+
The output of the comparison is given to the annotators. First, each of the annotators goes through
|
| 773 |
+
the differences on his own and corrects obvious errors. Then remaining differences are resolved in a
|
| 774 |
+
discussion of the annotators.
|
| 775 |
+
|
| 776 |
+
Additionally, the program calculates the probabilities of the two different annotations. This is intended to be a first step towards resolving conflicting
|
| 777 |
+
annotations automatically. Both parts, tree matching and the calculation of probabilities for complete
|
| 778 |
+
trees are described in the following sections.
|
| 779 |
+
|
| 780 |
+
|
| 781 |
+
4.1 Tree Matching
|
| 782 |
+
|
| 783 |
+
The problem addressed here is the comparison of
|
| 784 |
+
two syntactic structures that share identical terminal nodes (the words of the annotated sentence).
|
| 785 |
+
|
| 786 |
+
|
| 787 |
+
|
| 788 |
+
_Brants and Skut_ 54 _Automation of Treebank Annotation_
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
# **/2 t- t**
|
| 792 |
+
|
| 793 |
+
**Selbst** **besucht** **hat** **Peter**
|
| 794 |
+
0 1 2 3
|
| 795 |
+
ADV VVPP VAFIN NE
|
| 796 |
+
|
| 797 |
+
|
| 798 |
+
### ++
|
| 799 |
+
|
| 800 |
+
**Sabine** **nie**
|
| 801 |
+
4 5
|
| 802 |
+
NE ADV
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
|
| 806 |
+
4.2 Probabilities
|
| 807 |
+
|
| 808 |
+
The probabilities of each sub-structure of depth one
|
| 809 |
+
are calculated separately according to the model described in sections 3.1 and 3.2. Subsequently, the
|
| 810 |
+
product of these probabilities is used as a scoring
|
| 811 |
+
function for the complete structure• This method is
|
| 812 |
+
based on the assumption that productions at different levels in a structure are independent, which is
|
| 813 |
+
inherent to context free rules.
|
| 814 |
+
|
| 815 |
+
Using the formulas from sections 3.1 and 3.2, the
|
| 816 |
+
probability _P(A)_ of an annotation A is evaluated as
|
| 817 |
+
|
| 818 |
+
|
| 819 |
+
_P(A) = HP(Qi)_
|
| 820 |
+
|
| 821 |
+
_i=l_
|
| 822 |
+
_nnt_
|
| 823 |
+
**=** **H PQ,(T,, G,)**
|
| 824 |
+
i--1
|
| 825 |
+
|
| 826 |
+
_rtnt ki_
|
| 827 |
+
_**= 1] 1]**_ _Poi(gi,ylg,,~-2,_ g/,~-l)
|
| 828 |
+
|
| 829 |
+
i=lj=l
|
| 830 |
+
|
| 831 |
+
**• PQ(ti,y I gij)**
|
| 832 |
+
|
| 833 |
+
|
| 834 |
+
|
| 835 |
+
himself visited has Peter **Sabine**
|
| 836 |
+
|
| 837 |
+
_'Peter never visited Sabine himself'_
|
| 838 |
+
|
| 839 |
+
```
|
| 840 |
+
sentence I errors I
|
| 841 |
+
(1) structure: 500 VP lOCI 0 1 4
|
| 842 |
+
|
| 843 |
+
```
|
| 844 |
+
|
| 845 |
+
|
| 846 |
+
never
|
| 847 |
+
|
| 848 |
+
|
| 849 |
+
```
|
| 850 |
+
(Selbst besucht Sabine)
|
| 851 |
+
(2) structure: 500 VP lOCI 0 I 4 S
|
| 852 |
+
(Selbst besucht Sabine hie)
|
| 853 |
+
|
| 854 |
+
```
|
| 855 |
+
|
| 856 |
+
Figure 5: Erroneous annotation (2) of the example
|
| 857 |
+
sentence in figure 2 _(hie_ should be attached to S
|
| 858 |
+
instead of VP), together with the output of the tree
|
| 859 |
+
comparison algorithm• All nodes are numbered to
|
| 860 |
+
enable identification. Additionally, this output can
|
| 861 |
+
be used to highlight the corresponding nodes and
|
| 862 |
+
edges.
|
| 863 |
+
|
| 864 |
+
|
| 865 |
+
|
| 866 |
+
(3)
|
| 867 |
+
|
| 868 |
+
|
| 869 |
+
**Selbst**
|
| 870 |
+
|
| 871 |
+
0
|
| 872 |
+
ADV
|
| 873 |
+
|
| 874 |
+
|
| 875 |
+
himself
|
| 876 |
+
|
| 877 |
+
|
| 878 |
+
|
| 879 |
+
**besucht** **hat** **Peter** **Sabine**
|
| 880 |
+
1 2 3 4
|
| 881 |
+
VVPP VAFIN NE NE
|
| 882 |
+
|
| 883 |
+
|
| 884 |
+
**visited** has Peter Sabine
|
| 885 |
+
|
| 886 |
+
_'Peter never visited Sabine himself'_
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
# **?**
|
| 890 |
+
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
**nie**
|
| 894 |
+
|
| 895 |
+
|
| 896 |
+
|
| 897 |
+
5
|
| 898 |
+
ADV
|
| 899 |
+
|
| 900 |
+
|
| 901 |
+
|
| 902 |
+
A annotation (structure) for a sentence
|
| 903 |
+
_nnt_ number of nonterminal nodes in A
|
| 904 |
+
_nt_ number of terminal nodes in A
|
| 905 |
+
n number of nodes = _nnt + nt_
|
| 906 |
+
Qi ith phrase in A
|
| 907 |
+
T/ sequence of tags in _Qi_
|
| 908 |
+
_Gi_ sequence of gramm, func. in Qi
|
| 909 |
+
ki number of elements in Qi
|
| 910 |
+
_tij_ tag of jth child in Qi
|
| 911 |
+
_gl,i_ grammatical function of jth
|
| 912 |
+
child in _Qi_
|
| 913 |
+
Probabilities computed in this way cannot be used
|
| 914 |
+
directly to compare two annotations since they favor
|
| 915 |
+
annotations with fewer nodes. Each new nonterminal node introduces a new element in the product
|
| 916 |
+
and makes it smaller.
|
| 917 |
+
|
| 918 |
+
Therefore, we normalize the probabilities w.r.t.
|
| 919 |
+
the number of nodes in the annotation, which yields
|
| 920 |
+
the perplexity _PP(A)_ of an annotation A:
|
| 921 |
+
|
| 922 |
+
|
| 923 |
+
|
| 924 |
+
never
|
| 925 |
+
|
| 926 |
+
|
| 927 |
+
|
| 928 |
+
**`sentence`** **1** **`errors`** **1**
|
| 929 |
+
```
|
| 930 |
+
(1) edge: 5 (ADV) [NG] nie
|
| 931 |
+
(3) edge: 5 (ADV) [MO] hie
|
| 932 |
+
|
| 933 |
+
```
|
| 934 |
+
|
| 935 |
+
Figure 6: Erroneous annotation (3) of the example
|
| 936 |
+
sentence in figure 2 _(nie_ should have grammatical
|
| 937 |
+
function NG instead of MO), together with the output of the tree comparison algorithm.
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
_PP(A)=~'p~A)_ (6)
|
| 942 |
+
|
| 943 |
+
|
| 944 |
+
4.3 Application to a Corpus
|
| 945 |
+
|
| 946 |
+
The procedures of tree matching and probability calculation were applied to our corpus, which currently
|
| 947 |
+
consists of approx. 6300 sentences (115,000 tokens)
|
| 948 |
+
of German newspaper text, each sentence annotated
|
| 949 |
+
at least twice.
|
| 950 |
+
|
| 951 |
+
We measured the agreement of independent annotations after first annotation but before correction
|
| 952 |
+
|
| 953 |
+
|
| 954 |
+
|
| 955 |
+
_Brants and Skut_ 55 _Automation of Treebank Annotation_
|
| 956 |
+
|
| 957 |
+
|
| 958 |
+
Table 4: Comparison of independent semi-automatic
|
| 959 |
+
annotations (1) after first, independent annotation
|
| 960 |
+
and (2) after comparison but before the final discussion (current stage).
|
| 961 |
+
|
| 962 |
+
|
| 963 |
+
|
| 964 |
+
Table 5: Using model perplexities to compare different annotations: Accuracy of using the hypothesis that a correct annotation has a lower perplexity
|
| 965 |
+
than a wrong annotation.
|
| 966 |
+
|
| 967 |
+
recall precision
|
| 968 |
+
30% 95.3%
|
| 969 |
+
45% 92.2%
|
| 970 |
+
60% 88.6%
|
| 971 |
+
85% 81.4%
|
| 972 |
+
100% 65.8%
|
| 973 |
+
|
| 974 |
+
|
| 975 |
+
the whole annotation to be wrong and the sentence
|
| 976 |
+
counts as an error.
|
| 977 |
+
|
| 978 |
+
If we make the assumption that a correct annotation always has a lower perplexity than a wrong
|
| 979 |
+
annotation for the same sentence, the system would
|
| 980 |
+
make a correct decision for 65.8% of the sentences
|
| 981 |
+
(see table 5, last row).
|
| 982 |
+
|
| 983 |
+
For approx. 70% of all sentences, at least one
|
| 984 |
+
of the initial annotations was completely correct.
|
| 985 |
+
This means that the two initial annotations and the
|
| 986 |
+
automatic comparison yield a corpus with approx.
|
| 987 |
+
65.8% × 70% = 46% completely correct annotations
|
| 988 |
+
(complete structure and all tags).
|
| 989 |
+
|
| 990 |
+
One can further increase precision at the cost of
|
| 991 |
+
recall by requiring the difference in perplexity to exceed some minimum distance. This precision/recall
|
| 992 |
+
tradeoff is also shown in table 5.
|
| 993 |
+
|
| 994 |
+
|
| 995 |
+
5 Conclusion
|
| 996 |
+
|
| 997 |
+
The techniques and automatic tools described in this
|
| 998 |
+
paper are designed to support annotation proper,
|
| 999 |
+
online/offline consistency checking and the comparison of independent annotations of the same sentences. Most of the techniques employ stochastic
|
| 1000 |
+
processing methods, which guarantee high accuracy
|
| 1001 |
+
and robustness.
|
| 1002 |
+
|
| 1003 |
+
The bootstrapping approach adopted in our
|
| 1004 |
+
project makes the degree of automation a function of
|
| 1005 |
+
available training data. Easier processing tasks are
|
| 1006 |
+
automated first. Experience gained and data annotated at a lower level allow to increase the level of
|
| 1007 |
+
automation step by step. The current size of our
|
| 1008 |
+
corpus (approx. 6300 sentences) enables reliable automatic assignment of category and function labels
|
| 1009 |
+
as well as simple structures.
|
| 1010 |
+
|
| 1011 |
+
Future work will be concerned with developing
|
| 1012 |
+
automatic annotation methods handling complex
|
| 1013 |
+
structures, which should ultimately lead to the development of a parser for predicate-argument trees
|
| 1014 |
+
containing crossing branches.
|
| 1015 |
+
|
| 1016 |
+
|
| 1017 |
+
|
| 1018 |
+
word level:
|
| 1019 |
+
(1) ident, parent node
|
| 1020 |
+
(2) ident, gram. func.
|
| 1021 |
+
node level:
|
| 1022 |
+
(3) identical nodes
|
| 1023 |
+
(4) identical nodes/labels
|
| 1024 |
+
(5) ident, node/gram, func.
|
| 1025 |
+
**sentence** level:
|
| 1026 |
+
(6) identical structure
|
| 1027 |
+
(7) identical annotation
|
| 1028 |
+
|
| 1029 |
+
|
| 1030 |
+
|
| 1031 |
+
92.3% 98.7%
|
| 1032 |
+
93.8% 99.1%
|
| 1033 |
+
|
| 1034 |
+
|
| 1035 |
+
87.6% 98.1%
|
| 1036 |
+
84.2% 97.4%
|
| 1037 |
+
76.6% 96.3%
|
| 1038 |
+
|
| 1039 |
+
|
| 1040 |
+
48.6% 90.8%
|
| 1041 |
+
34.6% 87.9%
|
| 1042 |
+
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
**<1>** **(2>**
|
| 1046 |
+
|
| 1047 |
+
|
| 1048 |
+
|
| 1049 |
+
(1), and after correction but before the final discussion (2), which is the current stage of the corpus.
|
| 1050 |
+
The results are shown in table 4.
|
| 1051 |
+
|
| 1052 |
+
As for measuring differences, we can count them
|
| 1053 |
+
at word, node and sentence level.
|
| 1054 |
+
|
| 1055 |
+
|
| 1056 |
+
|
| 1057 |
+
At the word level, we are interested in (1) the
|
| 1058 |
+
number of correctly assigned parent categories (does
|
| 1059 |
+
a word belong to a PP, NP, etc.?), and (2) the number of correctly assigned grammatical functions (is
|
| 1060 |
+
a word a head, modifier, subject, etc.?).
|
| 1061 |
+
|
| 1062 |
+
At the node level (non-terminals, phrases) we
|
| 1063 |
+
measure (3) the number of identical nodes, i.e., if
|
| 1064 |
+
there is a node in one annotation, we check whether
|
| 1065 |
+
it corresponds to a node in the other annotation having the same yield. Additionally, we count (4) the
|
| 1066 |
+
number of identical nodes having the same phrasal
|
| 1067 |
+
category, and (5) the number of identical nodes having the same phrasal category and the same grammatical function within its parent phrase.
|
| 1068 |
+
|
| 1069 |
+
|
| 1070 |
+
|
| 1071 |
+
At the sentence level, we measure (6) the number
|
| 1072 |
+
of annotated sentences having the same structure,
|
| 1073 |
+
and, which is the strictest measure, (7) the number
|
| 1074 |
+
of sentences having the same structure and the same
|
| 1075 |
+
labels (i.e., exactly the same annotation).
|
| 1076 |
+
|
| 1077 |
+
At the node level, we find 87.6% agreement in independent annotations. A large amount of the differences come from misinterpretation of the annotation guidelines by the annotators and are eliminated
|
| 1078 |
+
after comparison, which results in 98.1% agreement.
|
| 1079 |
+
This kind of comparison is the one most frequently
|
| 1080 |
+
used in the statistical parsing community for comparing parser output.
|
| 1081 |
+
|
| 1082 |
+
The sentence level is the strictest measure, and
|
| 1083 |
+
the agreement is low (34.6% identical annotations
|
| 1084 |
+
after first annotation, 87.9% after comparison). But
|
| 1085 |
+
at this level, one error (e.g. a wrong label) renders
|
| 1086 |
+
|
| 1087 |
+
|
| 1088 |
+
|
| 1089 |
+
_Brants and Skut_ 56 _Automation of Treebank Annotation_
|
| 1090 |
+
|
| 1091 |
+
|
| 1092 |
+
6 Acknowledgements
|
| 1093 |
+
|
| 1094 |
+
This work is part of the DFG Sonderforschungsbereich 378 _Resource-Adaptive Cognitive Processes,_
|
| 1095 |
+
Project C3 _Concurrent'Grammar Processing._
|
| 1096 |
+
|
| 1097 |
+
We wish to thank the universities of Stuttgart
|
| 1098 |
+
and Tiibingen for kindly providing us with a handcorrected part-of-speech tagged corpus. We also
|
| 1099 |
+
wish to thank Oliver Plaehn, who did a great job
|
| 1100 |
+
in implementing the annotation tool, and Peter
|
| 1101 |
+
Sch~ifer, who built the tree comparison tool. Special
|
| 1102 |
+
thanks go to the five annotators continually increasing the size and the quality of our corpus. And finally, we thank Sabine Kramp for proof-reading this
|
| 1103 |
+
paper.
|
| 1104 |
+
|
| 1105 |
+
|
| 1106 |
+
**References**
|
| 1107 |
+
|
| 1108 |
+
Black, Ezra, Stephen Eubank, Hideki Kashioka,
|
| 1109 |
+
|
| 1110 |
+
David Magerman, Roger Garside, and Geoffrey
|
| 1111 |
+
Leech. 1996. Beyond skeleton parsing: Producing
|
| 1112 |
+
a comprehensive large-scale general-English treebank with full grammatical analysis. In _Proc. of_
|
| 1113 |
+
|
| 1114 |
+
_COLING-96,_ pages 107-113, Kopenhagen, Denmark.
|
| 1115 |
+
|
| 1116 |
+
|
| 1117 |
+
```
|
| 1118 |
+
Appendix A: Tagsets
|
| 1119 |
+
|
| 1120 |
+
This section contains descriptions of tags used in this
|
| 1121 |
+
paper. These are not complete lists.
|
| 1122 |
+
```
|
| 1123 |
+
|
| 1124 |
+
A.1 Part-of-Speech Tags
|
| 1125 |
+
|
| 1126 |
+
We use the Stuttgart-T/ibingen-Tagset. The complete set is described in (Thielen and Schiller, 1995).
|
| 1127 |
+
|
| 1128 |
+
ADJA `attributive adjective`
|
| 1129 |
+
```
|
| 1130 |
+
ADV adverb "
|
| 1131 |
+
APPR preposition
|
| 1132 |
+
ART article
|
| 1133 |
+
```
|
| 1134 |
+
|
| 1135 |
+
NE proper noun
|
| 1136 |
+
NN `common noun`
|
| 1137 |
+
```
|
| 1138 |
+
PROAV pronominal adverb
|
| 1139 |
+
VAFIN finite auxiliary
|
| 1140 |
+
VAINF infinite auxiliary
|
| 1141 |
+
VMFIN finite modal verb
|
| 1142 |
+
VVPP past participle of main verb
|
| 1143 |
+
|
| 1144 |
+
A.2 Phrasal Categories
|
| 1145 |
+
AP adjective phrase
|
| 1146 |
+
MPN multi-word proper noun
|
| 1147 |
+
NP noun phrase
|
| 1148 |
+
PP prepositional phrase
|
| 1149 |
+
```
|
| 1150 |
+
|
| 1151 |
+
S `sentence`
|
| 1152 |
+
`VP` verb phrase
|
| 1153 |
+
|
| 1154 |
+
A.3 Grammatical Functions
|
| 1155 |
+
|
| 1156 |
+
AC adpositional case marker
|
| 1157 |
+
HD head
|
| 1158 |
+
MO modifier
|
| 1159 |
+
NG negation
|
| 1160 |
+
NK noun kernel
|
| 1161 |
+
OA accusative object
|
| 1162 |
+
OC dausal object
|
| 1163 |
+
PNC proper noun component
|
| 1164 |
+
SB `subject`
|
| 1165 |
+
|
| 1166 |
+
|
| 1167 |
+
|
| 1168 |
+
Ratnaparkhi, Adwait. 1997. `A` linear observed
|
| 1169 |
+
time statistical parser based on maximum entropy
|
| 1170 |
+
models." In _Proceedings of EMNLP.97,_ Providence, RI, USA.
|
| 1171 |
+
|
| 1172 |
+
Skut, Wojciech, Thorsten Brants, Brigitte Krenn,
|
| 1173 |
+
|
| 1174 |
+
and Hans Uszkoreit. 1997a. Annotating unrestricted German text. In _FacMagung der Sektion_
|
| 1175 |
+
|
| 1176 |
+
_Computerlinguistik der Deutschen Gesellschaft_
|
| 1177 |
+
_fffr Sprachwissenschafl,_ Heidelberg, Germany.
|
| 1178 |
+
|
| 1179 |
+
|
| 1180 |
+
|
| 1181 |
+
Skut, Wojciech, Brigitte Krenn, Thorsten Brants,
|
| 1182 |
+
|
| 1183 |
+
|
| 1184 |
+
|
| 1185 |
+
and Hans Uszkoreit. 1997b. An annotation
|
| 1186 |
+
scheme for free word order languages. In _Proceed-_
|
| 1187 |
+
|
| 1188 |
+
|
| 1189 |
+
|
| 1190 |
+
_ings of ANLP-97,_ Washington, DC.
|
| 1191 |
+
|
| 1192 |
+
|
| 1193 |
+
|
| 1194 |
+
Thielen, Christine and Anne Schiller. 1995. Ein
|
| 1195 |
+
|
| 1196 |
+
kleines und erweitertes Tagset f/its Deutsche.
|
| 1197 |
+
In _Tagungsberichte des Arbeitstreffens Lezikon_
|
| 1198 |
+
|
| 1199 |
+
_+ Text 17./18. Februar 1994, Schlofl Hohen-_
|
| 1200 |
+
_t(~bingen. Lezicographica Series Maior,_ Tfibingen.
|
| 1201 |
+
Niemeyer.
|
| 1202 |
+
|
| 1203 |
+
|
| 1204 |
+
|
| 1205 |
+
Brants, Thorsten, Wojciech Skut, and Brigitte
|
| 1206 |
+
|
| 1207 |
+
Krenn. 1997. Tagging grammatical functions. In
|
| 1208 |
+
_Proceedings of EMNLP-97,_ Providence, RI, USA.
|
| 1209 |
+
|
| 1210 |
+
|
| 1211 |
+
|
| 1212 |
+
Brown, P. F., V. J. Della Pietra, Peter V. deSouza,
|
| 1213 |
+
|
| 1214 |
+
Jenifer C. Lai, and Robert L. Mercer. 1992. Classbased n-gram models of natural language. _Com-_
|
| 1215 |
+
_putational Linguistics,_ 18(4):467-479.
|
| 1216 |
+
|
| 1217 |
+
|
| 1218 |
+
|
| 1219 |
+
Calder, Jo. 1997. On aligning trees. In _Proc. of_
|
| 1220 |
+
|
| 1221 |
+
_EMNLP-97,_ Providence, RI, USA.
|
| 1222 |
+
|
| 1223 |
+
|
| 1224 |
+
|
| 1225 |
+
Church, Kenneth Ward. 1988. A stochastic parts
|
| 1226 |
+
|
| 1227 |
+
program and noun phrase parser for unrestricted
|
| 1228 |
+
text. In _Proc. Second Conference on Applied Nat-_
|
| 1229 |
+
_ural Language Processing,_ pages 136-143, Austin,
|
| 1230 |
+
Texas, USA.
|
| 1231 |
+
|
| 1232 |
+
|
| 1233 |
+
|
| 1234 |
+
Cutting, Doug, Julian Kupiec, Jan Pedersen, and
|
| 1235 |
+
|
| 1236 |
+
Penelope Sibun. 1992. A practical part-of-speech
|
| 1237 |
+
tagger. In _Proceedings of the 3rd Conference_
|
| 1238 |
+
_on Applied Natural Language Processing (ACL),_
|
| 1239 |
+
pages 133-140.
|
| 1240 |
+
|
| 1241 |
+
|
| 1242 |
+
|
| 1243 |
+
Feldweg, Helmut. 1995. Implementation and eval
|
| 1244 |
+
uation of a german hmm for pos disambiguation.
|
| 1245 |
+
In _Proceedings of EACL-SIGDAT-95 Workshop,_
|
| 1246 |
+
Dublin, Ireland.
|
| 1247 |
+
|
| 1248 |
+
|
| 1249 |
+
|
| 1250 |
+
Marcus, Mitchell, Beatrice Santorini, and Mary Ann
|
| 1251 |
+
|
| 1252 |
+
Marcinkiewicz. 1994. Building a large annotated
|
| 1253 |
+
corpus of English: the Penn Treebank. In Susan Armstrong, editor, _Using Large Corpora._ MIT
|
| 1254 |
+
Press.
|
| 1255 |
+
|
| 1256 |
+
|
| 1257 |
+
|
| 1258 |
+
_Bran ts and Skut_ _5 7_ _Automation of Treebank,4 nnotation_
|
| 1259 |
+
|
| 1260 |
+
|
|
@@ -0,0 +1,1954 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Sample Selection for Statistical Parsing"
|
| 3 |
+
authors:
|
| 4 |
+
- "Rebecca Hwa"
|
| 5 |
+
year: 2004
|
| 6 |
+
venue: "Computational Linguistics 30(3)"
|
| 7 |
+
url: "https://aclanthology.org/J04-3001/"
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# **Sample Selection for Statistical Parsing**
|
| 11 |
+
|
| 12 |
+
Rebecca Hwa _[∗]_
|
| 13 |
+
|
| 14 |
+
University of Pittsburgh
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
_Corpus-based_ _statistical_ _parsing_ _relies_ _on_ _using_ _large_ _quantities_ _of_ _annotated_ _text_ _as_ _training_
|
| 18 |
+
_examples. Building this kind of resource is expensive and labor-intensive. This work proposes to_
|
| 19 |
+
_usesampleselectiontofindhelpfultrainingexamplesandreducehumaneffortspentonannotating_
|
| 20 |
+
_less informative ones. We consider several criteria for predicting whether unlabeled data might_
|
| 21 |
+
_be_ _a_ _helpful_ _training_ _example._ _Experiments_ _are_ _performed_ _across_ _two_ _syntactic_ _learning_ _tasks_
|
| 22 |
+
_and within the single task of parsing across two learning models to compare the effect of different_
|
| 23 |
+
_predictive_ _criteria._ _We_ _find_ _that_ _sample_ _selection_ _can_ _significantly_ _reduce_ _the_ _size_ _of_ _annotated_
|
| 24 |
+
_training corpora and that uncertainty is a robust predictive criterion that can be easily applied to_
|
| 25 |
+
_different learning models._
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
**1.** **Introduction**
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
Many learning tasks for natural language processing require supervised training; that
|
| 32 |
+
is, the system successfully learns a concept only if it has been given annotated training data. For example, while it is difficult to induce a grammar with raw text alone,
|
| 33 |
+
the task is tractable when the syntactic analysis for each sentence is provided as a
|
| 34 |
+
part of the training data (Pereira and Schabes 1992). Current state-of-the-art statistical parsers (Collins 1999; Charniak 2000) are all trained on large annotated corpora
|
| 35 |
+
such as the Penn Treebank (Marcus, Santorini, and Marcinkiewicz 1993). However,
|
| 36 |
+
supervised training data are difficult to obtain; existing corpora might not contain the
|
| 37 |
+
relevant type of annotation, and the data might not be in the domain of interest. For
|
| 38 |
+
example, one might need lexical-semantic analyses in addition to the syntactic analyses in the treebank, or one might be interested in processing languages, domains,
|
| 39 |
+
or genres for which there are no annotated corpora. Because supervised training demands significant human involvement (e.g., annotating the syntactic structure of each
|
| 40 |
+
sentence by hand), creating a new corpus is a labor-intensive and time-consuming endeavor. The goal of this work is to minimize a system’s reliance on annotated training
|
| 41 |
+
data.
|
| 42 |
+
One promising approach to mitigating the annotation bottleneck problem is to
|
| 43 |
+
use **sample** **selection**, a variant of active learning. Sample selection is an interactive
|
| 44 |
+
learning method in which the machine takes the initiative in selecting unlabeled data
|
| 45 |
+
for the human to annotate. Under this framework, the system has access to a large pool
|
| 46 |
+
of unlabeled data, and it has to predict how much it can learn from each candidate in
|
| 47 |
+
the pool if that candidate is labeled. More quantitatively, we associate each candidate
|
| 48 |
+
in the pool with a **training** **utility** **value** (TUV). If the system can accurately identify
|
| 49 |
+
the subset of examples with the highest TUV, it will have located the most beneficial
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
_∗_ Computer Science Department, Pittsburgh, PA 15260. E-mail: hwa@cs.pitt.edu.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Submission received: 14 October 2002; Revised submission received: 30 September 2003; Accepted for
|
| 56 |
+
publication: 22 December 2003
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
_⃝_ c 2004 Association for Computational Linguistics
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
Computational Linguistics Volume 30, Number 3
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
training examples, thus freeing the annotators from having to label less informative
|
| 66 |
+
examples.
|
| 67 |
+
In this article, we apply sample selection to two syntactic learning tasks: training
|
| 68 |
+
a prepositional-phrase attachment (PP-attachment) model and training a statistical
|
| 69 |
+
parsing model. We are interested in addressing two main questions. First, what are
|
| 70 |
+
good predictors of a candidate’s training utility? We propose several predictive criteria
|
| 71 |
+
and define evaluation functions based on them to rank the candidates’ utility. We
|
| 72 |
+
have performed experiments comparing the effect of these evaluation functions on
|
| 73 |
+
the size of the training corpus. We find that, with a judiciously chosen evaluation
|
| 74 |
+
function, sample selection can significantly reduce the size of the training corpus. The
|
| 75 |
+
second main question is: Are the predictors consistently effective for different types of
|
| 76 |
+
learners? We compare the predictive criteria both across tasks (between PP-attachment
|
| 77 |
+
and parsing) and within a single task (applying the criteria to two parsing models:
|
| 78 |
+
an expectation-maximization-trained parser and a count-based parser). We find that
|
| 79 |
+
the learner’s uncertainty is a robust predictive criterion that can be easily applied to
|
| 80 |
+
different learning models.
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
**2.** **Learning** **with** **Sample** **Selection**
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
Unlike traditional learning systems that receive training examples indiscriminately,
|
| 87 |
+
a sample selection learning system actively influences its own progress by choosing
|
| 88 |
+
new examples to incorporate into its training set. There are two types of selection algorithms: **committee-based** and **single** **learner** . A committee-based selection algorithm
|
| 89 |
+
works with multiple learners, each maintaining a different hypothesis (perhaps pertaining to different aspects of the problem). The candidate examples that lead to the
|
| 90 |
+
most disagreements among the different learners are considered to have the highest
|
| 91 |
+
TUV (Cohn, Atlas, and Ladner 1994; Freund et al. 1997). For computationally intensive
|
| 92 |
+
problems, such as parsing, keeping multiple learners may be impractical.
|
| 93 |
+
In this work, we focus on sample selection using a single learner that keeps one
|
| 94 |
+
working hypothesis. Without access to multiple hypotheses, the selection algorithm
|
| 95 |
+
can nonetheless estimate the TUV of a candidate. We identify the following three
|
| 96 |
+
classes of predictive criteria:
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
1. _Problem-space:_ Knowledge about the problem space may provide
|
| 100 |
+
information about the type of candidates that are particularly plentiful or
|
| 101 |
+
difficult to learn. This criterion focuses on the general attributes of the
|
| 102 |
+
learning problem, such as the distribution of the input data and
|
| 103 |
+
properties of the learning algorithm, but it ignores the current state of
|
| 104 |
+
the hypothesis.
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
2. _Performance of the hypothesis:_ Testing the candidates on the current
|
| 108 |
+
working hypothesis shows the type of input data on which the
|
| 109 |
+
hypothesis may perform weakly. That is, if the current hypothesis is
|
| 110 |
+
unable to label a candidate or is uncertain about it, then the candidate
|
| 111 |
+
might be a good training example (Lewis and Catlett 1994). The
|
| 112 |
+
underlying assumption is that an uncertain output is likely to be wrong.
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
3. _Parameters of the hypothesis:_ Estimating the potential impact that the
|
| 116 |
+
candidates will have on the parameters of the current working
|
| 117 |
+
hypothesis locates those examples that will change the current
|
| 118 |
+
hypothesis the most.
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
254
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
Hwa Sample Selection for Statistical Parsing
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
_U_ is a set of unlabeled candidates.
|
| 128 |
+
_L_ is a set of labeled training examples.
|
| 129 |
+
_C_ is the current hypothesis.
|
| 130 |
+
**Initialize:**
|
| 131 |
+
_C ←_ _Train_ ( _L_ ).
|
| 132 |
+
**Repeat**
|
| 133 |
+
_N_ _←_ _Select_ ( _n_, _U_, _C_, _f_ ).
|
| 134 |
+
_U ←_ _U −_ _N_ .
|
| 135 |
+
_L ←_ _L ∪_ _Label_ ( _N_ ).
|
| 136 |
+
_C ←_ _Train_ ( _L_ ).
|
| 137 |
+
**Until** ( _C_ is good enough) **or** ( _U_ = _∅_ ) **or** (cutoff).
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
**Figure** **1**
|
| 141 |
+
Pseudo code for the sample selection learning algorithm.
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
Figure 1 outlines the single-learner sample selection training loop in pseudocode.
|
| 145 |
+
Initially, the training set, _L_, consists of a small number of labeled examples, based on
|
| 146 |
+
which the learner proposes its first hypothesis of the target concept, _C_ . Also available
|
| 147 |
+
to the learner is a large pool of unlabeled training candidates, _U_ . In each training
|
| 148 |
+
iteration, the selection algorithm, _Select_ ( _n_, _U_, _C_, _f_ ), ranks the candidates of _U_ according
|
| 149 |
+
to their expected TUVs and returns the _n_ candidates with the highest values. The
|
| 150 |
+
algorithm predicts the TUV of each candidate, _u_ _∈_ _U_, with an evaluation function,
|
| 151 |
+
_f_ ( _u_, _C_ ). This function may rely on the hypothesis concept _C_ to estimate the utility of a
|
| 152 |
+
candidate _u_ . The _n_ chosen candidates are then labeled by human experts and added
|
| 153 |
+
to the existing training set. Running the learning algorithm, _Train_ ( _L_ ), on the updated
|
| 154 |
+
training set, the system proposes a new hypothesis regarding the target concept that
|
| 155 |
+
is the most compatible with the examples seen thus far. The loop continues until one
|
| 156 |
+
of three stopping conditions is met: The hypothesis is considered to perform well
|
| 157 |
+
enough, all candidates are labeled, or an absolute cutoff point is reached (e.g., no
|
| 158 |
+
more resources).
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
**3.** **Sample** **Selection** **for** **Prepositional-Phrase** **Attachment**
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
One common source of structural ambiguities arises from syntactic constructs in which
|
| 165 |
+
a prepositional phrase might be equally likely to modify the verb or the noun preceding it. Researchers have proposed many computational models for resolving PPattachment ambiguities. Some well-known approaches include rule-based models (Brill
|
| 166 |
+
and Resnik 1994), backed-off models (Collins and Brooks 1995), and a maximumentropy model (Ratnaparkhi 1998). Following the tradition of using learning PPattachment as a way to gain insight into the parsing problem, we first apply sample
|
| 167 |
+
selection to reduce the amount of annotation used in training a PP-attachment model.
|
| 168 |
+
We use the Collins-Brooks model as the basic learning algorithm and experiment with
|
| 169 |
+
several evaluation functions based on the types of predictive criteria described earlier.
|
| 170 |
+
Our experiments show that the best evaluation function can reduce the number of
|
| 171 |
+
labeled examples by nearly half without loss of accuracy.
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
**3.1** **A** **Summary** **of** **the** **Collins-Brooks** **Model**
|
| 175 |
+
The Collins-Brooks model takes prepositional phrases and their attachment classifications as training examples: each is represented as a quintuple of the form ( _v_, _n_, _p_, _n_ 2, _a_ ),
|
| 176 |
+
where _v_, _n_, _p_, and _n_ 2 are the head words of the verb phrase, the object noun phrase, the
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
255
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
Computational Linguistics Volume 30, Number 3
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
**Figure** **2**
|
| 197 |
+
The Collins-Brooks PP-attachment classification algorithm.
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
preposition, and the prepositional noun phrase, respectively, and _a_ specifies the attachment classification. For example, ( _wrote a book in three days, attach-verb_ ) would be annotated as ( _wrote_, _book_, _in_, _days_, _verb_ ). The head words can be automatically extracted using
|
| 201 |
+
a heuristic table lookup in the manner described by Magerman (1994). For this learning
|
| 202 |
+
problem, the supervision is the one-bit information of whether _p_ should attach to _v_ or
|
| 203 |
+
to _n_ . In order to learn the attachment preferences of prepositional phrases, the system
|
| 204 |
+
builds attachment statistics for each the **characteristic tuple** of all training examples. A
|
| 205 |
+
characteristic tuple is some subset of the four head words in the example, with the condition that one of the elements must be the preposition. Each training example forms
|
| 206 |
+
eight characteristic tuples: ( _v_, _n_, _p_, _n_ 2), ( _v_, _n_, _p_ ), ( _v_, _p_, _n_ 2), ( _n_, _p_, _n_ 2), ( _v_, _p_ ), ( _n_, _p_ ), ( _p_, _n_ 2), ( _p_ ).
|
| 207 |
+
The attachment statistics are a collection of the occurrence frequencies for all the characteristic tuples in the training set and the occurrence frequencies for the characteristic
|
| 208 |
+
tuples of those examples determined to attach to nouns. For some characteristic tuple
|
| 209 |
+
_t_, _Count_ ( _t_ ) denotes the former and _Count_ NP( _t_ ) denotes the latter. In terms of the sample
|
| 210 |
+
selection algorithm, the collection of counts represents the learner’s current hypothesis
|
| 211 |
+
( _C_ in Figure 1). Figure 2 provides the pseudocode for the _Train_ routine.
|
| 212 |
+
Once trained, the system can be used to classify test cases based on the statistics of
|
| 213 |
+
the most similar training examples and back off as necessary. For instance, to determine
|
| 214 |
+
the PP-attachment for a test case, the classifier would first consider the ratio of the
|
| 215 |
+
two frequency counts for the four-word characteristic tuple of the test case. If the tuple
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
256
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
Hwa Sample Selection for Statistical Parsing
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
**Figure** **3**
|
| 225 |
+
In this example, the classification of the test case preposition is backed off to the
|
| 226 |
+
two-word-tuple level. In the diagram, each circle represents a characteristic tuple. A filled
|
| 227 |
+
circle denotes that the tuple has occurred in the training set. The dashed rectangular box
|
| 228 |
+
indicates the back-off level on which the classification is made.
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
never occurred in the training example, the classifier would then back off to look at the
|
| 232 |
+
test case’s three three-word characteristic tuples. It would continue to back off further,
|
| 233 |
+
if necessary. In the case that the model has no information on any of the characteristic
|
| 234 |
+
tuples of the test case, it would, by default, classify the test case as an instance of noun
|
| 235 |
+
attachment. Figure 3 shows using the back-off scheme on a test case. We describe in
|
| 236 |
+
the _Test_ pseudocode routine in Figure 2 the model’s classification procedure for each
|
| 237 |
+
back-off level.
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
**3.2** **Evaluation** **Functions**
|
| 241 |
+
Based on the three classes of predictive criteria discussed in Section 2, we propose
|
| 242 |
+
several evaluation functions for the Collins-Brooks model.
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
**3.2.1 The Problem Space.** One source of knowledge to exploit is our understanding of
|
| 246 |
+
the PP-attachment model and properties of English prepositional phrases. For instance,
|
| 247 |
+
we know that the most problematic test cases for the PP-attachment model are those
|
| 248 |
+
for which it has no statistics at all. Therefore, those data that the system has not
|
| 249 |
+
yet encountered might be good candidates. The first evaluation function we define,
|
| 250 |
+
_f_ novel( _u_, _C_ ), equates the TUV of a candidate _u_ with its degree of novelty, the number
|
| 251 |
+
of its characteristic tuples that currently have zero counts: [1]
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
_f_ novel( _u_, _C_ ) =
|
| 257 |
+
|
| 258 |
+
_t∈Tuples_ ( _u_ )
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
1 : _Count_ ( _t_ ) = 0
|
| 264 |
+
0 : otherwise
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
This evaluation function has some blatant defects. It may distort the data distribution
|
| 269 |
+
so much that the system will not be able to build up a reliable collection of statistics.
|
| 270 |
+
The function does not take into account the intuition that those data that rarely occur,
|
| 271 |
+
no matter how novel, probably have overall low training utility. Moreover, the scoring
|
| 272 |
+
scheme does not make any distinction between the characteristic tuples of a candidate.
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
1 Note that the current hypothesis _C_ is ignored in evaluation functions of this class because they depend
|
| 276 |
+
only on the knowledge about the problem space.
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
257
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
Computational Linguistics Volume 30, Number 3
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
|had|Col2|
|
| 344 |
+
|---|---|
|
| 345 |
+
|idea<br>on,<br>on,<br>on,<br>on,<br>on,<br>**topic**<br><br>idea<br>on,<br>topic<br>topic<br>idea<br>had<br>on,<br>had<br>idea<br>had<br>topic|idea<br>on,<br>on,<br>on,<br>on,<br>on,<br>**topic**<br><br>idea<br>on,<br>topic<br>topic<br>idea<br>had<br>on,<br>had<br>idea<br>had<br>topic|
|
| 346 |
+
|on,|on,|
|
| 347 |
+
|||
|
| 348 |
+
|noun|noun|
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
u1, u2 u3 u4 u5
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
**Figure** **4**
|
| 356 |
+
If candidate _u_ 1 is selected, a total of 22 tuples can be ignored. The dashed rectangles show the
|
| 357 |
+
classification level before training, and the solid rectangles show the classification level after
|
| 358 |
+
the statistics of _u_ 1 have been taken. The obviated tuples are represented by the filled black
|
| 359 |
+
circles.
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
We know, however, that the PP-attachment classifier is a back-off model that makes
|
| 363 |
+
its decision based first on statistics of the characteristic tuple with the most words. A
|
| 364 |
+
more sophisticated sampling of the data domain should consider not only the novelty
|
| 365 |
+
of the data, but also the frequency of its occurrence, as well as the quality of its characteristic tuples. We define a back-off-model-based evaluation function, _f_ backoff( _u_, _C_ ), that
|
| 366 |
+
scores a candidate _u_ by counting the number of characteristic tuples that would be
|
| 367 |
+
obviated in all candidates if _u_ were included in the training set. For example, suppose
|
| 368 |
+
we have a small pool of five candidates, and we are about to pick the first training
|
| 369 |
+
example:
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
_u_ 1 = (put, book, on, shelf)
|
| 373 |
+
_u_ 2 = (put, book, on, shelf)
|
| 374 |
+
_u_ 3 = (put, idea, on, shelf)
|
| 375 |
+
_u_ 4 = (wrote, book, on, shelf)
|
| 376 |
+
_u_ 5 = (had, idea, on, topic)
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
According to _f_ backoff, either _u_ 1 or _u_ 2 would be the best choice. By selecting either as
|
| 380 |
+
the first training example, we could ignore all but the four-word characteristic tuple
|
| 381 |
+
for both _u_ 1 and _u_ 2 (a saving of seven tuples each); since _u_ 3 and _u_ 4 each have three
|
| 382 |
+
words in common with the first two candidates, they would no longer depend on
|
| 383 |
+
their lower four tuples; and although we would also improve the statistics for one
|
| 384 |
+
of _u_ 5’s tuples ( _on_ ), nothing could be pruned from _u_ 5’s characteristic tuples. Thus,
|
| 385 |
+
_f_ backoff( _u_ 1, _C_ ) = _f_ backoff( _u_ 2, _C_ ) = 7 + 7 + 4 + 4 = 22 (see Figure 4).
|
| 386 |
+
Under _f_ backoff, if _u_ 1 were chosen as the first example, _u_ 2 would lose all its utility,
|
| 387 |
+
because we could not prune any extra characteristic tuples by using _u_ 2. That is, in
|
| 388 |
+
the next round of selection, _f_ backoff( _u_ 2, _C_ ) = 0. Candidate _u_ 5 would be the best second
|
| 389 |
+
example because it would now have the most tuples to prune (7 tuples).
|
| 390 |
+
The evaluation function _f_ backoff improves upon _f_ novel in two ways. First, novel candidates that occur frequently are favored over those that rarely come up. As we have
|
| 391 |
+
seen in the above example, a candidate that is similar to other candidates can eliminate more characteristic tuples all at once. Second, the evaluation strategy follows the
|
| 392 |
+
working principle of the back-off model and discounts lower-level characteristic tuples
|
| 393 |
+
that do not affect the classification process, even if they were “novel.” For instance,
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
258
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
Hwa Sample Selection for Statistical Parsing
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
after selecting _u_ 1 as the first training example, we would no longer care about the
|
| 403 |
+
two-word tuples of _u_ 4 such as ( _wrote, on_ ), even though we have no statistics for them.
|
| 404 |
+
A potential problem with _f_ backoff is that after all the obvious candidates have been
|
| 405 |
+
selected, the function is not very good at differentiating between the remaining candidates that have about the same level of novelty and occur infrequently.
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
**3.2.2** **The** **Performance** **of** **the** **Hypothesis.** The evaluation functions discussed in the
|
| 409 |
+
previous section score candidates based on prior knowledge alone, independent of the
|
| 410 |
+
current state of the learner’s hypothesis and the annotation of the selected training
|
| 411 |
+
examples. To attune the selection of training examples to the learner’s progress, an
|
| 412 |
+
evaluation function might factor in its current hypothesis in predicting a candidate’s
|
| 413 |
+
TUV.
|
| 414 |
+
One way to incorporate the current hypothesis into the evaluation function is
|
| 415 |
+
to score each candidate using the current model, assuming its hypothesis is right.
|
| 416 |
+
An error-driven evaluation function, _f_ err, equates the TUV of a candidate with the
|
| 417 |
+
hypothesis’ estimate of its likelihood to misclassify that candidate (i.e., one minus the
|
| 418 |
+
probability of the most-likely class). If the hypothesis predicts that the likelihood of a
|
| 419 |
+
prepositional phrase to attach to the noun is 80%, and if the hypothesis is accurate,
|
| 420 |
+
then there is a 20% chance that it has misclassified.
|
| 421 |
+
A related evaluation function is one that measures the hypothesis’s **uncertainty**
|
| 422 |
+
across all classes, rather than focusing on only the most likely class. Intuitively, if the
|
| 423 |
+
hypothesis classifies a candidate as equally likely to attach to the verb as to the noun, it
|
| 424 |
+
is the most uncertain of its answer. If the hypothesis assigns a candidate to a class with
|
| 425 |
+
a probability of one, then it is the most certain of its answer. For the binary-class case,
|
| 426 |
+
the uncertainty-based evaluation function, _f_ unc, can be expressed in the same way as
|
| 427 |
+
the error-driven function, as a function that is symmetric about 0.5 and monotonically
|
| 428 |
+
decreases if the hypothesis prefers one class over another: [2]
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
_f_ unc( _u_, _C_ ) = _f_ �err( _u_, _C_ )
|
| 432 |
+
|
| 433 |
+
1 _−_ _P_ ( _noun_ _| u_, _C_ ) : _P_ ( _noun_ _| u_, _C_ ) _≥_ 0 _._ 5
|
| 434 |
+
=
|
| 435 |
+
_P_ ( _noun_ _| u_, _C_ ) : otherwise
|
| 436 |
+
|
| 437 |
+
= 0 _._ 5 _−_ _abs_ (0 _._ 5 _−_ _P_ ( _noun_ _| u_, _C_ )) (1)
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
In the general case of choosing between multiple classes, _f_ err and _f_ unc are different from
|
| 441 |
+
one another. We shall return to this point in Section 4.1.2 when we consider training
|
| 442 |
+
parsers.
|
| 443 |
+
The potential drawback of the performance-based evaluation functions is that they
|
| 444 |
+
assume that the hypothesis is correct. Selecting training examples based on a poor hypothesis is prone to pitfalls. On the one hand, the hypothesis may be overly confident
|
| 445 |
+
about the certainty of its decisions. For example, the hypothesis may assign _noun_ to
|
| 446 |
+
a candidate with a probability of one based on parameter estimates computed from a
|
| 447 |
+
single previous observation in which a similar example was labeled as _noun_ . Despite
|
| 448 |
+
the unreliable statistics, this candidate would not be selected, since the hypothesis
|
| 449 |
+
considers this a known case. Conversely, the hypothesis may also direct the selection algorithm to chase after undecidable cases. For example, consider prepositional
|
| 450 |
+
phrases (PPs) with _in_ as the head. These PPs occur frequently, and about half of them
|
| 451 |
+
should attach to the object noun. Even though training on more labeled _in_ examples
|
| 452 |
+
|
| 453 |
+
|
| 454 |
+
2 As long as it adheres to these criteria, the specific form of the function is irrelevant, since the selection
|
| 455 |
+
is not determined by the absolute scores of the candidates, but by their scores relative to each other.
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
259
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
Computational Linguistics Volume 30, Number 3
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
does not improve the model’s performance on future _in_ PPs, the selection algorithm
|
| 465 |
+
will keep on requesting more _in_ training examples because the hypothesis remains uncertain about this preposition. [3] With an unlucky starting hypothesis, these evaluation
|
| 466 |
+
functions may select uninformative candidates initially.
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
**3.2.3** **The** **Parameters** **of** **the** **Hypothesis.** The potential problems with performancebased evaluation function stems from their trust in the model’s diagnosis of its own
|
| 470 |
+
progress. Another way to incorporate the current hypothesis is to determine how good
|
| 471 |
+
it is and what type of examples will improve it the most. In this section we propose
|
| 472 |
+
an evaluation function that scores candidates based on their utilities in increasing the
|
| 473 |
+
confidence about the parameters of the hypothesis (i.e., the collection of statistics over
|
| 474 |
+
the characteristic tuples of the training examples).
|
| 475 |
+
Training the parameters of the PP-attachment model is similar to empirically determining the bias of a coin. We measure the coin’s bias by repeatedly tossing it and
|
| 476 |
+
keeping track of the percentage of times it lands on heads. The more trials we perform,
|
| 477 |
+
the more confident we become about our estimation of the bias. Similarly, in estimating
|
| 478 |
+
_p_, the likelihood of a PP’s attaching to its object noun, we are more confident about the
|
| 479 |
+
classification decision based on statistics with higher counts than based on statistics
|
| 480 |
+
with lower counts. A quantitative measurement of our confidence in a statistic is the
|
| 481 |
+
**confidence** **interval** . This is a region around the measured statistic, bounding the area
|
| 482 |
+
within which the true statistic may lie. More specifically, the confidence interval for _p_,
|
| 483 |
+
a binomial parameter, is defined as
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
¯ _p_ (1 _−_ ¯ _p_ )
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
1
|
| 501 |
+
_conf_ ~~_i_~~ _nt_ (¯ _p_, _n_ ) =
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
_−_ ¯ _p_ )
|
| 506 |
+
|
| 507 |
+
+ _[t]_ [2]
|
| 508 |
+
_n_ 4 _n_
|
| 509 |
+
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
4 _n_ [2]
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
1 + _[t]_ [2]
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
¯ _p_ + _[t]_ [2]
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
_n_
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
2 _n_ _[±][ t]_
|
| 529 |
+
|
| 530 |
+
|
| 531 |
+
|
| 532 |
+
where ¯ _p_ is the expected value of _p_ based on _n_ trials, and _t_ is a **threshold** **value** that
|
| 533 |
+
depends on the number of trials and the level of confidence we desire. For instance,
|
| 534 |
+
if we want to be 90% confident that the true statistic _p_ lies within the interval, and ¯ _p_
|
| 535 |
+
is based on _n_ = 30 trials, then we set _t_ to be 1.697. [4] Applying the confidence interval
|
| 536 |
+
concept to evaluating candidates for the back-off PP-attachment model, we define
|
| 537 |
+
a function _f_ conf that scores a candidate by taking the average of the lengths of the
|
| 538 |
+
confidence interval of each back-off level. That is,
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
_f_ conf( _u_, _C_ ) =
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
�4
|
| 547 |
+
|
| 548 |
+
_|conf_ _int_ (¯ _pl_ ( _u_, _C_ ), _nl_ ( _u_, _C_ )) _|_
|
| 549 |
+
_l_ =1
|
| 550 |
+
|
| 551 |
+
4
|
| 552 |
+
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
where ¯ _pl_ ( _u_, _C_ ) is the probability that model _C_ will attach _u_ to _noun_ at back-off level _l_,
|
| 556 |
+
and _nl_ ( _u_, _C_ ) is the number of training examples upon which this classification is based.
|
| 557 |
+
The confidence-based evaluation function has several potential problems. One of
|
| 558 |
+
its flaws is similar to that of _f_ novel. In the early stage, _f_ conf picks the same examples
|
| 559 |
+
|
| 560 |
+
|
| 561 |
+
3 This phenomenon is particularly acute in the early stages of refining the hypothesis because most
|
| 562 |
+
decisions are based on statistics of the head preposition alone; in the later stages, the hypothesis can
|
| 563 |
+
usually rely on higher-ordered characteristic tuples that tend to be better classifiers.
|
| 564 |
+
4 For _n ≤_ 120, the values of _t_ can be found in standard statistic textbooks; for _n ≥_ 120, _t_ = 1 _._ 6576.
|
| 565 |
+
Because the derivation for the confidence interval equation makes a normality assumption, the
|
| 566 |
+
equation does not hold for small values of _n_ (cf Larsen and Marx [1986], pp. 277–278). When _n_ is large,
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
the contributions from the terms in _[t]_ [2]
|
| 571 |
+
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
large _n_, ¯ _p ± t_ [�]
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
|
| 578 |
+
_n_ [are] [negligible.] [Dropping] [these] [terms,] [we] [have] [the] _[t]_ [statistic] [for]
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
¯ _p_ (1 _−_ ¯ _p_ ) _/n_ .
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
|
| 586 |
+
260
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
Hwa Sample Selection for Statistical Parsing
|
| 590 |
+
|
| 591 |
+
|
| 592 |
+
as _f_ novel, because we have no confidence in the statistics of novel examples. Therefore,
|
| 593 |
+
_f_ conf is also prone to chase after examples that rarely occur to build up the confidence
|
| 594 |
+
of some unimportant parameters. A second problem is that _f_ conf ignores the output of
|
| 595 |
+
the model. Thus, if candidate A has a confidence interval around [0 _._ 6, 1] and candidate
|
| 596 |
+
B has a confidence interval around [0 _._ 4, 0 _._ 7], then _f_ conf will prefer candidate A, even
|
| 597 |
+
though training on A will not change the hypothesis’s performance, since the entire
|
| 598 |
+
confidence interval is already in the _noun_ zone.
|
| 599 |
+
|
| 600 |
+
|
| 601 |
+
**3.2.4** **Hybrid** **Function.** The three categories of predictive criteria discussed above are
|
| 602 |
+
complementary, each focusing on a different aspect of the learner’s weakness. Therefore, it may be beneficial to combine these criteria into one evaluation function. For
|
| 603 |
+
instance, the deficiency of the confidence-based evaluation function described in the
|
| 604 |
+
previous section can be avoided if the confidence interval covering the region around
|
| 605 |
+
the uncertainty boundary (candidate B in the example just discussed) is weighed more
|
| 606 |
+
heavily than one around the end points (candidate A).
|
| 607 |
+
In this section, we introduce a new function that tries to factor in both the uncertainty of the model performance and the confidence of the model parameters. First, we
|
| 608 |
+
define a function, called _area_ (¯ _p_, _n_ ), that computes the area under a Gaussian function
|
| 609 |
+
_N_ ( _x_, _µ_, _σ_ ) with a mean of 0.5 and a standard deviation of 0.1 that is bounded by the
|
| 610 |
+
confidence interval as computed by _conf_ _int_ (¯ _p_, _n_ ) (see Figure 5). [5] That is, suppose ¯ _p_
|
| 611 |
+
has a confidence interval of [ _a_, _b_ ]; then
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
- _b_
|
| 615 |
+
_area_ (¯ _p_, _n_ ) = _N_ ( _x_, 0 _._ 5, 0 _._ 1) _dx_
|
| 616 |
+
|
| 617 |
+
_a_
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
Computing _area_ for each back-off level, we define an evaluation function, _f_ area( _u_, _C_ ),
|
| 621 |
+
as their average. This function can be viewed as a product of _f_ conf and _f_ unc. [6]
|
| 622 |
+
|
| 623 |
+
|
| 624 |
+
**3.3** **Experimental** **Comparison**
|
| 625 |
+
To determine the relative merits of the proposed evaluation functions, we compare the
|
| 626 |
+
learning curve of training with sample selection according to each function against a
|
| 627 |
+
baseline of random selection in an empirical study. The corpus for this comparison is
|
| 628 |
+
a collection of phrases extracted from the Wall Street Journal (WSJ) Treebank. We use
|
| 629 |
+
Section 00 as the development set and Sections 2-23 as the training and test sets. We
|
| 630 |
+
perform 10-fold cross-validation to ensure the statistical significance of the results. For
|
| 631 |
+
each fold, the training candidate pool contains about 21,000 phrases, and the test set
|
| 632 |
+
contained about 2,000 phrases.
|
| 633 |
+
As shown in Figure 1, the learner generates an initial hypothesis based on a small
|
| 634 |
+
set of training examples, _L_ . These examples are randomly selected from the pool of
|
| 635 |
+
unlabeled candidates and annotated by a human. Random sampling ensures that the
|
| 636 |
+
initial trained set reflects the distribution of the candidate pool and thus that the
|
| 637 |
+
initial hypothesis is unbiased. Starting with an unbiased hypothesis is important for
|
| 638 |
+
those evaluation functions whose scoring metrics are affected by the accuracy of the
|
| 639 |
+
hypothesis. In these experiments, _L_ initially contains 500 randomly selected examples.
|
| 640 |
+
In each selection iteration, all the candidates are scored by the evaluation function,
|
| 641 |
+
and _n_ examples with the highest TUVs are picked out from _U_ to be labeled and added
|
| 642 |
+
|
| 643 |
+
|
| 644 |
+
5 The standard deviation value for the Gaussian is chosen so that more than 98% of the mass of the
|
| 645 |
+
distribution is between 0.25 and 0.75.
|
| 646 |
+
6 Note that we can replace the function in equation (1) with the _N_ ( _x_, 0 _._ 5, _σ_ ) without affecting _f_ unc,
|
| 647 |
+
because it is also symmetric about 0.5 and monotonically decreasing as the input value moves further.
|
| 648 |
+
|
| 649 |
+
|
| 650 |
+
261
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
Computational Linguistics Volume 30, Number 3
|
| 654 |
+
|
| 655 |
+
|
| 656 |
+
0 0.4 1.0
|
| 657 |
+
|
| 658 |
+
|
| 659 |
+
Likelihood of Attach NP
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
**Figure** **5**
|
| 663 |
+
An example: Suppose that the candidate has a likelihood of 0.4 for noun attachment and a
|
| 664 |
+
confidence interval of width 0.1. Then _area_ computes the area bounded by the confidence
|
| 665 |
+
interval and the Gaussian curve.
|
| 666 |
+
|
| 667 |
+
|
| 668 |
+
to _L_ . Ideally, we would like to have _n_ = 1 for each iteration. In practice, however, it is
|
| 669 |
+
often more convenient for the human annotator to label data in larger batches rather
|
| 670 |
+
than one at a time. In these experiments, we use a batch size of _n_ = 500 examples.
|
| 671 |
+
We make note of one caveat to this kind of _n_ -best batch selection. Under a
|
| 672 |
+
hypothesis-dependent evaluation function, identical examples will receive identical
|
| 673 |
+
scores. Because identical (or very similar) examples tend to address the same deficiency in the hypothesis, adding _n_ very similar examples to the training set is unlikely
|
| 674 |
+
to lead to big improvements in the hypothesis. To diversify the examples in each batch,
|
| 675 |
+
we simulate single-example selection (whenever possible) by reestimating the scores
|
| 676 |
+
of the candidates after each selection. Suppose we have just chosen to add candidate
|
| 677 |
+
_x_ to the batch. Then, before selecting the next candidate, we estimate the potential
|
| 678 |
+
decrease in scores of candidates similar to _x_ once it belongs to the annotated training
|
| 679 |
+
set. The estimation is based entirely on the knowledge that _x_ is chosen, but not on
|
| 680 |
+
the classification of _x_ . Thus, only certain types of evaluation functions are amenable
|
| 681 |
+
to the reestimation process. For example, if scores have been assigned by _f_ conf, then
|
| 682 |
+
we know that the confidence intervals of the candidates similar to _x_ must decrease
|
| 683 |
+
slightly after learning _x_ . On the other hand, if scores have been assigned by _f_ unc, then
|
| 684 |
+
we cannot perceive any changes in the scores of similar candidates without knowing
|
| 685 |
+
the true classification of _x_ .
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
**3.3.1** **Results** **and** **Discussion.** This section presents the empirical measurements of
|
| 689 |
+
the model’s performances using training examples selected by different evaluation
|
| 690 |
+
functions. We compare each proposed function with the baseline of random selection
|
| 691 |
+
( _f_ rand). The results are graphically depicted from two perspectives. One (e.g., Figure
|
| 692 |
+
6(a)–6(c)) plots the learning curves of the functions, showing the relationship between
|
| 693 |
+
the number of training examples ( _x_ -axis) and the performance of the model on test
|
| 694 |
+
data ( _y_ -axis). We deem one evaluation function to be better than another if its learning
|
| 695 |
+
curve envelopes the other’s. An alternative way to interpret the results is to focus on
|
| 696 |
+
the reduction in training size offered by one evaluation function over another for some
|
| 697 |
+
particular performance level. Figure 6(d) is a bar graph comparing all the evaluation
|
| 698 |
+
|
| 699 |
+
|
| 700 |
+
262
|
| 701 |
+
|
| 702 |
+
|
| 703 |
+
Hwa Sample Selection for Statistical Parsing
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
86
|
| 708 |
+
|
| 709 |
+
|
| 710 |
+
84
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
82
|
| 714 |
+
|
| 715 |
+
|
| 716 |
+
80
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
78
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
76
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
74
|
| 726 |
+
|
| 727 |
+
|
| 728 |
+
86
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
84
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
82
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
80
|
| 738 |
+
|
| 739 |
+
|
| 740 |
+
78
|
| 741 |
+
|
| 742 |
+
|
| 743 |
+
76
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
74
|
| 747 |
+
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
|
| 751 |
+
|
| 752 |
+
86
|
| 753 |
+
|
| 754 |
+
|
| 755 |
+
84
|
| 756 |
+
|
| 757 |
+
|
| 758 |
+
82
|
| 759 |
+
|
| 760 |
+
|
| 761 |
+
80
|
| 762 |
+
|
| 763 |
+
|
| 764 |
+
78
|
| 765 |
+
|
| 766 |
+
|
| 767 |
+
76
|
| 768 |
+
|
| 769 |
+
|
| 770 |
+
74
|
| 771 |
+
|
| 772 |
+
|
| 773 |
+
|
| 774 |
+
|
| 775 |
+
|
| 776 |
+
0 5000 10000 15000 20000
|
| 777 |
+
|
| 778 |
+
|
| 779 |
+
Number of examples in the training set
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
|
| 783 |
+
0 5000 10000 15000 20000
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+
Number of examples in the training set
|
| 787 |
+
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
(a) (b)
|
| 791 |
+
|
| 792 |
+
|
| 793 |
+
|
| 794 |
+
|
| 795 |
+
|
| 796 |
+
25,000
|
| 797 |
+
|
| 798 |
+
|
| 799 |
+
20,000
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
15,000
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
10,000
|
| 806 |
+
|
| 807 |
+
|
| 808 |
+
5,000
|
| 809 |
+
|
| 810 |
+
|
| 811 |
+
0
|
| 812 |
+
|
| 813 |
+
|
| 814 |
+
|
| 815 |
+
0 5000 10000 15000 20000
|
| 816 |
+
|
| 817 |
+
|
| 818 |
+
Number of examples in the training set
|
| 819 |
+
|
| 820 |
+
|
| 821 |
+
|
| 822 |
+
Evaluation Functions
|
| 823 |
+
|
| 824 |
+
|
| 825 |
+
|
| 826 |
+
(c) (d)
|
| 827 |
+
|
| 828 |
+
|
| 829 |
+
**Figure** **6**
|
| 830 |
+
A comparison of the performance of different evaluation functions: (a) compares the learning
|
| 831 |
+
curves of the functions that use knowledge about the problem space ( _f_ novel and _f_ backoff) with
|
| 832 |
+
that of the baseline; (b) compares the learning curves of performance-based function ( _func_ and
|
| 833 |
+
_fconf_ ) with the baseline; (c) compares the learning curve of _f_ area, which combines uncertainty
|
| 834 |
+
and confidence, with _f_ unc, _f_ conf, and the baseline; (d) compares all the functions for the number
|
| 835 |
+
of training examples selected at the final performance level (83.8%).
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
functions at the highest performance level. The graph shows that in order to train a
|
| 839 |
+
model that attaches PPs with an accuracy rate of 83.8%, sample selection with _f_ novel
|
| 840 |
+
requires 2,500 fewer examples than the baseline.
|
| 841 |
+
Compared to _f_ novel, _f_ backoff selects more helpful training examples in the early stage.
|
| 842 |
+
As shown in Figure 6(a), the improvement rate of the model under _f_ backoff is always
|
| 843 |
+
at least as fast that for as _f_ novel. However, the differences between these two functions
|
| 844 |
+
become smaller for higher performance levels. This outcome validates our predictions.
|
| 845 |
+
Scoring candidates by a combination of their novelty, occurrence frequencies, and the
|
| 846 |
+
qualities of their characteristic tuples, _f_ backoff selects helpful early (the first 4,000 or so)
|
| 847 |
+
training examples. Then, just as in _f_ novel, the learning rate remains stagnant for the
|
| 848 |
+
next 2,000 poorly selected examples. Finally, when the remaining candidates all have
|
| 849 |
+
similar novelty values and contain mostly characteristic tuples that occur infrequently,
|
| 850 |
+
the selection becomes random.
|
| 851 |
+
Figure 6(b) compares the two evaluation functions that score candidates based on
|
| 852 |
+
the current state of the hypothesis. Although both functions suffer a slow start, they
|
| 853 |
+
are more effective than _f_ backoff at reducing the training set when learning high-quality
|
| 854 |
+
models. Initially, because all the unknown statistics are initialized to 0.5, selection based
|
| 855 |
+
on _f_ unc is essentially random sampling. Only after the hypothesis becomes sufficiently
|
| 856 |
+
accurate (after training on about 5,000 annotated examples) does it begin to make
|
| 857 |
+
|
| 858 |
+
|
| 859 |
+
263
|
| 860 |
+
|
| 861 |
+
|
| 862 |
+
Computational Linguistics Volume 30, Number 3
|
| 863 |
+
|
| 864 |
+
|
| 865 |
+
informed selections. Following a similar but more exaggerated pattern, the confidencebased function, _f_ conf, also improves slowly at the beginning before finally overtaking
|
| 866 |
+
the baseline. As we noted earlier, because the hypothesis is not confident about novel
|
| 867 |
+
candidates, _f_ conf and _f_ novel tend to select the same early examples. Therefore, the early
|
| 868 |
+
learning rate of _f_ conf is as poor as that of _f_ novel. In the later stage, while _f_ novel continues
|
| 869 |
+
to flounder, _f_ conf can select better candidates based on a more reliable hypothesis.
|
| 870 |
+
Finally, the best-performing evaluation function is the hybrid approach. Figure
|
| 871 |
+
6(c) shows that the learning curve of _f_ area combines the earlier success of _f_ unc and the
|
| 872 |
+
later success of _f_ conf to always outperform the other functions. As shown in Figure
|
| 873 |
+
6(d), it requires the least number of examples to achieve the highest performance level
|
| 874 |
+
of 83.8%. Compared to the baseline, _f_ area requires 47% fewer examples to achieve this
|
| 875 |
+
performance level. From these comparison studies, we conclude that involving the
|
| 876 |
+
hypothesis in the selection process is a key factor in reducing the size of the training
|
| 877 |
+
set.
|
| 878 |
+
|
| 879 |
+
|
| 880 |
+
**4.** **Sample** **Selecting** **for** **Statistical** **Parsing**
|
| 881 |
+
|
| 882 |
+
|
| 883 |
+
In applying sample selection to training a PP-attachment model, we have observed
|
| 884 |
+
that all effective evaluation functions make use of the model’s current hypothesis in
|
| 885 |
+
estimating the training utility of the candidates. Although knowledge about the problem space seems to help sharpening the learning curve initially, overall, it is not a good
|
| 886 |
+
predictor. In this section, we investigate whether these observations hold true for training statistical parsing models as well. Moreover, in order to determine whether the
|
| 887 |
+
performances of the predictive criteria are consistent across different learning models
|
| 888 |
+
within the same domain, we have performed the study on two parsing models: one
|
| 889 |
+
based on a context-free variant of tree-adjoining grammars (Joshi, Levy, and Takahashi 1975), the Probabilistic Lexicalized Tree Insertion Grammar (PLTIG) formalism
|
| 890 |
+
(Schabes and Waters 1993; Hwa 1998), and Collins’s Model 2 parser (1997). Although
|
| 891 |
+
both models are lexicalized, statistical parsers, their learning algorithms are different.
|
| 892 |
+
The Collins Parser is a fully supervised, history-based learner that models the parameters of the parser by taking statistics directly from the training data. In contrast,
|
| 893 |
+
PLTIG’s expectation-maximization-based induction algorithm is partially supervised;
|
| 894 |
+
the model’s parameters are estimated indirectly from the training data.
|
| 895 |
+
As a superset of the PP-attachment task, parsing is a more challenging learning
|
| 896 |
+
problem. Whereas a trained PP-attachment model is a binary classifier, a parser must
|
| 897 |
+
identify the correct syntactic analysis out of all possible parses for a sentence. This
|
| 898 |
+
classification task is more difficult than PP-attachment, since the number of possible
|
| 899 |
+
parses for a sentence grows exponentially with respect to its length. Consequently,
|
| 900 |
+
the annotator’s task is more complex. Whereas the person labeling the training data
|
| 901 |
+
for PP-attachment reveals one unit of information (always choosing between _noun_ or
|
| 902 |
+
_verb_ ), the annotation needed for parser training is usually greater than one unit, [7] and
|
| 903 |
+
the type of labels varies from sentence to sentence. Because the annotation complexity
|
| 904 |
+
differs from sentence to sentence, the evaluation functions must strike a balance between maximizing potential informational gain and minimizing the expected amount
|
| 905 |
+
|
| 906 |
+
|
| 907 |
+
7 We consider each pair of brackets in the training sentence to be one unit of supervised information,
|
| 908 |
+
assuming that the number of brackets correlates linearly with the amount of effort spent by the human
|
| 909 |
+
annotator. This correlation is an approximation, however; in real life, adding one pair of brackets to a
|
| 910 |
+
longer sentence may require more effort than adding a pair of brackets to a shorter one. To capture
|
| 911 |
+
bracketing interdependencies at this level, we would need to develop a model of the annotation
|
| 912 |
+
decision process and incorporate it as an additional factor in the evaluation functions.
|
| 913 |
+
|
| 914 |
+
|
| 915 |
+
264
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
Hwa Sample Selection for Statistical Parsing
|
| 919 |
+
|
| 920 |
+
|
| 921 |
+
of annotation exerted. We propose a set of evaluation functions similar in spirit to those
|
| 922 |
+
for the PP-attachment learner, but extended to accommodate the parsing domain.
|
| 923 |
+
|
| 924 |
+
|
| 925 |
+
|
| 926 |
+
**4.1** **Evaluation** **Functions**
|
| 927 |
+
**4.1.1** **Problem** **Space.** Similarly to scoring a PP candidate based on the novelty and
|
| 928 |
+
frequencies of its characteristic tuples, we define an evaluation function, _f_ lex( **w**, _G_ ) that
|
| 929 |
+
scores a sentence candidate, **w**, based on the novelty and frequencies of word pair
|
| 930 |
+
co-occurrences:
|
| 931 |
+
|
| 932 |
+
|
| 933 |
+
_f_ lex( **w**, _G_ ) =
|
| 934 |
+
|
| 935 |
+
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
_wi_, _wj∈_ **w** _[new]_ [(] _[w][i]_ [,] _[ w][j]_ [)] _[ ×][ coocc]_ [(] _[w][i]_ [,] _[ w][j]_ [)]
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
|
| 942 |
+
_length_ ( **w** )
|
| 943 |
+
|
| 944 |
+
|
| 945 |
+
|
| 946 |
+
where **w** is the unlabeled sentence candidate, _G_ is the current parsing model (which
|
| 947 |
+
is ignored by problem-space-based evaluation functions), _new_ ( _wi_, _wj_ ) is an indicator
|
| 948 |
+
function that returns one if we have not yet selected any sentence in which _wi_ and _wj_
|
| 949 |
+
co-occurred, and _coocc_ ( _wi_, _wj_ ) is a function that returns the number of times that _wi_ cooccurs [8] with _wj_ in the candidate pool. We expect these evaluation functions to be less
|
| 950 |
+
relevant for the parsing domain than for the PP-attachment domain for two reasons.
|
| 951 |
+
First, because we do not have the actual parses, the extraction of lexical relationships
|
| 952 |
+
is based on co-occurrence statistics, not syntactic relationships. Second, because the
|
| 953 |
+
distribution of words that form lexical relationships is wider and more uniform than
|
| 954 |
+
that of words that form PP characteristic tuples, most word pairs will be novel and
|
| 955 |
+
appear only once.
|
| 956 |
+
Another simple evaluation function based on the problem space is one that estimates the TUV of a candidate from its sentence length:
|
| 957 |
+
|
| 958 |
+
|
| 959 |
+
_f_ len( **w**, _G_ ) = _length_ ( **w** )
|
| 960 |
+
|
| 961 |
+
|
| 962 |
+
The intuition behind this function is based on the general observation that longer
|
| 963 |
+
sentences tend to have complex structures and introduce more opportunities for ambiguous parses. Although these evaluation functions may seem simplistic, they have
|
| 964 |
+
one major advantage: They are easy to compute and require little processing time.
|
| 965 |
+
Because inducing parsing models demands significantly more time than inducing PPattachment models, it becomes more important that the evaluation functions for parsing models be as efficient as possible.
|
| 966 |
+
|
| 967 |
+
|
| 968 |
+
**4.1.2** **The** **Performance** **of** **the** **Hypothesis.** We previously defined two performancebased evaluation functions: _f_ err, the model’s estimate of the likelihood that is has
|
| 969 |
+
made a classification error, and _func_, the model’s estimate of its uncertainty in making
|
| 970 |
+
the classification. We have shown the two functions to have similar performance for
|
| 971 |
+
the PP-attachment task. This is not the case for statistical parsing, however, because
|
| 972 |
+
the number of possible classes (parse trees) differs from sentence to sentence. For
|
| 973 |
+
example, suppose we wish to compare one candidate for which the current parsing
|
| 974 |
+
model generated four equally likely parses with another candidate for which the model
|
| 975 |
+
generated 1 parse with probability of 0.2 and 99 other parses with a probability of
|
| 976 |
+
0.01 (such that they sum to 0.98). The error-driven function, _f_ err, would score the latter
|
| 977 |
+
candidate higher because its most likely parse has a lower probability than that of the
|
| 978 |
+
most likely parse of the former candidate; the uncertainty-based function, _f_ unc, would
|
| 979 |
+
score the former candidate higher because the model does not have a strong preference
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
8 We consider two words to be co-occuring if their log-likelihood ratio is greater than some threshold
|
| 983 |
+
value determined with held-out data.
|
| 984 |
+
|
| 985 |
+
|
| 986 |
+
265
|
| 987 |
+
|
| 988 |
+
|
| 989 |
+
Computational Linguistics Volume 30, Number 3
|
| 990 |
+
|
| 991 |
+
|
| 992 |
+
for one parse over any other. In this section, we provide a formal definition for both
|
| 993 |
+
functions.
|
| 994 |
+
Suppose that a parsing model _G_ generates a candidate sentence **w** with probability
|
| 995 |
+
_P_ ( **w** _| G_ ), and that the set _V_ contains all possible parses that _G_ generated for **w** . Then,
|
| 996 |
+
we denote the probability of _G_ ’s generating a single parse, _v ∈V_, as _P_ ( _v | G_ ) such that
|
| 997 |
+
|
| 998 |
+
|
| 999 |
+
_P_ ( _v | G_ ) = _P_ ( **w** _| G_ ). The parse chosen for **w** is the most likely parse in _V_, denoted
|
| 1000 |
+
_v∈V_
|
| 1001 |
+
|
| 1002 |
+
as _v_ max, where
|
| 1003 |
+
_v_ max = argmax _v∈V_ _P_ ( _v | G_ )
|
| 1004 |
+
|
| 1005 |
+
|
| 1006 |
+
Note that _P_ ( _v_ _|_ _G_ ) reflects the probability of one particular parse tree, _v_, out of all
|
| 1007 |
+
possible parse trees for all possible sentences that _G_ can generate. To compute the
|
| 1008 |
+
likelihood of a parse’s being the correct parse out of the possible parses of **w** according
|
| 1009 |
+
to _G_, denoted as _P_ ( _v |_ **w**, _G_ ), we need to normalize the tree probability by the sentence
|
| 1010 |
+
probability. So according to _G_, the likelihood that _v_ max is the correct parse for **w** is [9]
|
| 1011 |
+
|
| 1012 |
+
|
| 1013 |
+
_P_ ( _v_ max _| G_ )
|
| 1014 |
+
_P_ ( _v_ max _|_ **w**, _G_ ) =
|
| 1015 |
+
|
| 1016 |
+
_P_ ( **w** _| G_ )
|
| 1017 |
+
|
| 1018 |
+
= ~~�~~ _P_ ( _v_ max _| G_ ) (2)
|
| 1019 |
+
|
| 1020 |
+
_v∈V_ _[P]_ [(] _[v][ |][ G]_ [)] _[.]_
|
| 1021 |
+
|
| 1022 |
+
|
| 1023 |
+
Therefore, the error-driven evaluation function is defined as
|
| 1024 |
+
|
| 1025 |
+
|
| 1026 |
+
_f_ err( **w**, _G_ ) = 1 _−_ _P_ ( _v_ max _|_ **w**, _G_ )
|
| 1027 |
+
|
| 1028 |
+
|
| 1029 |
+
|
| 1030 |
+
Unlike the error-driven function, which focuses on the most likely parse, the
|
| 1031 |
+
uncertainty-based function takes the probability distribution of all parses into account.
|
| 1032 |
+
To quantitatively characterize its distribution, we compute the entropy of the distribution. That is,
|
| 1033 |
+
|
| 1034 |
+
|
| 1035 |
+
|
| 1036 |
+
|
| 1037 |
+
_H_ ( _V_ ) = _−_
|
| 1038 |
+
|
| 1039 |
+
|
| 1040 |
+
|
| 1041 |
+
_p_ ( _v_ ) lg( _p_ ( _v_ )) (3)
|
| 1042 |
+
_v∈V_
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
|
| 1046 |
+
where _V_ is a random variable that can take any possible outcome in set _V_, and _p_ ( _v_ ) =
|
| 1047 |
+
Pr( _V_ = _v_ ) is the density function. Further details about the properties of entropy can
|
| 1048 |
+
be found in textbooks on information theory (e.g., Cover and Thomas 1991).
|
| 1049 |
+
Determining the parse tree for a sentence from a set of possible parses can be
|
| 1050 |
+
viewed as assigning a value to a random variable. Thus, a direct application of the
|
| 1051 |
+
entropy definition to the probability distribution of the parses for sentence **w** in _G_
|
| 1052 |
+
computes its **tree** **entropy**, _TE_ ( **w**, _G_ ), the expected number of bits needed to encode
|
| 1053 |
+
the distribution of possible parses for **w** . However, we may not wish to compare
|
| 1054 |
+
two sentences with different numbers of parses by their entropy directly. If the parse
|
| 1055 |
+
probability distributions for both sentences are uniform, the sentence with more parses
|
| 1056 |
+
will have a higher entropy. Because longer sentences typically have more parses, using
|
| 1057 |
+
entropy directly would result in a bias toward selecting long sentences. To normalize
|
| 1058 |
+
for the number of parses, the uncertainty-based evaluation function, _f_ unc, is defined as
|
| 1059 |
+
a measurement of similarity between the actual probability distribution of the parses
|
| 1060 |
+
and a hypothetical uniform distribution for that set of parses. In particular, we divide
|
| 1061 |
+
|
| 1062 |
+
|
| 1063 |
+
9 Note that _P_ ( **w** _|v_, _G_ ) = 1 for any _v ∈V_, where _V_ is the set of all possible parses for **w**, because _v_ exists
|
| 1064 |
+
only when **w** is observed.
|
| 1065 |
+
|
| 1066 |
+
|
| 1067 |
+
266
|
| 1068 |
+
|
| 1069 |
+
|
| 1070 |
+
Hwa Sample Selection for Statistical Parsing
|
| 1071 |
+
|
| 1072 |
+
|
| 1073 |
+
the tree entropy by the log of the number of parses: [10]
|
| 1074 |
+
|
| 1075 |
+
|
| 1076 |
+
_f_ unc( **w**, _G_ ) = _[TE]_ [(] **[w]** [,] _[ G]_ [)]
|
| 1077 |
+
|
| 1078 |
+
lg( _∥V∥_ )
|
| 1079 |
+
|
| 1080 |
+
|
| 1081 |
+
We now derive the expression for _TE_ ( **w**, _G_ ). Recall from equation (2) that if _G_
|
| 1082 |
+
produces a set of parses, _V_, for sentence **w**, the set of probabilities _P_ ( _v |_ **w**, _G_ ) (for all
|
| 1083 |
+
_v ∈V_ ) defines the distribution of parsing likelihoods for sentence **w** :
|
| 1084 |
+
|
| 1085 |
+
|
| 1086 |
+
|
| 1087 |
+
_P_ ( _v |_ **w**, _G_ ) = 1
|
| 1088 |
+
_v∈V_
|
| 1089 |
+
|
| 1090 |
+
|
| 1091 |
+
Note that _P_ ( _v |_ **w**, _G_ ) can be viewed as a density function _p_ ( _v_ ) (i.e., the probability of
|
| 1092 |
+
assigning _v_ to a random variable _V_ ). Mapping it back into the entropy definition from
|
| 1093 |
+
equation (3), we derive the tree entropy of **w** as follows:
|
| 1094 |
+
|
| 1095 |
+
|
| 1096 |
+
|
| 1097 |
+
_TE_ ( **w**, _G_ ) = _H_ ( _V_ )
|
| 1098 |
+
|
| 1099 |
+
|
| 1100 |
+
|
| 1101 |
+
|
| 1102 |
+
= _−_
|
| 1103 |
+
|
| 1104 |
+
|
| 1105 |
+
|
| 1106 |
+
_p_ ( _v_ ) lg( _p_ ( _v_ ))
|
| 1107 |
+
_v∈V_
|
| 1108 |
+
|
| 1109 |
+
|
| 1110 |
+
|
| 1111 |
+
|
| 1112 |
+
= _−_
|
| 1113 |
+
|
| 1114 |
+
|
| 1115 |
+
_v∈V_
|
| 1116 |
+
|
| 1117 |
+
= _−_
|
| 1118 |
+
|
| 1119 |
+
|
| 1120 |
+
_v∈V_
|
| 1121 |
+
|
| 1122 |
+
|
| 1123 |
+
|
| 1124 |
+
_P_ ( _v | G_ ) _P_ ( **w** _| G_ ) [lg][(] _[P]_ [(] _[v][ |][ G]_ [)) +]
|
| 1125 |
+
|
| 1126 |
+
_v∈V_
|
| 1127 |
+
|
| 1128 |
+
|
| 1129 |
+
|
| 1130 |
+
_P_ ( _v | G_ ) _[P]_ [(] _[v][ |][ G]_ [)]
|
| 1131 |
+
_P_ ( **w** _| G_ ) [lg][(] _P_ ( **w** _| G_ ) [)]
|
| 1132 |
+
|
| 1133 |
+
|
| 1134 |
+
|
| 1135 |
+
_P_ ( _v | G_ )
|
| 1136 |
+
_P_ ( **w** _| G_ ) [lg][(] _[P]_ [(] **[w]** _[ |][ G]_ [))]
|
| 1137 |
+
|
| 1138 |
+
|
| 1139 |
+
|
| 1140 |
+
|
| 1141 |
+
|
| 1142 |
+
_P_ ( _v | G_ )
|
| 1143 |
+
_v∈V_
|
| 1144 |
+
|
| 1145 |
+
|
| 1146 |
+
|
| 1147 |
+
1
|
| 1148 |
+
= _−_
|
| 1149 |
+
_P_ ( **w** _| G_ )
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
1
|
| 1153 |
+
= _−_
|
| 1154 |
+
_P_ ( **w** _| G_ )
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
|
| 1162 |
+
_P_ ( _v | G_ ) lg( _P_ ( _v | G_ )) + [lg][(] _[P]_ [(] **[w]** _[ |][ G]_ [))]
|
| 1163 |
+
|
| 1164 |
+
_P_ ( **w** _| G_ )
|
| 1165 |
+
|
| 1166 |
+
_v∈V_
|
| 1167 |
+
|
| 1168 |
+
|
| 1169 |
+
|
| 1170 |
+
_P_ ( _v | G_ ) lg( _P_ ( _v | G_ )) + lg( _P_ ( **w** _| G_ ))
|
| 1171 |
+
_v∈V_
|
| 1172 |
+
|
| 1173 |
+
|
| 1174 |
+
|
| 1175 |
+
_P_ ( **w** _| G_ )
|
| 1176 |
+
|
| 1177 |
+
|
| 1178 |
+
|
| 1179 |
+
|
| 1180 |
+
|
| 1181 |
+
|
| 1182 |
+
|
| 1183 |
+
Using the bottom-up, dynamic programming technique (see the appendix for details) of computing inside probabilities (Lari and Young 1990), we can efficiently compute the probability of the sentence, _P_ ( **w** _| G_ ). Similarly, the algorithm can be modified
|
| 1184 |
+
to compute the quantity [�] _P_ ( _v | G_ ) lg( _P_ ( _v | G_ )).
|
| 1185 |
+
|
| 1186 |
+
_v∈V_
|
| 1187 |
+
|
| 1188 |
+
|
| 1189 |
+
**4.1.3** **The** **Parameters** **of** **the** **Hypothesis.** Although the confidence-based function
|
| 1190 |
+
gives good TUV estimates to candidates for training PP-attachment models, it is not
|
| 1191 |
+
clear how a similar technique can be applied to training parsers. Whereas binary
|
| 1192 |
+
classification tasks can be described by binomial distributions, for which the confidence interval is well defined, a parsing model is made up of many multinomial
|
| 1193 |
+
classification decisions. We therefore need a way to characterize the confidence for
|
| 1194 |
+
each decision as well as a way to combine them into an overall confidence. Another
|
| 1195 |
+
difficulty is that the complexity of the induction algorithm deters us from reestimating the TUVs of the remaining candidates after selecting each new candidate. As we
|
| 1196 |
+
|
| 1197 |
+
|
| 1198 |
+
10 When _f_ unc( **w**, _G_ ) = 1, the parser is considered to be the most uncertain about a particular sentence.
|
| 1199 |
+
Instead of dividing tree entropies, one could have computed the Kullback-Leibler distance between the
|
| 1200 |
+
two distributions (in which case a score of zero would indicate the highest level of uncertainty).
|
| 1201 |
+
Because the selection is based on relative scores, as long as the function is monotonic, the exact form of
|
| 1202 |
+
the function should not have much impact on the outcome.
|
| 1203 |
+
|
| 1204 |
+
|
| 1205 |
+
267
|
| 1206 |
+
|
| 1207 |
+
|
| 1208 |
+
Computational Linguistics Volume 30, Number 3
|
| 1209 |
+
|
| 1210 |
+
|
| 1211 |
+
discussed in Section 3.3, reestimation is important for batched annotation. Without
|
| 1212 |
+
some means of updating the TUVs after each selection, the learner will not realize that
|
| 1213 |
+
it has already selected a candidate to train some parameter with low confidence until
|
| 1214 |
+
the retraining phase, which occurs only at the end of the batch selection; therefore, it
|
| 1215 |
+
may continue to select very similar candidates to train the same parameter. Even if we
|
| 1216 |
+
assume that the statistics can be updated, reestimating the TUVs is a computationally
|
| 1217 |
+
expensive operation. Essentially, all the remaining candidates that share some parameters with the selected candidate will need to be re-parsed. For these practical reasons, we do not include an evaluation function measuring confidence for the parsing
|
| 1218 |
+
experiment.
|
| 1219 |
+
|
| 1220 |
+
|
| 1221 |
+
**4.2** **Experiments** **and** **Results**
|
| 1222 |
+
We compare the effectiveness of sample selection using the proposed evaluation functions against a baseline of random selection ( _f_ rand( **w**, _G_ ) = _rand_ ()). Similarly to previous
|
| 1223 |
+
experimental designs, the learner is given a small set of annotated seed data from the
|
| 1224 |
+
WSJ Treebank and a large set of unlabeled data (also from the WSJ Treebank but with
|
| 1225 |
+
the labels removed) from which to select new training examples. All training data are
|
| 1226 |
+
from Sections 2–21 of the treebank. We monitor the learning progress of the parser by
|
| 1227 |
+
testing it on unseen test sentences. We use Section 00 for development and Section
|
| 1228 |
+
23 for testing. This study is repeated for two different models, the PLTIG parser and
|
| 1229 |
+
Collins’s Model 2 parser.
|
| 1230 |
+
|
| 1231 |
+
|
| 1232 |
+
**4.2.1** **An** **Expectation-Maximization-Based** **Learner.** In the first experiment, we use
|
| 1233 |
+
an induction algorithm (Hwa 2001a) based on the expectation-maximization (EM)
|
| 1234 |
+
principle that induces parsers for PLTIGs. The algorithm performs heuristic search
|
| 1235 |
+
through an iterative reestimation procedure to find local optima: sets of values for
|
| 1236 |
+
the grammar parameters that maximizes the grammar’s likelihood of generating the
|
| 1237 |
+
training data. In principle, the algorithm supports unsupervised learning; however,
|
| 1238 |
+
because the search space has too many local optima, the algorithm tends to converge
|
| 1239 |
+
on a model that is unsuitable for parsing. Here, we consider a partially supervised
|
| 1240 |
+
variant in which we assume that the learner is given the phrasal boundaries of the
|
| 1241 |
+
training sentences but not the label of the constituent units. For example, the sentence
|
| 1242 |
+
_Several_ _fund_ _managers_ _expect_ _a_ _rough_ _market_ _this_ _morning_ _before_ _prices_ _stabilize._ would be
|
| 1243 |
+
labeled as “((Several fund managers) (expect ((a rough market) (this morning)) (before
|
| 1244 |
+
(prices stabilize))).)” Our algorithm is similar to the approach taken by Pereira and
|
| 1245 |
+
Schabes (1992) for inducing PCFG parsers.
|
| 1246 |
+
Because the EM algorithm itself is an iterative procedure, performing sample selection on top of an EM-based learner is an extremely computational-intensive process.
|
| 1247 |
+
Here, we restrict the experiments for the PLTIG parsers to a smaller-scale study in the
|
| 1248 |
+
following two aspects. First, the lexical anchors of the grammar rules are backed off to
|
| 1249 |
+
part-of-speech tags; this restricts the size of the grammar vocabulary to 48. Second, the
|
| 1250 |
+
unlabeled candidate pool is set to contain 3,600 sentences, which is sufficiently large
|
| 1251 |
+
for inducing a grammar of this size. The initial model is trained on 500 labeled seed
|
| 1252 |
+
sentences. For each selection iteration, an additional 100 sentences are moved from
|
| 1253 |
+
the unlabeled pool to be labeled and added to the training set. After training, the
|
| 1254 |
+
updated parser is then tested on unseen sentences (backed off to their part-of-speech
|
| 1255 |
+
tags) and compared to the gold standard. Because the induced PLTIG produces binarybranching parse trees, which have more layers than the gold standard, we measure
|
| 1256 |
+
parsing accuracy in terms of the crossing-bracket metric. The study is repeated for
|
| 1257 |
+
10 trials, each using a different portion of the full training set, to ensure statistical
|
| 1258 |
+
significance (using pairwise _t_ -test at 95% confidence).
|
| 1259 |
+
|
| 1260 |
+
|
| 1261 |
+
268
|
| 1262 |
+
|
| 1263 |
+
|
| 1264 |
+
Hwa Sample Selection for Statistical Parsing
|
| 1265 |
+
|
| 1266 |
+
|
| 1267 |
+
81
|
| 1268 |
+
|
| 1269 |
+
|
| 1270 |
+
|
| 1271 |
+
80
|
| 1272 |
+
|
| 1273 |
+
|
| 1274 |
+
79
|
| 1275 |
+
|
| 1276 |
+
|
| 1277 |
+
78
|
| 1278 |
+
|
| 1279 |
+
|
| 1280 |
+
77
|
| 1281 |
+
|
| 1282 |
+
|
| 1283 |
+
76
|
| 1284 |
+
|
| 1285 |
+
|
| 1286 |
+
|
| 1287 |
+
|
| 1288 |
+
|
| 1289 |
+
5000 10000 15000 20000 25000 30000 35000 40000 45000
|
| 1290 |
+
|
| 1291 |
+
|
| 1292 |
+
Number of labeled brackets in the training set
|
| 1293 |
+
|
| 1294 |
+
(a)
|
| 1295 |
+
|
| 1296 |
+
|
| 1297 |
+
40,000
|
| 1298 |
+
|
| 1299 |
+
|
| 1300 |
+
35,000
|
| 1301 |
+
|
| 1302 |
+
|
| 1303 |
+
30,000
|
| 1304 |
+
|
| 1305 |
+
|
| 1306 |
+
25,000
|
| 1307 |
+
|
| 1308 |
+
|
| 1309 |
+
20,000
|
| 1310 |
+
|
| 1311 |
+
|
| 1312 |
+
15,000
|
| 1313 |
+
|
| 1314 |
+
|
| 1315 |
+
10,000
|
| 1316 |
+
|
| 1317 |
+
|
| 1318 |
+
5,000
|
| 1319 |
+
|
| 1320 |
+
|
| 1321 |
+
0
|
| 1322 |
+
|
| 1323 |
+
|
| 1324 |
+
Evaluation functions
|
| 1325 |
+
|
| 1326 |
+
|
| 1327 |
+
(b)
|
| 1328 |
+
|
| 1329 |
+
|
| 1330 |
+
**Figure** **7**
|
| 1331 |
+
PLTIG parser: (a) A comparison of the evaluation functions’ learning curves. (b) A comparison
|
| 1332 |
+
of the evaluation functions for a test performance score of 80%.
|
| 1333 |
+
|
| 1334 |
+
|
| 1335 |
+
The results of the experiment are graphically shown in Figure 7. As with the
|
| 1336 |
+
PP-attachment studies, Figure 7(a) compares the learning curves of the proposed evaluation functions to that of the baseline. Note that even though these functions select
|
| 1337 |
+
examples in terms of entire sentences, the amount of annotation is measured in the
|
| 1338 |
+
graphs ( _x_ -axis) in terms of the number of _brackets_ rather than sentences. Unlike in
|
| 1339 |
+
the PP-attachment case, the amount of effort from the annotators varies significantly
|
| 1340 |
+
from example to example. A short and simple sentence takes much less time to annotate than a long and complex sentence. We address this effect by approximating
|
| 1341 |
+
the amount of effort as the number of brackets the annotator needs to label. Thus,
|
| 1342 |
+
we deem one evaluation function more effective than another if, for the desired level
|
| 1343 |
+
of performance, the smallest set of sentences selected by the function contains fewer
|
| 1344 |
+
brackets than that of the other function. Figure 7(b) compares the evaluation functions
|
| 1345 |
+
at the final test performance level of 80%.
|
| 1346 |
+
|
| 1347 |
+
|
| 1348 |
+
269
|
| 1349 |
+
|
| 1350 |
+
|
| 1351 |
+
Computational Linguistics Volume 30, Number 3
|
| 1352 |
+
|
| 1353 |
+
|
| 1354 |
+
Qualitatively comparing the learning curves in the figure, we see that with the appropriate evaluation function, sample selection does reduce the amount of annotation.
|
| 1355 |
+
Similarly to our findings in the PP-attachment study, the simple problem-space-based
|
| 1356 |
+
evaluation function, _f_ len, offers only little savings; its performance is nearly indistinguishable from that of the baseline, for the most part. [11] The evaluation functions based
|
| 1357 |
+
on hypothesis performances, on the other hand, do reduce the amount of annotation in
|
| 1358 |
+
the training data. Of the two that we proposed for this category, the tree entropy evaluation function, _f_ unc, has a slight edge over the error-driven evaluation function, _f_ err.
|
| 1359 |
+
For a quantitative comparison, let us consider the set of grammars that achieve
|
| 1360 |
+
an average parsing accuracy of 80% on the test sentences. We consider a grammar to
|
| 1361 |
+
be comparable to that of the baseline if its mean test score is at least as high as that
|
| 1362 |
+
of the baseline and if the difference between the means is not statistically significant.
|
| 1363 |
+
The baseline case requires an average of about 38,000 brackets in the training data. In
|
| 1364 |
+
contrast, to induce a grammar that reaches the same 80% parsing accuracy with the
|
| 1365 |
+
examples selected by _f_ unc, the learner requires, on average, 19,000 training brackets.
|
| 1366 |
+
Although the learning rate of _f_ err is slower than that of _f_ unc overall, it seems to have
|
| 1367 |
+
caught up in the end; it needs 21,000 training brackets, slightly more than _f_ unc. While
|
| 1368 |
+
the simplistic sentence length evaluation function, _f_ len, is less helpful, its learning rate
|
| 1369 |
+
still improves slightly faster than that of the baseline. A grammar of comparable quality
|
| 1370 |
+
can be induced from a set of training examples selected by _f_ len containing an average
|
| 1371 |
+
of 28,000 brackets. [12]
|
| 1372 |
+
|
| 1373 |
+
|
| 1374 |
+
**4.2.2** **A** **History-Based** **Learner.** In the second experiment, the basic learning model
|
| 1375 |
+
is Collins’s (1997) Model 2 parser, which uses a history-based learning algorithm that
|
| 1376 |
+
takes statistics directly over the treebank. As a fully supervised algorithm, it does not
|
| 1377 |
+
have to iteratively reestimate its parameters and is computationally efficient enough
|
| 1378 |
+
for us to carry out a large-scale experiment. For this set of studies, the unlabeled
|
| 1379 |
+
candidate pool consists of around 39,000 sentences. The initial model is trained on
|
| 1380 |
+
500 labeled seed sentences, and at each selection iteration, an additional 100 sentences
|
| 1381 |
+
are moved from the unlabeled pool into the training set. The parsing performance on
|
| 1382 |
+
the test sentences is measured in terms of the parser’s F-score, the harmonic average
|
| 1383 |
+
of the labeled precision and labeled recall rates over the constituents (Van Rijsbergen
|
| 1384 |
+
1979). [13]
|
| 1385 |
+
|
| 1386 |
+
We plot the comparisons between different evaluation functions and the baseline
|
| 1387 |
+
for the history-based parser in Figure 8. The examples selected by the problem-spacebased functions do not seem to be helpful. Their learning curves are, for the most part,
|
| 1388 |
+
slightly worse than the baseline. In contrast, the parsers trained on data selected by
|
| 1389 |
+
the error-driven and uncertainty-based functions learn faster than the baseline; and as
|
| 1390 |
+
before, _f_ unc performs slightly better than _f_ err.
|
| 1391 |
+
For the final parsing performance of 88%, the parser requires a baseline training set
|
| 1392 |
+
of 30,500 sentences annotated with about 695,000 constituents. The same performance
|
| 1393 |
+
can be achieved with a training set of 20,500 sentences selected by _f_ err, which contains
|
| 1394 |
+
about 577,000 annotated constituents; or with a training set of 17,500 sentences selected
|
| 1395 |
+
by _f_ unc, which contains about 505,000 annotated constituents, reducing the number of
|
| 1396 |
+
annotated constituents by 27%. Comparing the outcome of this experiment with that of
|
| 1397 |
+
|
| 1398 |
+
|
| 1399 |
+
11 In this experiment, we have omitted the evaluation function for selecting novel lexical relationships,
|
| 1400 |
+
_f_ lex, because the grammar does not use actual lexical anchors.
|
| 1401 |
+
12 In terms of the number of sentences, the baseline _f_ rand selected 2,600 sentences; _f_ len selected 1,300
|
| 1402 |
+
sentences; and _f_ err and _f_ unc each selected 900 sentences.
|
| 1403 |
+
13 _F_ = [2] _[×]_ _LR_ _[LR]_ + _[×]_ _LP_ _[LP]_ [,] [where] _[LR]_ [is] [the] [labeled] [recall] [score] [and] _[LP]_ [is] [the] [labeled] [precision] [score.]
|
| 1404 |
+
|
| 1405 |
+
|
| 1406 |
+
270
|
| 1407 |
+
|
| 1408 |
+
|
| 1409 |
+
Hwa Sample Selection for Statistical Parsing
|
| 1410 |
+
|
| 1411 |
+
|
| 1412 |
+
88
|
| 1413 |
+
|
| 1414 |
+
|
| 1415 |
+
|
| 1416 |
+
86
|
| 1417 |
+
|
| 1418 |
+
|
| 1419 |
+
84
|
| 1420 |
+
|
| 1421 |
+
|
| 1422 |
+
82
|
| 1423 |
+
|
| 1424 |
+
|
| 1425 |
+
80
|
| 1426 |
+
|
| 1427 |
+
|
| 1428 |
+
78
|
| 1429 |
+
|
| 1430 |
+
|
| 1431 |
+
|
| 1432 |
+
|
| 1433 |
+
|
| 1434 |
+
100000 200000 300000 400000 500000 600000 700000 800000 900000
|
| 1435 |
+
|
| 1436 |
+
|
| 1437 |
+
Number of labeled constituents in the training set
|
| 1438 |
+
|
| 1439 |
+
(a)
|
| 1440 |
+
|
| 1441 |
+
|
| 1442 |
+
800,000
|
| 1443 |
+
|
| 1444 |
+
|
| 1445 |
+
700,000
|
| 1446 |
+
|
| 1447 |
+
|
| 1448 |
+
600,000
|
| 1449 |
+
|
| 1450 |
+
|
| 1451 |
+
500,000
|
| 1452 |
+
|
| 1453 |
+
|
| 1454 |
+
400,000
|
| 1455 |
+
|
| 1456 |
+
|
| 1457 |
+
300,000
|
| 1458 |
+
|
| 1459 |
+
|
| 1460 |
+
200,000
|
| 1461 |
+
|
| 1462 |
+
|
| 1463 |
+
100,000
|
| 1464 |
+
|
| 1465 |
+
|
| 1466 |
+
0
|
| 1467 |
+
|
| 1468 |
+
|
| 1469 |
+
Evaluation Functions
|
| 1470 |
+
|
| 1471 |
+
|
| 1472 |
+
(b)
|
| 1473 |
+
|
| 1474 |
+
|
| 1475 |
+
**Figure** **8**
|
| 1476 |
+
Model 2 parser: (a) A comparison of the learning curves of the evaluation functions. (b) A
|
| 1477 |
+
comparison of all the evaluation functions at the test performance level of 88%.
|
| 1478 |
+
|
| 1479 |
+
|
| 1480 |
+
the experiment involving the EM-based learner, we see that the training data reduction
|
| 1481 |
+
rates are less dramatic than before. This may be because both _f_ unc and _f_ err ignore lexical
|
| 1482 |
+
items and chase after sentences containing words that rarely occur. Recent work by
|
| 1483 |
+
Tang, Luo, and Roukos (2002) suggests that a hybrid approach that combines features
|
| 1484 |
+
of the problem space and the uncertainty of the parser may result in better performance
|
| 1485 |
+
for lexicalized parsers.
|
| 1486 |
+
|
| 1487 |
+
|
| 1488 |
+
**5.** **Related** **Work**
|
| 1489 |
+
|
| 1490 |
+
|
| 1491 |
+
Sample selection benefits problems in which the cost of acquiring raw data is cheap but
|
| 1492 |
+
the cost of annotating them is high, as is certainly the case for many supervised learning tasks in natural language processing. In addition to PP-attachment, as discussed
|
| 1493 |
+
in this article, sample selection has been successfully applied to other classification
|
| 1494 |
+
|
| 1495 |
+
|
| 1496 |
+
271
|
| 1497 |
+
|
| 1498 |
+
|
| 1499 |
+
Computational Linguistics Volume 30, Number 3
|
| 1500 |
+
|
| 1501 |
+
|
| 1502 |
+
applications. Some examples include text categorization (Lewis and Catlett 1994), base
|
| 1503 |
+
noun phrase chunking (Ngai and Yarowsky 2000), part-of-speech tagging (Engelson
|
| 1504 |
+
Dagan 1996), spelling confusion set disambiguation (Banko and Brill 2001), and word
|
| 1505 |
+
sense disambiguation (Fujii et al. 1998).
|
| 1506 |
+
More challenging are learning problems whose objective is not classification, but
|
| 1507 |
+
generation of complex structures. One example in this direction is applying sample
|
| 1508 |
+
selection to semantic parsing (Thompson, Califf, and Mooney 1999), in which sentences
|
| 1509 |
+
are paired with their semantic representation using a deterministic shift-reduce parser.
|
| 1510 |
+
A recent effort that focuses on statistical syntactic parsing is the work by Tang, Lou,
|
| 1511 |
+
and Roukos (2002). Their results suggest that the number of training examples can be
|
| 1512 |
+
further reduced by using a hybrid evaluation function that combines a hypothesisperformance-based metric such as tree entropy (“word entropy” in their terminology)
|
| 1513 |
+
with a problem-space-based metric such as sentence clusters.
|
| 1514 |
+
Aside from active learning, researchers have applied other learning techniques
|
| 1515 |
+
to combat the annotation bottleneck problem in parsing. For example, Henderson
|
| 1516 |
+
and Brill (2002) consider the case in which acquiring additional human-annotated
|
| 1517 |
+
training data is not possible. They show that parser performance can be improved by
|
| 1518 |
+
using boosting and bagging techniques with multiple parsers. This approach assumes
|
| 1519 |
+
that there are enough existing labeled data to train the individual parsers. Another
|
| 1520 |
+
technique for making better use of unlabeled data is cotraining (Blum and Mitchell
|
| 1521 |
+
1998), in which two sufficiently different learners help each other learn by labeling
|
| 1522 |
+
training data for one another. The work of Sarkar (2001) and Steedman, Osborne, et
|
| 1523 |
+
al. (2003) suggests that co-training can be helpful for statistical parsing. Pierce and
|
| 1524 |
+
Cardie (2001) have shown, in the context of base noun identification, that combining
|
| 1525 |
+
sample selection and cotraining can be an effective learning framework for large-scale
|
| 1526 |
+
training. Similar approaches are being explored for parsing (Steedman, Hwa, et al.
|
| 1527 |
+
2003; Hwa et al. 2003).
|
| 1528 |
+
|
| 1529 |
+
|
| 1530 |
+
**6.** **Conclusion**
|
| 1531 |
+
|
| 1532 |
+
|
| 1533 |
+
In this article, we have argued that sample selection is a powerful learning technique
|
| 1534 |
+
for reducing the amount of human-labeled training data. Our empirical studies suggest
|
| 1535 |
+
that sample selection is helpful not only for binary classification tasks such as PPattachment, but also for applications that generate complex outputs such as syntactic
|
| 1536 |
+
parsing.
|
| 1537 |
+
We have proposed several criteria for predicting the training utility of the unlabeled candidates and developed evaluation functions to rank them. We have conducted
|
| 1538 |
+
experiments to compare the functions’ ability to select the most helpful training examples. We have found that the uncertainty criterion is a good predictor that consistently
|
| 1539 |
+
finds helpful examples. In our experiments, evaluation functions that factor in the
|
| 1540 |
+
uncertainty criterion consistently outperform the baseline of random selection across
|
| 1541 |
+
different tasks and learning algorithms. For learning a PP-attachment model, the most
|
| 1542 |
+
helpful evaluation function is a hybrid that factors in the prediction performance of the
|
| 1543 |
+
hypothesis and the confidence for the values of the parameters of the hypothesis. For
|
| 1544 |
+
training a parser, we found that uncertainty-based evaluation functions that use tree
|
| 1545 |
+
entropy were the most helpful for both the EM-based learner and the history-based
|
| 1546 |
+
learner.
|
| 1547 |
+
The current work points us in several future directions. First, we shall continue
|
| 1548 |
+
to develop alternative formulations of evaluation functions to improve the learning rates of parsers. Under the current framework, we did not experiment with any
|
| 1549 |
+
hypothesis-parameter-based evaluation functions for the parser induction task; how
|
| 1550 |
+
|
| 1551 |
+
272
|
| 1552 |
+
|
| 1553 |
+
|
| 1554 |
+
Hwa Sample Selection for Statistical Parsing
|
| 1555 |
+
|
| 1556 |
+
|
| 1557 |
+
ever, hypothesis-parameter-based functions may be feasible under a multilearner setting, using parallel machines. Second, while in this work we focused on selecting
|
| 1558 |
+
entire sentences as training examples, we believe that further reduction in the amount
|
| 1559 |
+
of annotated training data might be possible if the system could ask the annotators
|
| 1560 |
+
more-specific questions. For example, if the learner is unsure only of a local decision
|
| 1561 |
+
within a sentence (such as a PP-attachment ambiguity), the annotator should not have
|
| 1562 |
+
to label the entire sentence.
|
| 1563 |
+
In order to allow for finer-grained interactions between the system and the annotators, we have to address some new challenges. To begin with, we must weigh
|
| 1564 |
+
in other factors in addition to the amount of annotations. For instance, the learner
|
| 1565 |
+
may ask about multiple substrings in one sentence. Even if the total number of labels were fewer, the same sentence would still need to be mentally processed by the
|
| 1566 |
+
annotators multiple times. This situation is particularly problematic when there are
|
| 1567 |
+
very few annotators, as it becomes much more likely that a person will encounter the
|
| 1568 |
+
same sentence many times. Moreover, we must ensure that the questions asked by the
|
| 1569 |
+
learner are well-formed. If the learner were simply to present the annotator with some
|
| 1570 |
+
substring that it could not process, the substring might not form a proper linguistic
|
| 1571 |
+
constituent for the annotator to label. Additionally, we are interested in exploring the
|
| 1572 |
+
interaction between sample selection and other semisupervised approaches such as
|
| 1573 |
+
boosting, reranking, and cotraining. Finally, based on our experience with parsing, we
|
| 1574 |
+
believe that active-learning techniques may be applicable to other tasks that produce
|
| 1575 |
+
complex outputs such as machine translation.
|
| 1576 |
+
|
| 1577 |
+
|
| 1578 |
+
**Appendix:** **Efficient** **Computation** **of** **Tree** **Entropy**
|
| 1579 |
+
|
| 1580 |
+
|
| 1581 |
+
|
| 1582 |
+
As discussed in Section 4.1.2, for learning tasks such as parsing, the number of possible classifications is so large that it may not be computationally efficient to calculate
|
| 1583 |
+
the degree of uncertainty using the tree entropy definition. In the equation for the tree
|
| 1584 |
+
entropy of **w** ( _TE_ ( **w**, _G_ )) presented in Section 4.1.2, the computation requires summing
|
| 1585 |
+
over all possible parses, but the number of possible parses for a sentence grows exponentially with respect to the sentence length. In this appendix, we show that tree
|
| 1586 |
+
entropy can be efficiently computed using dynamic programming.
|
| 1587 |
+
For illustrative purposes, we describe the computation process using a PCFG expressed in Chomsky normal form. [14] The basic idea is to compose the tree entropy of
|
| 1588 |
+
the entire sentence from the tree entropy of the subtrees. The process is similar to
|
| 1589 |
+
that for computing the probability of the entire sentence from the probabilities of substrings (called **Inside** **Probabilities** ). We follow the notation convention of Lari and
|
| 1590 |
+
Young (1990).
|
| 1591 |
+
The inside probability of a nonterminal _X_ generating the substring _wi . . . wj_ is
|
| 1592 |
+
denoted as _e_ ( _X_, _i_, _j_ ); it is the sum of the probabilities of all possible subtrees that have
|
| 1593 |
+
_X_ as the root and _wi . . . wj_ as the leaf nodes. We define a new function _h_ ( _X_, _i_, _j_ ) to
|
| 1594 |
+
represent the corresponding entropy for the substring:
|
| 1595 |
+
|
| 1596 |
+
|
| 1597 |
+
|
| 1598 |
+
|
| 1599 |
+
_h_ ( _X_, _i_, _j_ ) = _−_
|
| 1600 |
+
|
| 1601 |
+
|
| 1602 |
+
|
| 1603 |
+
_P_ ( **x** _| G_ ) lg( _P_ ( **x** _| G_ ))
|
| 1604 |
+
|
| 1605 |
+
|
| 1606 |
+
|
| 1607 |
+
_∗_
|
| 1608 |
+
**x** _∈X⇒wi...wj_
|
| 1609 |
+
|
| 1610 |
+
|
| 1611 |
+
where _G_ is the current model. Under this notation, the tree entropy of a sentence,
|
| 1612 |
+
|
| 1613 |
+
|
| 1614 |
+
_P_ ( _v | G_ ) lg _P_ ( _v | G_ ), is denoted as _h_ ( _S_, 1, _n_ ).
|
| 1615 |
+
_v∈V_
|
| 1616 |
+
|
| 1617 |
+
|
| 1618 |
+
14 That is, every production rule must be in one of two forms: a nonterminal expands into two more
|
| 1619 |
+
nonterminals, or a nonterminal expands into a terminal.
|
| 1620 |
+
|
| 1621 |
+
|
| 1622 |
+
273
|
| 1623 |
+
|
| 1624 |
+
|
| 1625 |
+
Computational Linguistics Volume 30, Number 3
|
| 1626 |
+
|
| 1627 |
+
|
| 1628 |
+
Analogously to the computation of inside probabilities, we compute _h_ ( _X_, _i_, _j_ ) recursively. The base case is when the nonterminal _X_ generates a single token substring
|
| 1629 |
+
_wi_ . The only possible tree has _X_ at the root, immediately dominating the leaf node _wi_ .
|
| 1630 |
+
Therefore, the tree entropy is
|
| 1631 |
+
|
| 1632 |
+
|
| 1633 |
+
_h_ ( _X_, _i_, _i_ ) = _e_ ( _X_, _i_, _i_ ) lg( _e_ ( _X_, _i_, _i_ ))
|
| 1634 |
+
|
| 1635 |
+
|
| 1636 |
+
For the general case, _h_ ( _X_, _i_, _j_ ), we must find all rules of the form _X →_ _YZ_, where _Y_ and
|
| 1637 |
+
_∗_
|
| 1638 |
+
_Z_ are nonterminals, that have contributed toward _X_ _⇒_ _wi . . . wj_ . To do so, we consider
|
| 1639 |
+
_∗_
|
| 1640 |
+
all possible ways dividing up _wi . . . wj_ into two pieces such that _Y_ _⇒_ _wi . . . wk_ and
|
| 1641 |
+
_∗_
|
| 1642 |
+
_Z_ _⇒_ _wk_ +1 _. . . wj_ :
|
| 1643 |
+
|
| 1644 |
+
|
| 1645 |
+
|
| 1646 |
+
|
| 1647 |
+
|
| 1648 |
+
_hY_, _Z_, _k_ ( _X_, _i_, _j_ )
|
| 1649 |
+
( _X→YZ_ )
|
| 1650 |
+
|
| 1651 |
+
|
| 1652 |
+
|
| 1653 |
+
_h_ ( _X_, _i_, _j_ ) =
|
| 1654 |
+
|
| 1655 |
+
|
| 1656 |
+
|
| 1657 |
+
|
| 1658 |
+
- _j−_ 1
|
| 1659 |
+
|
| 1660 |
+
|
| 1661 |
+
_k_ = _i_
|
| 1662 |
+
|
| 1663 |
+
|
| 1664 |
+
|
| 1665 |
+
The function _hY_, _Z_, _k_ ( _X_, _i_, _j_ ) is a portion of _h_ ( _X_, _i_, _j_ ) that accounts for those parses in which
|
| 1666 |
+
the rule _X →_ _YZ_ is used and the division point is at word _wk_ . The nonterminals _Y_ and
|
| 1667 |
+
_Z_ may, in turn, generate their substrings with multiple parses. Let _Y_ represent the set
|
| 1668 |
+
_∗_ _∗_
|
| 1669 |
+
of parses for _Y_ _⇒_ _wi . . . wk_ ; let _Z_ represent the set of parses for _Z_ _⇒_ _wk_ +1 _. . . wj_ ; and
|
| 1670 |
+
let _x_ represent the parse step of _X →_ _YZ_ . Then, there are a total of _∥Y∥× ∥Z∥_ parses,
|
| 1671 |
+
and the probability of each parse is _P_ ( _x_ ) _P_ ( **y** ) _P_ ( **z** ), where **y** _∈Y_ and **z** _∈Z_ . To compute
|
| 1672 |
+
_hY_, _Z_, _k_, we need to sum over all possible parses:
|
| 1673 |
+
|
| 1674 |
+
|
| 1675 |
+
|
| 1676 |
+
|
| 1677 |
+
_hY_, _Z_, _k_ ( _X_, _i_, _j_ ) = _−_
|
| 1678 |
+
|
| 1679 |
+
|
| 1680 |
+
|
| 1681 |
+
_P_ ( _x_ ) _P_ ( **y** ) _P_ ( **z** ) lg( _P_ ( _x_ ) _P_ ( **y** ) _P_ ( **z** ))
|
| 1682 |
+
**y** _∈Y_, **z** _∈Z_
|
| 1683 |
+
|
| 1684 |
+
|
| 1685 |
+
|
| 1686 |
+
|
| 1687 |
+
= _−_
|
| 1688 |
+
|
| 1689 |
+
|
| 1690 |
+
|
| 1691 |
+
_P_ ( _x_ ) _P_ ( **y** ) _P_ ( **z** )(lg _P_ ( _x_ ) + lg _P_ ( **y** ) + lg _P_ ( **z** ))
|
| 1692 |
+
**y** _∈Y_, **z** _∈Z_
|
| 1693 |
+
|
| 1694 |
+
|
| 1695 |
+
|
| 1696 |
+
= _−P_ ( _x_ ) lg( _P_ ( _x_ )) _e_ ( _Y_, _i_, _k_ ) _e_ ( _Z_, _k_ + 1, _j_ ) + _P_ ( _x_ ) _h_ ( _Y_, _i_, _k_ ) _e_ ( _Z_, _k_ + 1, _j_ )
|
| 1697 |
+
|
| 1698 |
+
+ _P_ ( _x_ ) _e_ ( _Y_, _i_, _k_ ) _h_ ( _Z_, _k_ + 1, _j_ )
|
| 1699 |
+
|
| 1700 |
+
|
| 1701 |
+
Thus, the tree entropy of the entire sentence can be recursively computed from the
|
| 1702 |
+
entropy values of the substrings.
|
| 1703 |
+
|
| 1704 |
+
|
| 1705 |
+
|
| 1706 |
+
**Acknowledgments**
|
| 1707 |
+
We thank Joshua Goodman, Lillian Lee,
|
| 1708 |
+
Wheeler Ruml, and Stuart Shieber for
|
| 1709 |
+
helpful discussions, and Ric Crabbe, Philip
|
| 1710 |
+
Resnik, and the reviewers for their
|
| 1711 |
+
constructive comments on this article.
|
| 1712 |
+
Portions of this work have appeared
|
| 1713 |
+
previously (Hwa 2000, 2001b); we thank the
|
| 1714 |
+
reviewers of those papers for their helpful
|
| 1715 |
+
comments. Parts of this work was carried
|
| 1716 |
+
out while the author was a graduate student
|
| 1717 |
+
at Harvard University, supported by the
|
| 1718 |
+
National Science Foundation under Grant
|
| 1719 |
+
No. IRI 9712068. The work is also supported
|
| 1720 |
+
by the Department of Defense contract
|
| 1721 |
+
RD-02-5700, and ONR MURI Contract
|
| 1722 |
+
FCPO.810548265.
|
| 1723 |
+
|
| 1724 |
+
|
| 1725 |
+
274
|
| 1726 |
+
|
| 1727 |
+
|
| 1728 |
+
|
| 1729 |
+
**References**
|
| 1730 |
+
Banko, Michele and Eric Brill. 2001. Scaling
|
| 1731 |
+
to very very large corpora for natural
|
| 1732 |
+
language disambiguation. In _Proceedings of_
|
| 1733 |
+
_the 39th Annual Meeting of the Association for_
|
| 1734 |
+
_Computational Linguistics_, Toulouse,
|
| 1735 |
+
France, pages 26–33.
|
| 1736 |
+
Blum, Avrim and Tom Mitchell. 1998.
|
| 1737 |
+
Combining labeled and unlabeled data
|
| 1738 |
+
with co-training. In _Proceedings of the 1998_
|
| 1739 |
+
_Conference on Computational Learning_
|
| 1740 |
+
_Theory_, pages 92–100, Madison, WI.
|
| 1741 |
+
Brill, Eric and Philip S. Resnik. 1994. A rule
|
| 1742 |
+
based approach to PP attachment
|
| 1743 |
+
disambiguation. In _Proceedings of the 15th_
|
| 1744 |
+
_International Conference on Computational_
|
| 1745 |
+
_Linguistics (COLING)_, Kyoto, Japan, pages
|
| 1746 |
+
1198–1204.
|
| 1747 |
+
|
| 1748 |
+
|
| 1749 |
+
Hwa Sample Selection for Statistical Parsing
|
| 1750 |
+
|
| 1751 |
+
|
| 1752 |
+
|
| 1753 |
+
Charniak, Eugene. 2000. A
|
| 1754 |
+
maximum-entropy-inspired parser. In
|
| 1755 |
+
_Proceedings of the First Meeting of the North_
|
| 1756 |
+
_American Association for Computational_
|
| 1757 |
+
_Linguistics_, Seattle.
|
| 1758 |
+
Cohn, David, Les Atlas, and Richard
|
| 1759 |
+
Ladner. 1994. Improving generalization
|
| 1760 |
+
with active learning. _Machine Learning_,
|
| 1761 |
+
15(2):201–221.
|
| 1762 |
+
Collins, Michael. 1997. Three generative,
|
| 1763 |
+
lexicalised models for statistical parsing.
|
| 1764 |
+
In _Proceedings of the 35th Annual Meeting of_
|
| 1765 |
+
_the Association for Computational Linguistics_,
|
| 1766 |
+
pages 16–23, Madrid.
|
| 1767 |
+
Collins, Michael. 1999. _Head-Driven Statistical_
|
| 1768 |
+
_Models for Natural Language Parsing_ . Ph.D.
|
| 1769 |
+
thesis, University of Pennsylvania,
|
| 1770 |
+
Philadelphia.
|
| 1771 |
+
Collins, Michael and James Brooks. 1995.
|
| 1772 |
+
Prepositional phrase attachment through
|
| 1773 |
+
a backed-off model. In _Proceedings of the_
|
| 1774 |
+
_Third Workshop on Very Large Corpora_,
|
| 1775 |
+
Cambridge, MA, pages 27–38.
|
| 1776 |
+
Cover, Thomas M. and Joy A. Thomas.
|
| 1777 |
+
1991. _Elements of Information Theory_ . John
|
| 1778 |
+
Wiley, New York.
|
| 1779 |
+
Engelson, Sean P. and Ido Dagan. 1996.
|
| 1780 |
+
Minimizing manual annotation cost in
|
| 1781 |
+
supervised training from corpora. In
|
| 1782 |
+
_Proceedings of the 34th Annual Meeting of the_
|
| 1783 |
+
_Association for Computational Linguistics_,
|
| 1784 |
+
Santa Cruz, CA, pages 319–326.
|
| 1785 |
+
Freund, Yoav, H. Sebastian Seung, Eli
|
| 1786 |
+
Shamir, and Naftali Tishby. 1997. Selective
|
| 1787 |
+
sampling using the query by committee
|
| 1788 |
+
algorithm. _Machine Learning_,
|
| 1789 |
+
28(2–3):133–168.
|
| 1790 |
+
Fujii, Atsushi, Kentaro Inui, Takenobu
|
| 1791 |
+
Tokunaga, and Hozumi Tanaka. 1998.
|
| 1792 |
+
Selective sampling for example-based
|
| 1793 |
+
word sense disambiguation. _Computational_
|
| 1794 |
+
_Linguistics_, 24(4):573–598.
|
| 1795 |
+
Henderson, John C. and Eric Brill. 2000.
|
| 1796 |
+
Bagging and boosting a treebank parser.
|
| 1797 |
+
In _Proceedings of the First Meeting of the_
|
| 1798 |
+
_North American Association for Computational_
|
| 1799 |
+
_Linguistics_, Seattle, pages 34–41.
|
| 1800 |
+
Hwa, Rebecca. 1998. An empirical
|
| 1801 |
+
evaluation of probabilistic lexicalized tree
|
| 1802 |
+
insertion grammars. In _Proceedings of the_
|
| 1803 |
+
_36th Annual Meeting of the Association for_
|
| 1804 |
+
_Computational Linguistics and 17th_
|
| 1805 |
+
_International Conference on Computational_
|
| 1806 |
+
_Linguistics_, Montreal, volume 1, pages
|
| 1807 |
+
557–563.
|
| 1808 |
+
Hwa, Rebecca. 2000. Sample selection for
|
| 1809 |
+
statistical grammar induction. In
|
| 1810 |
+
_Proceedings of 2000 Joint SIGDAT Conference_
|
| 1811 |
+
_on Empirical Methods in Natural Language_
|
| 1812 |
+
_Processing and Very Large Corpora_, pages
|
| 1813 |
+
45–52, Hong Kong, October.
|
| 1814 |
+
|
| 1815 |
+
|
| 1816 |
+
|
| 1817 |
+
Hwa, Rebecca. 2001a. _Learning Probabilistic_
|
| 1818 |
+
_Lexicalized Grammars for Natural Language_
|
| 1819 |
+
_Processing_ . Ph.D. thesis, Harvard
|
| 1820 |
+
University, Cambridge, MA.
|
| 1821 |
+
Hwa, Rebecca. 2001b. On minimizing
|
| 1822 |
+
training corpus for parser acquisition. In
|
| 1823 |
+
_Proceedings of the ACL 2001 Workshop on_
|
| 1824 |
+
_Computational Natural Language Learning_
|
| 1825 |
+
_(ConLL-2001)_, Toulouse, France, pages
|
| 1826 |
+
84–89.
|
| 1827 |
+
Hwa, Rebecca, Miles Osborne, Anoop
|
| 1828 |
+
Sarkar, and Mark Steedman. 2003.
|
| 1829 |
+
Corrected co-training for statistical
|
| 1830 |
+
parsers. In _Proceedings of the ICML_
|
| 1831 |
+
_Workshop on the Continuum from Labeled to_
|
| 1832 |
+
_Unlabeled Data in Machine Learning and Data_
|
| 1833 |
+
_Mining at the 20th International Conference of_
|
| 1834 |
+
_Machine Learning (ICML-2003)_,
|
| 1835 |
+
Washington, DC, pages 95–102, August.
|
| 1836 |
+
Joshi, Aravind K., Leon S. Levy, and
|
| 1837 |
+
Masako Takahashi. 1975. Tree adjunction
|
| 1838 |
+
grammars. _Journal of Computer and System_
|
| 1839 |
+
_Sciences_, 10(1): 136–163.
|
| 1840 |
+
Lari, Karim A. and Steve J. Young. 1990.
|
| 1841 |
+
The estimation of stochastic context-free
|
| 1842 |
+
grammars using the inside-outside
|
| 1843 |
+
algorithm. _Computer Speech and Language_,
|
| 1844 |
+
4:35–56.
|
| 1845 |
+
Larsen, Richard J. and Morris L. Marx. 1986.
|
| 1846 |
+
_An Introduction to Mathematical Statistics_
|
| 1847 |
+
_and Its Applications_ . Prentice-Hall,
|
| 1848 |
+
Englewood Cliffs, NJ.
|
| 1849 |
+
Lewis, David D. and Jason Catlett. 1994.
|
| 1850 |
+
Heterogeneous uncertainty sampling for
|
| 1851 |
+
supervised learning. In _Proceedings of the_
|
| 1852 |
+
_Eleventh International Conference on Machine_
|
| 1853 |
+
_Learning_, San Francisco, pages 148–156.
|
| 1854 |
+
Magerman, David. 1994. _Natural Language_
|
| 1855 |
+
_Parsing as Statistical Pattern Recognition_ .
|
| 1856 |
+
Ph.D. thesis, Stanford University,
|
| 1857 |
+
Stanford, CA.
|
| 1858 |
+
Marcus, Mitchell, Beatrice Santorini, and
|
| 1859 |
+
Mary Ann Marcinkiewicz. 1993. Building
|
| 1860 |
+
a large annotated corpus of English: The
|
| 1861 |
+
Penn Treebank. _Computational Linguistics_,
|
| 1862 |
+
19(2):313–330.
|
| 1863 |
+
Ngai, Grace and David Yarowsky. 2000.
|
| 1864 |
+
Rule writing or annotation: Cost-efficient
|
| 1865 |
+
resource usage for base noun phrase
|
| 1866 |
+
chunking. In _Proceedings of the 38th Annual_
|
| 1867 |
+
_Meeting of the Association for Computational_
|
| 1868 |
+
_Linguistics_, pages 117–125, Hong Kong,
|
| 1869 |
+
October.
|
| 1870 |
+
Pereira, Fernando C. N. and Yves Schabes.
|
| 1871 |
+
1992. Inside-outside reestimation from
|
| 1872 |
+
partially bracketed corpora. In _Proceedings_
|
| 1873 |
+
_of the 30th Annual Meeting of the Association_
|
| 1874 |
+
_for Computational Linguistics_, pages
|
| 1875 |
+
128–135, Newark, DE.
|
| 1876 |
+
|
| 1877 |
+
|
| 1878 |
+
275
|
| 1879 |
+
|
| 1880 |
+
|
| 1881 |
+
Computational Linguistics Volume 30, Number 3
|
| 1882 |
+
|
| 1883 |
+
|
| 1884 |
+
|
| 1885 |
+
Pierce, David and Claire Cardie. 2001.
|
| 1886 |
+
Limitations of co-training for natural
|
| 1887 |
+
language learning from large datasets. In
|
| 1888 |
+
_Proceedings of the 2001 Conference on_
|
| 1889 |
+
_Empirical Methods in Natural Language_
|
| 1890 |
+
_Processing (EMNLP-2001)_, pages 1–9,
|
| 1891 |
+
Pittsburgh, PA.
|
| 1892 |
+
Ratnaparkhi, Adwait. 1998. Statistical
|
| 1893 |
+
models for unsupervised prepositional
|
| 1894 |
+
phrase attachment. In _Proceedings of the_
|
| 1895 |
+
_36th Annual Meeting of the Association for_
|
| 1896 |
+
_Computational Linguistics and 17th_
|
| 1897 |
+
_International Conference on Computational_
|
| 1898 |
+
_Linguistics_, Montreal, volume 2, pages
|
| 1899 |
+
1079–1085.
|
| 1900 |
+
Sarkar, Anoop. 2001. Applying co-training
|
| 1901 |
+
methods to statistical parsing. In
|
| 1902 |
+
_Proceedings of the Second Meeting of the_
|
| 1903 |
+
_North American Association for_
|
| 1904 |
+
_Computational Linguistics_, Pittsburgh,
|
| 1905 |
+
pages 175–182, June.
|
| 1906 |
+
Schabes, Yves and Richard Waters. 1993.
|
| 1907 |
+
Stochastic lexicalized context-free
|
| 1908 |
+
grammar. In _Proceedings of the Third_
|
| 1909 |
+
_International Workshop on Parsing_
|
| 1910 |
+
_Technologies_, Tilburg, The Netherlands,
|
| 1911 |
+
and Durbuy, Belgium, pages 257–266.
|
| 1912 |
+
Steedman, Mark, Rebecca Hwa, Stephen
|
| 1913 |
+
Clark, Miles Osborne, Anoop Sarkar, Julia
|
| 1914 |
+
Hockenmaier, Paul Ruhlen, Steven Baker,
|
| 1915 |
+
and Jeremiah Crim. 2003. Example
|
| 1916 |
+
|
| 1917 |
+
|
| 1918 |
+
276
|
| 1919 |
+
|
| 1920 |
+
|
| 1921 |
+
|
| 1922 |
+
selection for bootstrapping statistical
|
| 1923 |
+
parsers. In _Proceedings of the Joint_
|
| 1924 |
+
_Conference of Human Language Technologies_
|
| 1925 |
+
_and the Annual Meeting of the North_
|
| 1926 |
+
_American Chapter of the Association for_
|
| 1927 |
+
_Computational Linguistics_, Edmonton,
|
| 1928 |
+
Alberta, Canada, pages 236–243.
|
| 1929 |
+
Steedman, Mark, Miles Osborne, Anoop
|
| 1930 |
+
Sarkar, Stephen Clark, Rebecca Hwa, Julia
|
| 1931 |
+
Hockenmaier, Paul Ruhlen, Steven Baker,
|
| 1932 |
+
and Jeremiah Crim. 2003. Bootstrapping
|
| 1933 |
+
statistical parsers from small datasets. In
|
| 1934 |
+
_Proceedings of the Tenth Conference of the_
|
| 1935 |
+
_European Chapter of the Association for_
|
| 1936 |
+
_Computational Linguistics_, Budapest, pages
|
| 1937 |
+
331–338.
|
| 1938 |
+
Tang, Min, Xiaoqiang Luo, and Salim
|
| 1939 |
+
Roukos. 2002. Active learning for
|
| 1940 |
+
statistical natural language parsing. In
|
| 1941 |
+
_Proceedings of the 40th Annual Meeting of the_
|
| 1942 |
+
_Association for Computational Linguistics_,
|
| 1943 |
+
Philadelphia, pages 120–127, July.
|
| 1944 |
+
Thompson, Cynthia A., Mary Elaine Califf,
|
| 1945 |
+
and Raymond J. Mooney. 1999. Active
|
| 1946 |
+
learning for natural language parsing and
|
| 1947 |
+
information extraction. In _Proceedings of_
|
| 1948 |
+
_the Sixteenth International Conference on_
|
| 1949 |
+
_Machine Learning (ICML-99)_, pages
|
| 1950 |
+
406–414, Bled, Slovenia.
|
| 1951 |
+
Van Rijsbergen, Cornelis J. 1979. _Information_
|
| 1952 |
+
_Retrieval_ . Butterworth, London.
|
| 1953 |
+
|
| 1954 |
+
|
|
@@ -0,0 +1,767 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Active Learning and the Total Cost of Annotation"
|
| 3 |
+
authors:
|
| 4 |
+
- "Jason Baldridge"
|
| 5 |
+
- "Miles Osborne"
|
| 6 |
+
year: 2004
|
| 7 |
+
venue: "EMNLP 2004"
|
| 8 |
+
url: "https://aclanthology.org/W04-3202/"
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# **Active Learning and the Total Cost of Annotation**
|
| 12 |
+
|
| 13 |
+
**Jason Baldridge and Miles Osborne**
|
| 14 |
+
School of Informatics
|
| 15 |
+
University of Edinburgh
|
| 16 |
+
Edinburgh EH8 9LW, UK
|
| 17 |
+
_{_ `jbaldrid,miles` _}_ `@inf.ed.ac.uk`
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
**Abstract**
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Active learning (AL) promises to reduce
|
| 25 |
+
the cost of annotating labeled datasets for
|
| 26 |
+
trainable human language technologies.
|
| 27 |
+
Contrary to expectations, when creating
|
| 28 |
+
labeled training material for HPSG parse
|
| 29 |
+
selection and later _reusing_ it with _other_
|
| 30 |
+
models, gains from AL may be negligible
|
| 31 |
+
or even negative. This has serious implications for using AL, showing that additional cost-saving strategies may need to
|
| 32 |
+
be adopted. We explore one such strategy:
|
| 33 |
+
using a model during annotation to automate some of the decisions. Our best results show an 80% reduction in annotation
|
| 34 |
+
cost compared with labeling randomly selected data with a single model.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
**1** **Introduction**
|
| 38 |
+
|
| 39 |
+
AL methods such as uncertainty sampling (Cohn
|
| 40 |
+
et al., 1995) or query by committee (Seung et al.,
|
| 41 |
+
1992) have all been shown to dramatically reduce
|
| 42 |
+
the cost of creating highly informative labeled sets
|
| 43 |
+
for speech and language technologies. However, experiments using AL assume a model that is fixed
|
| 44 |
+
ahead of time: the model used in AL is the same
|
| 45 |
+
one we are currently developing training material
|
| 46 |
+
for. For many complex tasks, we are unlikely to have
|
| 47 |
+
a clear idea how best to model the task at the time of
|
| 48 |
+
annotation; thus, in practice, we will need to _reuse_
|
| 49 |
+
the labeled training material with _other_ models.
|
| 50 |
+
In this paper, we show that AL can be brittle: under a variety of natural reuse scenarios (for example,
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
allowing the later model to improve in quality, or
|
| 55 |
+
else reusing the labeled training material using a different machine learning algorithm) performance of
|
| 56 |
+
later models can be significantly undermined when
|
| 57 |
+
training upon material created using AL. The key
|
| 58 |
+
to knowing how well one model will be able to use
|
| 59 |
+
material selected by another is their relatedness – yet
|
| 60 |
+
there may be no means to determine this prior to annotation, leading to a chicken-and-egg problem.
|
| 61 |
+
Our reusability results thus demonstrate that, additionally, other strategies must be adopted to ensure we reduce the total cost of annotation. In Osborne and Baldridge (2004), we showed that ensemble models can increase model performance and also
|
| 62 |
+
produce annotation savings when incorporated into
|
| 63 |
+
the AL process. An obvious next step is automating
|
| 64 |
+
some decisions. Here, we consider a simple automation strategy that reduces annotation costs _indepen-_
|
| 65 |
+
_dently_ of AL and examine its effect on reusability.
|
| 66 |
+
We find that using both semi-automation and AL
|
| 67 |
+
with high-quality models can eliminate the performance gap found in many reuse scenarios. However,
|
| 68 |
+
for weak models, we show that semi-automation
|
| 69 |
+
with random sampling is _more_ effective for improving reusability than using it with AL - demonstrating further cause for caution with AL.
|
| 70 |
+
Finally, we show that under the standard assumption of reuse by the selecting model, using a strategy which combines AL, ensembling, and semiautomated annotation, we are able to achieve our
|
| 71 |
+
highest annotation savings to date on the complex
|
| 72 |
+
task of parse selection for HPSG: an 80% reduction
|
| 73 |
+
in annotation cost compared with labeling randomly
|
| 74 |
+
selected data with our best single model.
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
**2** **Parse selection for Redwoods**
|
| 78 |
+
|
| 79 |
+
We now briefly describe the Redwoods treebanking
|
| 80 |
+
environment (Oepen et al., 2002), our parse selection models and their performance.
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
**2.1** **The Redwoods Treebank**
|
| 84 |
+
|
| 85 |
+
The Redwoods treebank project provides tools and
|
| 86 |
+
annotated training material for creating parse selection models for the English Resource Grammar
|
| 87 |
+
(ERG, Flickinger (2000)). The ERG is a hand-built
|
| 88 |
+
broad-coverage HPSG grammar that provides an explicit grammar for the treebank. Using this approach
|
| 89 |
+
has the advantage that analyses for within-coverage
|
| 90 |
+
sentences convey more information than just phrase
|
| 91 |
+
structure: they also contain derivations, semantic interpretations, and basic dependencies.
|
| 92 |
+
For each sentence, Redwoods records all analyses
|
| 93 |
+
licensed by the ERG and indicates which of them,
|
| 94 |
+
if any, the annotators selected as being contextually
|
| 95 |
+
correct. When selecting such distinguished parses,
|
| 96 |
+
rather than simply enumerating all parses and presenting them to the annotator, annotators make use
|
| 97 |
+
of _discriminants_ which disambiguate the parse forest more rapidly, as described in section 3.
|
| 98 |
+
In this paper, we report results using the third
|
| 99 |
+
growth of Redwoods, which contains English sentences from appointment scheduling and travel planning domains of Verbmobil. In all, there are 5302
|
| 100 |
+
sentences for which there are at least two parses and
|
| 101 |
+
a unique preferred parse is identified. These sentences have 9.3 words and 58.0 parses on average.
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
**2.2** **Modeling parse selection**
|
| 105 |
+
|
| 106 |
+
As is now standard for feature-based grammars, we
|
| 107 |
+
mainly use log-linear models for parse selection
|
| 108 |
+
(Johnson et al., 1999). For log-linear models, the
|
| 109 |
+
conditional probability of an analysis _ti_ given a sentence with a set of analyses _τ_ = _{t . . .}_ is given as:
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
_j_ =1 _[f][j]_ [(] _[t][i]_ [)] _[w][j]_ [)]
|
| 113 |
+
_P_ ( _ti|s, Mk_ ) = _[exp]_ [(][�] _[m]_ (1)
|
| 114 |
+
|
| 115 |
+
_Z_ ( _s_ )
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
where _fj_ ( _ti_ ) returns the number of times feature
|
| 119 |
+
_j_ occurs in analysis _t_, _wj_ is a weight from model
|
| 120 |
+
_Mk_, and _Z_ ( _s_ ) is a normalization factor for the sentence. The parse with the highest probability is taken
|
| 121 |
+
as the preferred parse for the model. We use the
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
Note that each individual model _Mi_ is a well-defined
|
| 126 |
+
distribution usually taken from a fixed set of models. _Z_ ( _s_ ) is a constant to ensure the product distribution sums to one over the set of possible parses. A
|
| 127 |
+
product model effectively averages the contributions
|
| 128 |
+
made by each of the individual models. Though simple, this model is sufficient to show enhanced performance when using multiple models.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
limited memory variable metric algorithm to determine the weights. We do not regularize our loglinear models since labeled data -necessary to set
|
| 133 |
+
hyperparameters- is in short supply in AL.
|
| 134 |
+
We also make use of simpler perceptron models
|
| 135 |
+
for parse selection, which assign scores rather than
|
| 136 |
+
probabilities. Scores are computed by taking the inner product of the analysis’ feature vector with the
|
| 137 |
+
parameter vector:
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
score( _ti, s, Mk_ ) =
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
_m_
|
| 146 |
+
|
| 147 |
+
- _fj_ ( _ti_ ) _wj_ (2)
|
| 148 |
+
|
| 149 |
+
_j_ =1
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
The preferred parse is that with the highest score out
|
| 154 |
+
of all analyses. We do not use voted perceptrons
|
| 155 |
+
here (which indeed have better performance) as for
|
| 156 |
+
the reuse experiments described later in section 6 we
|
| 157 |
+
really do wish to use a model that is (potentially)
|
| 158 |
+
worse than a log-linear model.
|
| 159 |
+
Later for AL, it will be useful to map perceptron
|
| 160 |
+
scores into probabilities, which we do by exponentiating and renormalizing the score:
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
_Pp_ ( _ti_ _| s, Mk_ ) = _[exp]_ [(][score][(] _[t][i][, s, M][k]_ [))] (3)
|
| 164 |
+
|
| 165 |
+
_Z_ ( _s_ )
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
_Z_ ( _s_ ) is again a normalizing constant.
|
| 169 |
+
The previous parse selection models (equations
|
| 170 |
+
1 and 3) use a single model (feature set). It is
|
| 171 |
+
possible to improve performance using an _ensem-_
|
| 172 |
+
_ble_ parse selection model. We create our ensemble
|
| 173 |
+
model (called a _product_ _model_ ) using the _product-_
|
| 174 |
+
_of-experts_ formulation (Hinton, 1999):
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
_P_ ( _ti|s, M_ 1 _. . . Mn_ ) =
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
- _n_
|
| 184 |
+
_j_ =1 _[P]_ [(] _[t][i][|][s, M][j]_ [)]
|
| 185 |
+
|
| 186 |
+
(4)
|
| 187 |
+
_Z_ ( _s_ )
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
**2.3** **Parse selection performance**
|
| 191 |
+
|
| 192 |
+
Osborne and Baldridge (2004) describe three distinct feature sets - **configurational**, **ngram**, and
|
| 193 |
+
**conglomerate** - which utilize the various structures made available in Redwoods: derivation trees,
|
| 194 |
+
phrase structures, semantic interpretations, and elementary dependency graphs. They incorporate different aspects of the parse selection task; this is
|
| 195 |
+
crucial for creating diverse models for use in product parse selection models as well as for ensemblebased AL methods. Here, we also use models created from a subset of the conglomerate feature set:
|
| 196 |
+
the **mrs** feature set. This only has features from the
|
| 197 |
+
semantic interpretations.
|
| 198 |
+
The three main feature sets are used to train three
|
| 199 |
+
log-linear models - LL-CONFIG, LL-NGRAM, and
|
| 200 |
+
|
| 201 |
+
LL-CONGLOM— and a product ensemble of those
|
| 202 |
+
three feature sets, LL-PROD, using equation 4. Additionally, we use a perceptron with the conglomerate
|
| 203 |
+
feature set, P-CONGLOM. Finally, we include a loglinear model that uses the mrs feature set, LL-MRS,
|
| 204 |
+
and a perceptron, P-MRS.
|
| 205 |
+
Parse selection accuracy is measured using exact
|
| 206 |
+
match. A model is awarded a point if it picks some
|
| 207 |
+
parse for a sentence and that parse is the correct analysis indicated by the corpus. To deal with ties, the
|
| 208 |
+
accuracy is given as 1 _/m_ when a model ranks _m_
|
| 209 |
+
parses highest and the best parse is one of them.
|
| 210 |
+
The results for a chance baseline (selecting a
|
| 211 |
+
parse at random), the base models and the product
|
| 212 |
+
model are given in Table 1. These are 10-fold crossvalidation results, using all the training data for estimation and the test split for evaluation. See section
|
| 213 |
+
5 for more details.
|
| 214 |
+
|
| 215 |
+
Model Perf. Model Perf.
|
| 216 |
+
|
| 217 |
+
LL-CONFIG 75.05 LL-PROD 77.78
|
| 218 |
+
|
| 219 |
+
LL-NGRAM 74.01 LL-MRS 64.98
|
| 220 |
+
|
| 221 |
+
LL-CONGLOM 74.85 P-CONGLOM 73.00
|
| 222 |
+
Chance 22.70 P-MRS 62.11
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
Table 1: Parse selection accuracy.
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
**3** **Measuring annotation cost**
|
| 229 |
+
|
| 230 |
+
To aid identification of the best parse out of all those
|
| 231 |
+
licensed by the ERG, the Redwoods annotation environment provides local _discriminants_ which the an
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
notator can mark as true or false properties for the
|
| 235 |
+
analysis of a sentence in order to disambiguate large
|
| 236 |
+
portions of the parse forest. As such, the annotator
|
| 237 |
+
does not need to inspect all parses and so parses are
|
| 238 |
+
narrowed down quickly (usually exponentially so)
|
| 239 |
+
even for sentences with a large number of parses.
|
| 240 |
+
More interestingly, it means that the labeling burden
|
| 241 |
+
is relative to the number of possible parses (rather
|
| 242 |
+
than the number of constituents in a parse).
|
| 243 |
+
Data about how many discriminants were needed
|
| 244 |
+
to annotate each sentence is recorded in Redwoods.
|
| 245 |
+
Typically, more ambiguous sentences require more
|
| 246 |
+
discriminant values to be set, reflecting the extra effort put into identifying the best parse. We showed
|
| 247 |
+
in Osborne and Baldridge (2004) that discriminant
|
| 248 |
+
cost does provide a more accurate approximation of
|
| 249 |
+
annotation cost than assigning a fixed unit cost for
|
| 250 |
+
each sentence. We thus use discriminants as the basis of calculating annotation cost to evaluate the effectiveness of different experiment AL conditions.
|
| 251 |
+
Specifically, we set the cost of annotating a given
|
| 252 |
+
sentence as the number of discriminants whose
|
| 253 |
+
value were set by the human annotator plus one to
|
| 254 |
+
indicate a final ‘eyeball’ step where the annotator selects the best parse of the few remaining ones. [1] The
|
| 255 |
+
_discriminant_ _cost_ of the examples we use averages
|
| 256 |
+
3.34 and ranges from 1 to 14.
|
| 257 |
+
|
| 258 |
+
**4** **Active learning**
|
| 259 |
+
|
| 260 |
+
Suppose we have a set of examples and labels _Dn_ =
|
| 261 |
+
_{⟨x_ [1] _, y_ [1] _⟩, ⟨x_ [2] _, y_ [2] _⟩, . . .}_ which is to be extended with
|
| 262 |
+
a new labeled example _{⟨x_ _[i]_ _, y_ _[i]_ _⟩}_ . The information
|
| 263 |
+
gain for some model is maximized after selecting,
|
| 264 |
+
labeling, and adding a new example _x_ _[i]_ to _Dn_ such
|
| 265 |
+
that the noise level of _x_ _[i]_ is low and both the bias and
|
| 266 |
+
variance of some model using _Dn_ _∪{⟨x_ _[i]_ _, y_ _[i]_ _⟩}_ are
|
| 267 |
+
minimized (Cohn et al., 1995).
|
| 268 |
+
In practice, selecting data points for labeling such
|
| 269 |
+
that a model’s variance and/or bias is maximally
|
| 270 |
+
minimized is computationally intractable, so approximations are typically used instead. One such
|
| 271 |
+
approximation is _uncertainty sampling_ . Uncertainty
|
| 272 |
+
sampling (also called _tree_ _entropy_ by Hwa (2000)),
|
| 273 |
+
measures the uncertainty of a model over the set of
|
| 274 |
+
parses of a given sentence, based on the conditional
|
| 275 |
+
|
| 276 |
+
1This eyeball step is not always taken, but Redwoods does
|
| 277 |
+
not contain information about when this occurred, so we apply
|
| 278 |
+
the cost for the step uniformly for all examples.
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
distribution it assigns to them. Following Hwa, we
|
| 282 |
+
use the following measure to quantify uncertainty:
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
_fus_ ( _s, τ, Mk_ ) = _−_ - _P_ ( _t|s, Mk_ ) log _P_ ( _t|s, Mk_ ) (5)
|
| 286 |
+
|
| 287 |
+
_t∈τ_
|
| 288 |
+
|
| 289 |
+
_τ_ denotes the set of analyses produced by the ERG
|
| 290 |
+
for the sentence and _Mk_ is some model. Higher values of _fus_ ( _s, τ, Mk_ ) indicate examples on which the
|
| 291 |
+
learner is most uncertain . Calculating _fus_ is trivial with the conditional log-linear and perceptrons
|
| 292 |
+
models described in section 2.2.
|
| 293 |
+
Uncertainty sampling as defined above is a singlemodel approach. It can be improved by simply replacing the probability of a single log-linear (or perceptron) model with a product probability:
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
_fus_ _[en]_ [(] _[s, τ,][ M]_ [) =] _[ −]_ - _P_ ( _t|s, M_ ) log _P_ ( _t|s, M_ ) (6)
|
| 297 |
+
|
| 298 |
+
_t∈τ_
|
| 299 |
+
|
| 300 |
+
_M_ is the set of models _M_ 1 _. . . Mn_ . As we mentioned earlier, AL for parse selection is potentially
|
| 301 |
+
problematic as sentences vary both in length and the
|
| 302 |
+
number of parses they have. Nonetheless, the above
|
| 303 |
+
measures do not use any extra normalization as we
|
| 304 |
+
have found no major differences after experimenting
|
| 305 |
+
with a variety of normalization strategies.
|
| 306 |
+
We use random sampling as a baseline and uncertainty sampling for AL. Osborne and Baldridge
|
| 307 |
+
(2004) show that uncertainty sampling produces
|
| 308 |
+
good results compared with other AL methods.
|
| 309 |
+
|
| 310 |
+
**5** **Experimental framework**
|
| 311 |
+
|
| 312 |
+
For all experiments, we used a 20-fold crossvalidation strategy by randomly selecting 10%
|
| 313 |
+
(roughly 500 sentences) for the test set and selecting samples from the remaining 90% (roughly 4500
|
| 314 |
+
sentences) as training material. Each run of AL begins with a single randomly chosen annotated seed
|
| 315 |
+
sentence. At each round, new examples are selected
|
| 316 |
+
for annotation from a randomly chosen, fixed sized
|
| 317 |
+
500 sentence subset according to random selection
|
| 318 |
+
or uncertainty sampling until models reach certain
|
| 319 |
+
desired accuracies. We select 20 examples for annotation at each round, and exclude all examples that
|
| 320 |
+
have more than 500 parses. [2]
|
| 321 |
+
|
| 322 |
+
2Other parameter settings (such as how many examples to
|
| 323 |
+
label at each stage) did not produce substantially different results to those reported here.
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
AL results are usually presented in terms of the
|
| 328 |
+
amount of labeling necessary to achieve given performance levels. We say that one method is better than another method if, for a given performance
|
| 329 |
+
level, less annotation is required. The performance
|
| 330 |
+
metric used here is parse selection accuracy as described in section 2.3.
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
**6** **Reusing training material**
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
AL can be considered as selecting some labeled
|
| 337 |
+
training set which is ‘tuned’ to the needs of a particular model. Typically, we might wish to reuse labeled
|
| 338 |
+
training material, so a natural question to ask is how
|
| 339 |
+
general are training sets created using AL. So, if we
|
| 340 |
+
later improved upon our feature set, or else improved
|
| 341 |
+
upon our learner, would the previously created training set still be useful? If AL selects highly idiosyncratic datasets then we would not be able to reuse our
|
| 342 |
+
datasets and thus it might, for example, actually be
|
| 343 |
+
better to label datasets using random sampling. This
|
| 344 |
+
is a realistic situation since models typically change
|
| 345 |
+
and evolve over time - it would be very problematic if the training set itself inherently limits the benefit of later attempts to improve the model.
|
| 346 |
+
We use two baselines to evaluate how well a
|
| 347 |
+
model is able to reuse data selected for labeling by
|
| 348 |
+
another model: (1) **Selecting** **the** **data** **randomly.**
|
| 349 |
+
This provides the essential baseline; if AL in reuse
|
| 350 |
+
situations is going to be useful, it ought to outperform this model-free approach. (2) **Reuse** **by** **the**
|
| 351 |
+
**AL model itself.** This is the standard AL scenario;
|
| 352 |
+
against this, we can determine if reused data can be
|
| 353 |
+
as good as when a model selects data for itself.
|
| 354 |
+
We evaluate a variety of reuse scenarios. We refer to the model used with AL as the _selector_ and
|
| 355 |
+
the model that is reusing that labeled data as the
|
| 356 |
+
_reuser_ . Models can differ in the machine learning algorithm and/or the feature set they use. To measure
|
| 357 |
+
relatedness, we use Spearman’s rank correlation on
|
| 358 |
+
the rankings that two models assign to the parses of
|
| 359 |
+
a sentence. The overall relatedness of two models
|
| 360 |
+
is calculated as the average rank correlation on all
|
| 361 |
+
examples tested in a 10-fold parse selection experiment using all available training material.
|
| 362 |
+
Figure 1 shows complete learning curves for LL
|
| 363 |
+
CONFIG when it reuses material selected by itself,
|
| 364 |
+
|
| 365 |
+
LL-CONGLOM, P-MRS, and random sampling. The
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
graph shows that self-reuse is the most effective of
|
| 369 |
+
all strategies - this is the idealized situation commonly assumed in active learning studies. However,
|
| 370 |
+
the graph reveals that random sampling is actually
|
| 371 |
+
more effective than selection both by LL-CONGLOM
|
| 372 |
+
until nearly 70% accuracy is reached and by P-MRS
|
| 373 |
+
until about 73%. Finally, we see that the material
|
| 374 |
+
selected by LL-CONGLOM is always more effective
|
| 375 |
+
for LL-CONFIG than that selected by P-MRS. The
|
| 376 |
+
reason for this can be explained by the relatedness
|
| 377 |
+
of each of these selector models to LL-CONFIG: LL
|
| 378 |
+
CONGLOM and LL-CONFIG have an average rank
|
| 379 |
+
correlation of 0 _._ 84 whereas P-MRS and LL-CONFIG
|
| 380 |
+
have a correlation of 0 _._ 65.
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
80
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
75
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
70
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
65
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
60
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
55
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
50
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
0 1000 2000 3000 4000 5000 6000 7000 8000
|
| 407 |
+
|
| 408 |
+
Annotation cost
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
Figure 1: Learning curves for LL-CONFIG when
|
| 415 |
+
reusing material by different selectors.
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
Table 2 fleshes out the relationship between relatedness and reusability more fully. It shows the annotation cost incurred by various reusers to reach 65%,
|
| 419 |
+
70%, and 73% accuracy when material is selected
|
| 420 |
+
by various models. The list is ordered from top to
|
| 421 |
+
bottom according to the rank correlation of the two
|
| 422 |
+
models. The first three lines provide the baselines of
|
| 423 |
+
when LL-PROD, LL-CONGLOM, and LL-CONFIG select material for themselves. The last three show the
|
| 424 |
+
amount of material needed by these models when
|
| 425 |
+
random sampling is used. The rest gives the results
|
| 426 |
+
for when the selector differs from the reuser.
|
| 427 |
+
For each performance level, the percent increase
|
| 428 |
+
in annotation cost over self-reuse is given. For
|
| 429 |
+
example, a cost of 2300 discriminants is required
|
| 430 |
+
for LL-PROD to reach the 73% performance level
|
| 431 |
+
when it reuses material selected by LL-CONGLOM;
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
this is a 10% increase over the 2100 discriminants
|
| 436 |
+
needed when LL-PROD selects for itself. Similarly,
|
| 437 |
+
the 5500 discriminants needed by LL-CONGLOM to
|
| 438 |
+
reach 73% when reusing material selected by LL
|
| 439 |
+
CONFIG is a 31% increase over the 4200 discriminants LL-CONGLOM needs with its own selection.
|
| 440 |
+
As can be seen from Table 2, reuse always leads
|
| 441 |
+
to an increase in cost over self-reuse to reach a given
|
| 442 |
+
level of performance. How much that increase will
|
| 443 |
+
be is in general inversely related to the rank correlation of the two models. Furthermore, considering
|
| 444 |
+
each reusing model individually, this relationship is
|
| 445 |
+
almost entirely inversely related at all performance
|
| 446 |
+
levels, with the exception of P-CONGLOM and LL
|
| 447 |
+
MRS selecting for LL-CONFIG at the 73% level.
|
| 448 |
+
The reason for some models being more related
|
| 449 |
+
to others is generally easy to see. For example, LL
|
| 450 |
+
CONFIG and LL-CONGLOM are highly related to LL
|
| 451 |
+
PROD, of which they are both components. In both
|
| 452 |
+
of these cases, using AL for use by LL-PROD beats
|
| 453 |
+
random sampling by a large amount.
|
| 454 |
+
That LL-MRS is more related to LL-CONGLOM
|
| 455 |
+
than to LL-CONFIG is explained by the fact the **mrs**
|
| 456 |
+
feature set is actually a subset of the **conglom** set.
|
| 457 |
+
The former contains 15% of the latter’s features.
|
| 458 |
+
Accordingly, material selected by LL-MRS is also
|
| 459 |
+
generally more reusable by LL-CONGLOM than to
|
| 460 |
+
|
| 461 |
+
LL-CONFIG. This is encouraging since the case of
|
| 462 |
+
|
| 463 |
+
LL-CONGLOM reusing material selected by LL-MRS
|
| 464 |
+
represents the common situation in which an initial
|
| 465 |
+
model - that was used to develop the corpus - is
|
| 466 |
+
continually improved upon.
|
| 467 |
+
A particularly striking aspect revealed by Figure 1
|
| 468 |
+
and Table 2 is that random sampling is overwhelmingly a better strategy when there is still little labeled material. AL tends to select examples which
|
| 469 |
+
are more ambiguous and hence have a higher discriminant cost. So, while these examples may be
|
| 470 |
+
highly informative for the selector model, they are
|
| 471 |
+
not cheap - and are far less effective when reused
|
| 472 |
+
by another model.
|
| 473 |
+
Considering unit cost (i.e., each sentence costs the
|
| 474 |
+
same) instead of discriminant cost (which assigns a
|
| 475 |
+
variable cost per sentence), AL is generally more
|
| 476 |
+
effective than random sampling for reuse throughout all accuracy levels – but not always. For example, even using unit cost, random sampling is better than selection by LL-MRS or P-MRS for reuse by
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
|Reuser -|Rank Corr. 1.00|65% DC Incr 690 0.0%|70% DC Incr 1200 0.0%|
|
| 480 |
+
|---|---|---|---|
|
| 481 |
+
|LL-PROD<br>LL-CONGLOM<br>LL-CONFIG<br>|1.00<br>1.00<br>1.00<br>|690<br>0.0%<br>1190<br>0.0%<br>1160<br>0.0%<br><br>|1200<br>0.0%<br>2330<br>0.0%<br>2530<br>0.0%<br><br>|
|
| 482 |
+
|LL-PROD<br>LL-PROD<br>LL-CONGLOM<br>LL-CONFIG<br>LL-CONFIG<br>LL-CONGLOM<br>LL-PROD<br>LL-CONFIG<br>LL-CONFIG<br>|.92<br>.92<br>.84<br>.84<br>.79<br>.77<br>.76<br>.71<br>.65<br>|850<br>23.2%<br>840<br>21.7%<br>1340<br>12.6%<br>1660<br>43.1%<br>1960<br>69.0%<br>1600<br>34.5%<br>1080<br>56.5%<br>2100<br>81.0%<br>2650<br>128.4%<br><br>|1470<br>22.5%<br>1560<br>30.0%<br>2610<br>12.0%<br>3760<br>48.6%<br>3910<br>54.5%<br>3400<br>45.9%<br>2040<br>70.0%<br>4270<br>68.8%<br>4870<br>92.5%<br><br>|
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
RAND LL-CONGLOM - 1400 17.6% 3470 48.9% 7150 71.9%
|
| 486 |
+
|
| 487 |
+
RAND LL-CONFIG - 1160 0.0% 3890 53.8% 8560 79.1%
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
Table 2: Comparison of various selection and reuse conditions. Values are given for discriminant cost (DC)
|
| 491 |
+
and the percent increase (Incr) in cost over use of material selected by the reuser.
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
|
| 495 |
+
LL-CONFIG until 67% accuracy. Thus, LL-MRS and
|
| 496 |
+
|
| 497 |
+
P-MRS are so divergent from LL-CONFIG that their
|
| 498 |
+
selections are truly sub-optimal for LL-CONFIG, particularly in the initial stages.
|
| 499 |
+
Together, these results shows that AL cannot be
|
| 500 |
+
used blindly and always be expected to reduce the
|
| 501 |
+
total cost of annotation. The data is tuned to the
|
| 502 |
+
models used during AL and how useful that data
|
| 503 |
+
will be for other models depends on the degree of
|
| 504 |
+
relatedness of the models under consideration.
|
| 505 |
+
Given that AL may or may not provide cost reductions, we consider the effect that semi-automating
|
| 506 |
+
annotation has on reducing the total cost of annotation when used with and without AL.
|
| 507 |
+
|
| 508 |
+
|
| 509 |
+
**7** **Semi-automated labeling**
|
| 510 |
+
|
| 511 |
+
Corpus building, with or without AL, is generally
|
| 512 |
+
viewed as selecting examples and then _from scratch_
|
| 513 |
+
labeling such examples. This can be inefficient, especially when dealing with labels that have complex
|
| 514 |
+
internal structures, as a model may be able to ruleout some of the labeling possibilities.
|
| 515 |
+
For our domain, we exploit the fact that we may
|
| 516 |
+
already have partial information about an example’s
|
| 517 |
+
label by presenting only the top _n_ -best parses to
|
| 518 |
+
the annotator, who then navigates to the best parse
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
within that set using those discriminants relevant to
|
| 523 |
+
that set of parses. Rather than using a value for _n_
|
| 524 |
+
that is fixed or proportional to the ambiguity of the
|
| 525 |
+
sentence, we simply select all parses for which the
|
| 526 |
+
model assigns a probability higher than chance. This
|
| 527 |
+
has the advantage of reducing the number of parses
|
| 528 |
+
presented to the annotator as the model uses more
|
| 529 |
+
training material and reduces its uncertainty.
|
| 530 |
+
|
| 531 |
+
|
| 532 |
+
When the true best parse is within the top _n_ presented to the annotator, the cost we record is the
|
| 533 |
+
number of discriminants needed to identify it from
|
| 534 |
+
that subset, plus one – the same calculation as when
|
| 535 |
+
all parses are presented, with the advantage that
|
| 536 |
+
fewer discriminants and parses need to be inspected.
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
When the best parse is _not_ present in the _n_ -best
|
| 540 |
+
subset, there is a question as to how to record the
|
| 541 |
+
annotation cost. The discriminant decisions made
|
| 542 |
+
in reducing the subset are still valid and useful in
|
| 543 |
+
identifying the best parse from the entire set, but we
|
| 544 |
+
must incur some penalty for the fact that the annotator must confirm that this is the case. To determine the cost for such situations, we add one to the
|
| 545 |
+
usual full cost of annotating the sentence. This encodes what we feel is a reasonable reflection of the
|
| 546 |
+
penalty since decisions taken in the _n_ -best phase are
|
| 547 |
+
|
| 548 |
+
|
| 549 |
+
still valid in the context of all parses. [3]
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
Performance level
|
| 553 |
+
65% 70% 73%
|
| 554 |
+
1. RAND 820 1950 3680
|
| 555 |
+
2. LL-PROD 690 1200 2050
|
| 556 |
+
3. RAND (NB) 670 1350 2430
|
| 557 |
+
4. LL-PROD (NB) 680 1120 1760
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
Table 3: Cost for LL-PROD to reach given performance levels when using _n_ -best automation (NB).
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
Table 3 shows the effects of using semi-automated
|
| 564 |
+
labeling with LL-PROD. As can be seen, random
|
| 565 |
+
selection costs reduce dramatically with _n_ -best automation (compare rows 1 and 3). It is also an early
|
| 566 |
+
winner over basic uncertainty sampling (row 2),
|
| 567 |
+
though the latter eventually reaches the higher accuracies more quickly. Nonetheless, the mixture of
|
| 568 |
+
AL and semi-automation provides the biggest overall gains: to reach 73% accuracy, _n_ -best uncertainty
|
| 569 |
+
sampling (row 4) reduces the cost by 17% over _n_ best random sampling (row 3) and by 15% over basic uncertainty sampling (row 2). Similar patterns
|
| 570 |
+
hold for _n_ -best automation with LL-CONFIG.
|
| 571 |
+
Figure 2 provides an overall view on the accumulative effects of ensembling, _n_ -best automation, and
|
| 572 |
+
uncertainty sampling in the ideal situation of reuse
|
| 573 |
+
by the AL model itself. Ensemble models and _n_ -best
|
| 574 |
+
automation show that massive improvements can be
|
| 575 |
+
made without AL. Nonetheless, we see the largest
|
| 576 |
+
reductions by using AL, _n_ -best automation, and ensemble models together: LL-PROD using uncertainty
|
| 577 |
+
sampling and _n_ -best automation (row 4 of Table 3)
|
| 578 |
+
reaches 73% accuracy with a cost of 1760 compared
|
| 579 |
+
to 8560 needed by LL-CONFIG using random sampling without automation. This is our best annotation saving: a cost reduction of 80%.
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
**8** **Closing the reuse gap**
|
| 583 |
+
|
| 584 |
+
The previous section’s semi-automated labeling experiments did not involve reuse. If models are expected to evolve, could _n_ -best automation fill in the
|
| 585 |
+
cost gap created by reuse? To test this, we considered reusing examples with our best model (LL
|
| 586 |
+
|
| 587 |
+
3When we do not allow ourselves to benefit from such labeling decisions, our annotation savings naturally decrease, but
|
| 588 |
+
not below when we do not use _n_ -best labeling.
|
| 589 |
+
|
| 590 |
+
|
| 591 |
+
|
| 592 |
+
PROD), as selected by different models using both
|
| 593 |
+
AL and _n_ -best automation as a combined strategy.
|
| 594 |
+
For LL-CONFIG and LL-CONGLOM as selectors, the
|
| 595 |
+
gap is entirely closed: costs for reuse were virtually
|
| 596 |
+
equal to when LL-PROD selects examples for itself
|
| 597 |
+
_without n_ -best (Table 3, row 2).
|
| 598 |
+
The gap also closes when _n_ -best automation and
|
| 599 |
+
AL are used with the weaker LL-MRS model. Performance (Table 4, row 1) still falls far short of LL
|
| 600 |
+
PROD selecting for itself _without_ _n_ -best (Table 3,
|
| 601 |
+
row 2). However, the gap closes even more when _n_ best automation and random sampling are used with
|
| 602 |
+
|
| 603 |
+
LL-MRS (Table 4, line 2).
|
| 604 |
+
|
| 605 |
+
|
| 606 |
+
Performance level
|
| 607 |
+
65% 70% 73%
|
| 608 |
+
1. NB & US 1040 1920 3320
|
| 609 |
+
2. NB & RAND 680 1450 2890
|
| 610 |
+
|
| 611 |
+
|
| 612 |
+
Table 4: Cost for LL-PROD to reach given performance levels in reuse situations where _n_ -best automation (NB) was used with LL-MRS with uncertainty sampling (US) or random sampling (RAND).
|
| 613 |
+
|
| 614 |
+
|
| 615 |
+
Interestingly, when using a weak selector (LL
|
| 616 |
+
MRS), _n_ -best automation combined with random
|
| 617 |
+
sampling was _more_ effective than when combined
|
| 618 |
+
with uncertainty sampling. The reason for this is
|
| 619 |
+
clear. Since AL typically selects more ambiguous
|
| 620 |
+
examples, a weak model has more difficulty getting
|
| 621 |
+
|
| 622 |
+
|
| 623 |
+
|
| 624 |
+
80
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
75
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
70
|
| 631 |
+
|
| 632 |
+
|
| 633 |
+
65
|
| 634 |
+
|
| 635 |
+
|
| 636 |
+
60
|
| 637 |
+
|
| 638 |
+
|
| 639 |
+
55
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
50
|
| 643 |
+
|
| 644 |
+
|
| 645 |
+
|
| 646 |
+
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
|
| 647 |
+
|
| 648 |
+
Annotation cost
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
|
| 659 |
+
|
| 660 |
+
Figure 2: Learning curves for accumulative improvements to the annotation scenario starting from
|
| 661 |
+
random sampling with LL-CONFIG: ensembling, _n_ best automation, and uncertainty sampling.
|
| 662 |
+
|
| 663 |
+
|
| 664 |
+
the best parse within the _n_ -best when AL is used.
|
| 665 |
+
Thus, the gains from the more informative examples
|
| 666 |
+
selected by AL are surpassed by the gains that come
|
| 667 |
+
with the easier labeling with random sampling.
|
| 668 |
+
For most situations, _n_ -best automation is beneficial: the gap introduced by reuse can be reduced. _n_ best automation never results in an increase in cost.
|
| 669 |
+
This is still true even if we do not allow ourselves to
|
| 670 |
+
reuse those discriminants which were used to select
|
| 671 |
+
the best parse from the _n_ -best subset and the best
|
| 672 |
+
parse was not actually present in that subset.
|
| 673 |
+
|
| 674 |
+
|
| 675 |
+
**9** **Related work**
|
| 676 |
+
|
| 677 |
+
There is a large body of AL work in the machine
|
| 678 |
+
learning literature, but less so within natural language processing (NLP). Most work in NLP has
|
| 679 |
+
primarily focused upon uncertainty sampling (Hwa,
|
| 680 |
+
2000; Tang et al., 2002). Hwa (2001) considered
|
| 681 |
+
reuse of examples selected for one parser by another with uncertainty sampling. This performed
|
| 682 |
+
better than sequential sampling but was only half as
|
| 683 |
+
effective as self-selection. Here, we have considered reuse with respect to many models and their
|
| 684 |
+
co-relatedness. Also, we compare reuse performance against against random sampling, which we
|
| 685 |
+
showed previously to be a much stronger baseline
|
| 686 |
+
than sequential sampling for the Redwoods corpus
|
| 687 |
+
(Osborne and Baldridge, 2004). Hwa et al. (2003)
|
| 688 |
+
showed that for parsers, AL outperforms the closely
|
| 689 |
+
related co-training, and that some of the labeling
|
| 690 |
+
could be automated. However, their approach requires strict independence assumptions.
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
**10** **Discussion**
|
| 694 |
+
|
| 695 |
+
AL should only be considered for creating labeled
|
| 696 |
+
data when the the task is either well-understood or
|
| 697 |
+
else the model is unlikely to substantially change.
|
| 698 |
+
Otherwise, it would be prudent to consider improving either the model itself (using, for example, ensemble techniques) or else semi-automating the labeling task. Naturally, there is a cost associated with
|
| 699 |
+
creating the model itself, and this in turn will need
|
| 700 |
+
to be factored into the total cost. When there is genuine uncertainty about the model, or else how the
|
| 701 |
+
labeled data is going to be eventually used, then the
|
| 702 |
+
best strategy may well be to use random selection
|
| 703 |
+
rather than AL - especially when using some form
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
of automated annotation.
|
| 708 |
+
|
| 709 |
+
**Acknowledgments**
|
| 710 |
+
|
| 711 |
+
We would like to thank Markus Becker, Jeremiah
|
| 712 |
+
Crim, Dan Flickinger, Alex Lascarides, Stephan
|
| 713 |
+
Oepen, and Andrew Smith. We’d also like to
|
| 714 |
+
thank `pc-jbaldrid` and `pc-rosie` for their
|
| 715 |
+
hard work and 24/7 dedication. This work was supported by Edinburgh-Stanford Link R36763, ROSIE
|
| 716 |
+
project.
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
**References**
|
| 720 |
+
|
| 721 |
+
David A. Cohn, Zoubin Ghahramani, and Michael I. Jordan.
|
| 722 |
+
1995. Active learning with statistical models. In G. Tesauro,
|
| 723 |
+
D. Touretzky, and T. Leen, editors, _Advances in Neural Infor-_
|
| 724 |
+
_mation_ _Processing_ _Systems_, volume 7, pages 705–712. The
|
| 725 |
+
MIT Press.
|
| 726 |
+
|
| 727 |
+
Dan Flickinger. 2000. On building a more efficient grammar by
|
| 728 |
+
exploiting types. _Natural_ _Language_ _Engineering_, 6(1):15–
|
| 729 |
+
28. Special Issue on Efficient Processing with HPSG.
|
| 730 |
+
|
| 731 |
+
G. E. Hinton. 1999. Products of experts. In _Proc. of the 9th Int._
|
| 732 |
+
_Conf. on Artificial Neural Networks_, pages 1–6.
|
| 733 |
+
|
| 734 |
+
Rebecca Hwa, Miles Osborne, Anoop Sarkar, and Mark Steedman. 2003. Corrected Co-training for Statistical Parsers. In
|
| 735 |
+
_Proceedings_ _of_ _the_ _ICML_ _Workshop_ _“The_ _Continuum_ _from_
|
| 736 |
+
_Labeled to Unlabeled Data”_, pages 95–102. ICML-03.
|
| 737 |
+
|
| 738 |
+
Rebecca Hwa. 2000. Sample selection for statistical grammar induction. In _Proc. of the 2000 Joint SIGDAT Conf. on_
|
| 739 |
+
_EMNLP and VLC_, pages 45–52, Hong Kong, China.
|
| 740 |
+
|
| 741 |
+
Rebecca Hwa. 2001. On minimizing training corpus for parser
|
| 742 |
+
acquisition. In _Proc. of the 5th Conference on Natural Lan-_
|
| 743 |
+
_guage Learning_, Toulouse.
|
| 744 |
+
|
| 745 |
+
Mark Johnson, Stuart Geman, Stephen Cannon, Zhiyi Chi,
|
| 746 |
+
and Stephan Riezler. 1999. Estimators for Stochastic
|
| 747 |
+
“Unification-Based” Grammars. In _37th Annual Meeting of_
|
| 748 |
+
_the ACL_ .
|
| 749 |
+
|
| 750 |
+
Stephan Oepen, Kristina Toutanova, Stuart Shieber, Christopher
|
| 751 |
+
Manning, Dan Flickinger, and Thorsten Brants. 2002. The
|
| 752 |
+
LinGO Redwoods Treebank: Motivation and preliminary applications. In _Proc. of the 19th International Conference on_
|
| 753 |
+
_Computational Linguistics_, Taipei, Taiwan.
|
| 754 |
+
|
| 755 |
+
Miles Osborne and Jason Baldridge. 2004. Ensemble-based
|
| 756 |
+
active learning for parse selection. In _Proc. of HLT-NAACL_,
|
| 757 |
+
Boston.
|
| 758 |
+
|
| 759 |
+
H. S. Seung, Manfred Opper, and Haim Sompolinsky. 1992.
|
| 760 |
+
Query by committee. In _Computational_ _Learning_ _Theory_,
|
| 761 |
+
pages 287–294.
|
| 762 |
+
|
| 763 |
+
Min Tang, Xiaoqiang Luo, and Salim Roukos. 2002. Active Learning for Statistical Natural Language Parsing. In
|
| 764 |
+
_Proc._ _of_ _the_ 40 _[th]_ _Annual_ _Meeting_ _of_ _the_ _ACL_, pages 120–
|
| 765 |
+
127, Philadelphia, Pennsylvania, USA, July.
|
| 766 |
+
|
| 767 |
+
|
|
@@ -0,0 +1,1459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 4 |
+
- "Burr Settles"
|
| 5 |
+
- "Mark Craven"
|
| 6 |
+
year: 2008
|
| 7 |
+
venue: "EMNLP 2008"
|
| 8 |
+
url: "https://aclanthology.org/D08-1112/"
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# **An Analysis of Active Learning Strategies for Sequence Labeling Tasks**
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
**Burr Settles** _[∗†]_
|
| 16 |
+
|
| 17 |
+
_∗_ Dept. of Computer Sciences
|
| 18 |
+
University of Wisconsin
|
| 19 |
+
Madison, WI 53706, USA
|
| 20 |
+
bsettles@cs.wisc.edu
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
**Abstract**
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
Active learning is well-suited to many problems in natural language processing, where
|
| 27 |
+
unlabeled data may be abundant but annotation is slow and expensive. This paper aims
|
| 28 |
+
to shed light on the best active learning approaches for sequence labeling tasks such as
|
| 29 |
+
information extraction and document segmentation. We survey previously used query selection strategies for sequence models, and propose several novel algorithms to address their
|
| 30 |
+
shortcomings. We also conduct a large-scale
|
| 31 |
+
empirical comparison using multiple corpora,
|
| 32 |
+
which demonstrates that our proposed methods advance the state of the art.
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
**1** **Introduction**
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
Traditional supervised learning algorithms use
|
| 39 |
+
whatever labeled data is provided to induce a model.
|
| 40 |
+
By contrast, _active_ _learning_ gives the learner a degree of control by allowing it to select which instances are labeled and added to the training set. A
|
| 41 |
+
typical active learner begins with a small labeled set
|
| 42 |
+
_L_, selects one or more informative _query_ instances
|
| 43 |
+
from a large unlabeled pool _U_, learns from these labeled queries (which are then added to _L_ ), and repeats. In this way, the learner aims to achieve high
|
| 44 |
+
accuracy with as little labeling effort as possible.
|
| 45 |
+
Thus, active learning can be valuable in domains
|
| 46 |
+
where unlabeled data are readily available, but obtaining training labels is expensive.
|
| 47 |
+
Such is the case with many _sequence_ _labeling_
|
| 48 |
+
tasks in natural language domains. For example,
|
| 49 |
+
part-of-speech tagging (Seung et al., 1992; Lafferty
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
**Mark Craven** _[†∗]_
|
| 54 |
+
|
| 55 |
+
_†_ Dept. of Biostatistics & Medical Informatics
|
| 56 |
+
University of Wisconsin
|
| 57 |
+
Madison, WI 53706, USA
|
| 58 |
+
craven@biostat.wisc.edu
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
et al., 2001), information extraction (Scheffer et al.,
|
| 62 |
+
2001; Sang and DeMeulder, 2003; Kim et al., 2004),
|
| 63 |
+
and document segmentation (Carvalho and Cohen,
|
| 64 |
+
2004) are all typically treated as sequence labeling
|
| 65 |
+
problems. The source data for these tasks (i.e., text
|
| 66 |
+
documents in electronic form) are often easily obtained. However, due to the nature of sequence labeling tasks, annotating these texts can be rather tedious and time-consuming, making active learning
|
| 67 |
+
an attractive technique.
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
While there has been much work on active learning for classification (Cohn et al., 1994; McCallum
|
| 71 |
+
and Nigam, 1998; Zhang and Oles, 2000; Zhu et
|
| 72 |
+
al., 2003), active learning for sequence labeling has
|
| 73 |
+
received considerably less attention. A few methods have been proposed, based mostly on the conventions of _uncertainty sampling_, where the learner
|
| 74 |
+
queries the instance about which it has the least certainty (Scheffer et al., 2001; Culotta and McCallum,
|
| 75 |
+
2005; Kim et al., 2006), or _query-by-committee_,
|
| 76 |
+
where a “committee” of models selects the instance
|
| 77 |
+
about which its members most disagree (Dagan and
|
| 78 |
+
Engelson, 1995). We provide more detail on these
|
| 79 |
+
and the new strategies we propose in Section 3.
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
The comparative effectiveness of these approaches, however, has not been studied. Furthermore, it has been suggested that uncertainty sampling and query-by-committee fail on occasion (Roy
|
| 83 |
+
and McCallum, 2001; Zhu et al., 2003) by querying outliers, e.g., instances considered informative
|
| 84 |
+
in isolation by the learner, but containing little information about the _rest_ of the distribution of instances.
|
| 85 |
+
Proposed methods for dealing with these shortcomings have so far only considered classification tasks.
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
1070
|
| 90 |
+
|
| 91 |
+
_Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing_, pages 1070–1079,
|
| 92 |
+
Honolulu, October 2008. _⃝_ c 2008 Association for Computational Linguistics
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
This paper presents two major contributions for
|
| 96 |
+
active learning and sequence labeling tasks. First,
|
| 97 |
+
we motivate and introduce several new query strategies for probabilistic sequence models. Second, we
|
| 98 |
+
conduct a thorough empirical analysis of previously
|
| 99 |
+
proposed methods with our algorithms on a variety
|
| 100 |
+
of benchmark corpora. The remainder of this paper is organized as follows. Section 2 provides a
|
| 101 |
+
brief introduction to sequence labeling and conditional random fields (the sequence model used in
|
| 102 |
+
our experiments). Section 3 describes in detail all
|
| 103 |
+
the query selection strategies we consider. Section 4
|
| 104 |
+
presents the results of our empirical study. Section 5
|
| 105 |
+
concludes with a summary of our findings.
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
**2** **Sequence Labeling and CRFs**
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
In this paper, we are concerned with active learning for sequence labeling. Figure 1 illustrates
|
| 112 |
+
how, for example, an information extraction problem can be viewed as a sequence labeling task.
|
| 113 |
+
Let **x** = _⟨x_ 1 _, . . ., xT ⟩_ be an observation sequence
|
| 114 |
+
of length _T_ with a corresponding label sequence
|
| 115 |
+
**y** = _⟨y_ 1 _, . . ., yT ⟩_ . Words in a sentence correspond to tokens in the input sequence **x**, which are
|
| 116 |
+
mapped to labels in **y** . These labels indicate whether
|
| 117 |
+
the word belongs to a particular entity class of interest (in this case, org and loc) or not (null). These
|
| 118 |
+
labels can be assigned by a sequence model based
|
| 119 |
+
on a finite state machine, such as the one shown to
|
| 120 |
+
the right in Figure 1.
|
| 121 |
+
We focus our discussion of active learning for
|
| 122 |
+
sequence labeling on _conditional_ _random_ _fields_, or
|
| 123 |
+
CRFs (Lafferty et al., 2001). The rest of this section serves as a brief introduction. CRFs are statistical graphical models which have demonstrated
|
| 124 |
+
state-of-the-art accuracy on virtually all of the sequence labeling tasks mentioned in Section 1. We
|
| 125 |
+
use linear-chain CRFs, which correspond to conditionally trained probabilistic finite state machines.
|
| 126 |
+
A linear-chain CRF model with parameters _θ_ defines the posterior probability of **y** given **x** to be [1] :
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
**x:**
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
**y:**
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
**null**
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
**org**
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
offices
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
**null**
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
in
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
**org**
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
Figure 1: An information extraction example treated as
|
| 176 |
+
a sequence labeling task. Also shown is a corresponding
|
| 177 |
+
sequence model represented as a finite state machine.
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
Here _Z_ ( **x** ) is a normalization factor over all possible labelings of **x**, and _θk_ is one of _K_ model
|
| 181 |
+
parameter weights corresponding to some feature
|
| 182 |
+
_fk_ ( _yt−_ 1 _, yt,_ **x** _t_ ). Each feature _fk_ describes the sequence **x** at position _t_ with label _yt_, observed along
|
| 183 |
+
a transition from label states _yt−_ 1 to _yt_ in the finite
|
| 184 |
+
state machine. Consider the example text from Figure 1. Here, _fk_ might be the feature WORD= _ACME_
|
| 185 |
+
and have the value _fk_ = 1 along a transition from
|
| 186 |
+
the null state to the org state (and 0 elsewhere).
|
| 187 |
+
Other features set to 1 here might be ALLCAPS and
|
| 188 |
+
NEXTWORD= _Inc._ The weights in _θ_ are set to maximize the conditional log likelihood _ℓ_ of training sequences in the labeled data set _L_ :
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
_K_
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
_k_ =1
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
_ℓ_ ( _L_ ; _θ_ ) =
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
_L_
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
log _P_ ( **y** [(] _[l]_ [)] _|_ **x** [(] _[l]_ [)] ; _θ_ ) _−_
|
| 208 |
+
|
| 209 |
+
_l_ =1
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
_θk_ [2] _[,]_
|
| 214 |
+
2 _σ_ [2]
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
_θkfk_ ( _yt−_ 1 _, yt,_ **x** _t_ )
|
| 219 |
+
|
| 220 |
+
_k_ =1
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
1
|
| 229 |
+
_P_ ( **y** _|_ **x** ; _θ_ ) =
|
| 230 |
+
_Z_ ( **x** ) [exp]
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
- _T_
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
_t_ =1
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
_K_
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
_._
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
(1)
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
1Our discussion assumes, without loss of generality, that
|
| 256 |
+
each label is uniquely represented by one state, thus each label
|
| 257 |
+
sequence **y** corresponds to exactly one path through the model.
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
1071
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
where _L_ is the size of the labeled set _L_, and the second term is a Gaussian regularization penalty on _∥θ∥_
|
| 265 |
+
to prevent over-fitting. After training, labels can be
|
| 266 |
+
predicted for new sequences using the Viterbi algorithm. For more details on CRFs and their training
|
| 267 |
+
procedures, see Sutton and McCallum (2006).
|
| 268 |
+
Note that, while we describe the active learning
|
| 269 |
+
algorithms in the next section in terms of linearchain CRFs, they have analogs for other kinds of
|
| 270 |
+
sequence models, such as hidden Markov models,
|
| 271 |
+
or HMMs (Rabiner, 1989), probabilistic contextfree grammars (Lari and Young, 1990), and general
|
| 272 |
+
CRFs (Sutton and McCallum, 2006).
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
**3** **Active Learning with Sequence Models**
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
In order to select queries, an active learner must have
|
| 279 |
+
a way of assessing how _informative_ each instance is.
|
| 280 |
+
Let **x** _[∗]_ be the most informative instance according to
|
| 281 |
+
some query strategy _φ_ ( **x** ), which is a function used
|
| 282 |
+
to evaluate each instance **x** in the unlabeled pool _U_ .
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
**Given** : Labeled set _L_, unlabeled pool _U_, query
|
| 286 |
+
strategy _φ_ ( _·_ ), query batch size _B_
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
**repeat**
|
| 290 |
+
|
| 291 |
+
_// learn a model using the current L_
|
| 292 |
+
_θ_ = train( _L_ ) ;
|
| 293 |
+
**for** _b_ = 1 **to** _B_ **do**
|
| 294 |
+
|
| 295 |
+
_// query the most informative instance_
|
| 296 |
+
**x** _[∗]_ _b_ [= arg max] **[x]** _[∈U][ φ]_ [(] **[x]** [)][ ;]
|
| 297 |
+
_// move the labeled query from U_ _to L_
|
| 298 |
+
_L_ = _L ∪⟨_ **x** _[∗]_ _b_ _[,]_ [ label(] **[x]** _[∗]_ _b_ [)] _[⟩]_ [;]
|
| 299 |
+
_U_ = _U_ _−_ **x** _[∗]_ _b_ [;]
|
| 300 |
+
**end**
|
| 301 |
+
**until** _some stopping criterion_ ;
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
**Algorithm 1** : Pool-based active learning.
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
Algorithm 1 provides a sketch of the generic poolbased active learning scenario.
|
| 308 |
+
In the remainder of this section, we describe various query strategy formulations of _φ_ ( _·_ ) that have
|
| 309 |
+
been used for active learning with sequence models. We also point out where we think these approaches may be flawed, and propose several novel
|
| 310 |
+
query strategies to address these issues.
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
**3.1** **Uncertainty Sampling**
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
One of the most common general frameworks for
|
| 317 |
+
measuring informativeness is _uncertainty_ _sampling_
|
| 318 |
+
(Lewis and Catlett, 1994), where a learner queries
|
| 319 |
+
the instance that it is most uncertain how to label. Culotta and McCallum (2005) employ a simple uncertainty-based strategy for sequence models
|
| 320 |
+
called **least confidence (LC)** :
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
_φ_ _[LC]_ ( **x** ) = 1 _−_ _P_ ( **y** _[∗]_ _|_ **x** ; _θ_ ) _._
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
Here, **y** _[∗]_ is the most likely label sequence, i.e., the
|
| 327 |
+
Viterbi parse. This approach queries the instance
|
| 328 |
+
for which the current model has the least confidence
|
| 329 |
+
in its most likely labeling. For CRFs, this confidence can be calculated using the posterior probability given by Equation (1).
|
| 330 |
+
Scheffer et al. (2001) propose another uncertainty
|
| 331 |
+
strategy, which queries the instance with the smallest
|
| 332 |
+
margin between the posteriors for its two most likely
|
| 333 |
+
labelings. We call this approach **margin (M)** :
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
_φ_ _[M]_ ( **x** ) = _−_ - _P_ ( **y** 1 _[∗][|]_ **[x]** [;] _[ θ]_ [)] _[ −]_ _[P]_ [(] **[y]** 2 _[∗][|]_ **[x]** [;] _[ θ]_ [)] - _._
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
1072
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
Here, **y** 1 _[∗]_ [and] **[y]** 2 _[∗]_ [are] [the] [first] [and] [second] [best] [la-]
|
| 344 |
+
bel sequences, respectively. These can be efficiently
|
| 345 |
+
computed using the _N_ -best algorithm (Schwartz
|
| 346 |
+
and Chow, 1990), a beam-search generalization of
|
| 347 |
+
Viterbi, with _N_ = 2. The minus sign in front is simply to ensure that _φ_ _[M]_ acts as a maximizer for use
|
| 348 |
+
with Algorithm 1.
|
| 349 |
+
Another uncertainty-based measure of informativeness is _entropy_ (Shannon, 1948). For a discrete random variable _Y_, the entropy is given by
|
| 350 |
+
_H_ ( _Y_ ) = _−_ [�] _i_ _[P]_ [(] _[y][i]_ [) log] _[ P]_ [(] _[y][i]_ [)][,] [and] [represents] [the]
|
| 351 |
+
information needed to “encode” the distribution of
|
| 352 |
+
outcomes for _Y_ . As such, is it often thought of as
|
| 353 |
+
a measure of uncertainty in machine learning. In
|
| 354 |
+
active learning, we wish to use the entropy of our
|
| 355 |
+
model’s posteriors over its labelings. One way this
|
| 356 |
+
has been done with probabilistic sequence models is
|
| 357 |
+
by computing what we call **token entropy (TE)** :
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
_M_
|
| 362 |
+
|
| 363 |
+
- _Pθ_ ( _yt_ = _m_ ) log _Pθ_ ( _yt_ = _m_ ) _,_
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
_m_ =1
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
_φ_ _[T E]_ ( **x** ) = _−_ [1]
|
| 371 |
+
|
| 372 |
+
_T_
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
_T_
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
_t_ =1
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
(2)
|
| 385 |
+
where _T_ is the length of **x**, _m_ ranges over all possible token labels, and _Pθ_ ( _yt_ = _m_ ) is shorthand
|
| 386 |
+
for the marginal probability that _m_ is the label at
|
| 387 |
+
position _t_ in the sequence, according to the model.
|
| 388 |
+
For CRFs and HMMs, these marginals can be efficiently computed using the _forward_ and _backward_
|
| 389 |
+
algorithms (Rabiner, 1989). The summed token entropies have typically been normalized by sequence
|
| 390 |
+
length _T_, to avoid simply querying longer sequences
|
| 391 |
+
(Baldridge and Osborne, 2004; Hwa, 2004). However, we argue that querying long sequences should
|
| 392 |
+
not be explicitly discouraged, if in fact they contain
|
| 393 |
+
more information. Thus, we also propose the **total**
|
| 394 |
+
**token entropy (TTE)** measure:
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
_φ_ _[TTE]_ ( **x** ) = _T_ _× φ_ _[TE]_ ( **x** ) _._
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
For most sequence labeling tasks, however, it is
|
| 401 |
+
more appropriate to consider the entropy of the label sequence **y** as a whole, rather than some aggregate of individual token entropies. Thus an alternate
|
| 402 |
+
query strategy is **sequence entropy (SE)** :
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
_φ_ _[SE]_ ( **x** ) = _−_ _P_ (ˆ **y** _|_ **x** ; _θ_ ) log _P_ (ˆ **y** _|_ **x** ; _θ_ ) _,_ (3)
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
**y** ˆ
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
where **y** ˆ ranges over all possible label sequences for
|
| 412 |
+
input sequence **x** . Note, however, that the number
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
of possible labelings grows exponentially with the
|
| 416 |
+
length of **x** . To make this feasible, previous work
|
| 417 |
+
(Kim et al., 2006) has employed an approximation
|
| 418 |
+
we call _**N**_ **-best sequence entropy (NSE)** :
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
_φ_ _[NSE]_ ( **x** ) = _−_ _P_ (ˆ **y** _|_ **x** ; _θ_ ) log _P_ (ˆ **y** _|_ **x** ; _θ_ ) _,_
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
**y** ˆ _∈N_
|
| 425 |
+
|
| 426 |
+
where _N_ = _{_ **y** 1 _[∗][, . . .,]_ **[ y]** _N_ _[∗]_ _[}]_ [,] [the] [set] [of] [the] _[N]_ [most]
|
| 427 |
+
likely parses, and the posteriors are re-normalized
|
| 428 |
+
(i.e., _Z_ ( **x** ) in Equation (1) only ranges over _N_ ). For
|
| 429 |
+
_N_ = 2, this approximation is equivalent to _φ_ _[M]_, thus
|
| 430 |
+
_N_ -best sequence entropy can be thought of as a generalization of the margin approach.
|
| 431 |
+
Recently, an efficient entropy calculation via dynamic programming was proposed for CRFs in the
|
| 432 |
+
context of semi-supervised learning (Mann and McCallum, 2007). We use this algorithm to compute
|
| 433 |
+
the true sequence entropy (3) for active learning in
|
| 434 |
+
a constant-time factor of Viterbi’s complexity. Hwa
|
| 435 |
+
(2004) employed a similar approach for active learning with probabilistic context-free grammars.
|
| 436 |
+
|
| 437 |
+
|
| 438 |
+
**3.2** **Query-By-Committee**
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
Another general active learning framework is the
|
| 442 |
+
_query-by-committee_ (QBC) approach (Seung et al.,
|
| 443 |
+
1992). In this setting, we use a committee of models
|
| 444 |
+
_C_ = _{θ_ [(1)] _, . . ., θ_ [(] _[C]_ [)] _}_ to represent _C_ different hypotheses that are consistent with the labeled set _L_ .
|
| 445 |
+
The most informative query, then, is the instance
|
| 446 |
+
over which the committee is in most disagreement
|
| 447 |
+
about how to label.
|
| 448 |
+
In particular, we use the _query-by-bagging_ approach (Abe and Mamitsuka, 1998) to learn a committee of CRFs. In each round of active learning,
|
| 449 |
+
_L_ is sampled (with replacement) _L_ times to create
|
| 450 |
+
a unique, modified labeled set _L_ [(] _[c]_ [)] . Each model
|
| 451 |
+
_θ_ [(] _[c]_ [)] _∈C_ is then trained using its own corresponding
|
| 452 |
+
labeled set _L_ [(] _[c]_ [)] . To measure disagreement among
|
| 453 |
+
committee members, we consider two alternatives.
|
| 454 |
+
Dagan and Engelson (1995) introduced QBC with
|
| 455 |
+
HMMs for part-of-speech tagging using a measure
|
| 456 |
+
called **vote entropy (VE)** :
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
|
| 460 |
+
McCallum and Nigam (1998) propose a QBC
|
| 461 |
+
strategy for classification based on _Kullback-Leibler_
|
| 462 |
+
_(KL)_ _divergence_, an information-theoretic measure
|
| 463 |
+
of the difference between two probability distributions. The most informative query is considered to
|
| 464 |
+
be the one with the largest average KL divergence
|
| 465 |
+
between a committee member’s posterior label distribution and the consensus. We modify this approach for sequence models by summing the average
|
| 466 |
+
KL scores using the marginals at each token position
|
| 467 |
+
and, as with vote entropy, normalizing for length.
|
| 468 |
+
We call this approach **Kullback-Leibler (KL)** :
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
Here _PC_ ( _yt_ = _m_ ) = _C_ [1] - _Cc_ =1 _[P]_ _θ_ [(] _[c]_ [)][(] _[y][t]_ [=] _[ m]_ [)][, or the]
|
| 473 |
+
|
| 474 |
+
“consensus” marginal probability that _m_ is the label
|
| 475 |
+
at position _t_ in the sequence.
|
| 476 |
+
Both of these disagreement measures are normalized for sequence length _T_ . As with token entropy (2), this may bias the learner toward querying shorter sequences. To study the effects of normalization, we also conduct experiments with **non-**
|
| 477 |
+
**normalized variants** _φ_ _[TV E]_ and _φ_ _[TKL]_ .
|
| 478 |
+
Additionally, we argue that these token-level disagreement measures may be less appropriate for
|
| 479 |
+
most tasks than measuring the committee’s disagreement about the label sequence **y** as a whole. Therefore, we propose **sequence vote entropy (SVE)** :
|
| 480 |
+
|
| 481 |
+
|
| 482 |
+
_φ_ _[SV E]_ ( **x** ) = _−_ _P_ (ˆ **y** _|_ **x** ; _C_ ) log _P_ (ˆ **y** _|_ **x** ; _C_ ) _,_
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
**y** ˆ _∈N_ _[C]_
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
where _N_ _[C]_ is the union of the _N_ -best parses from
|
| 489 |
+
all models in the committee _C_, and _P_ (ˆ **y** _|_ **x** ; _C_ ) =
|
| 490 |
+
_C_ 1 - _Cc_ =1 _[P]_ [(ˆ] **[y]** _[|]_ **[x]** [;] _[ θ]_ [(] _[c]_ [)][)][,] [or] [the] [“consensus”] [posterior]
|
| 491 |
+
probability for some label sequence **y** ˆ. This can be
|
| 492 |
+
thought of as a QBC generalization of _N_ -best entropy, where each committee member casts a vote
|
| 493 |
+
for the posterior label distribution. We also explore
|
| 494 |
+
a **sequence Kullback-Leibler (SKL)** variant:
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
_C_
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
_D_ ( _θ_ [(] _[c]_ [)] _∥C_ ) _,_
|
| 502 |
+
|
| 503 |
+
_c_ =1
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
_φ_ _[KL]_ ( **x** ) = [1]
|
| 508 |
+
|
| 509 |
+
_T_
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
_T_
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
_t_ =1
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
1
|
| 522 |
+
|
| 523 |
+
_C_
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
where (using shorthand again):
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
|
| 531 |
+
_PC_ ( _yt_ = _m_ ) _[.]_
|
| 532 |
+
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
_D_ ( _θ_ [(] _[c]_ [)] _∥C_ ) =
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
_M_
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
- [=] _[ m]_ [)]
|
| 546 |
+
|
| 547 |
+
_Pθ_ ( _c_ )( _yt_ = _m_ ) log _[P]_ _P_ _[θ]_ [(] _C_ _[c]_ ( [)] _y_ [(] _[y]_ _t_ _[t]_ = _m_ )
|
| 548 |
+
_m_ =1
|
| 549 |
+
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
_M_
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
|
| 556 |
+
_m_ =1
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
_,_
|
| 561 |
+
_C_
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
_φ_ _[V E]_ ( **x** ) = _−_ [1]
|
| 566 |
+
|
| 567 |
+
_T_
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
_T_
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
|
| 575 |
+
_t_ =1
|
| 576 |
+
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
_V_ ( _yt, m_ )
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
|
| 583 |
+
_t, m_ )
|
| 584 |
+
|
| 585 |
+
log _[V]_ [ (] _[y][t][, m]_ [)]
|
| 586 |
+
_C_ _C_
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
where _V_ ( _yt, m_ ) is the number of “votes” label _m_ receives from all the committee member’s Viterbi labelings at sequence position _t_ .
|
| 591 |
+
|
| 592 |
+
|
| 593 |
+
1073
|
| 594 |
+
|
| 595 |
+
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
- _P_ (ˆ **y** _|_ **x** ; _θ_ [(] _[c]_ [)] ) log _[P]_ [(ˆ] **[y]** _[|]_ **[x]** [;] _[ θ]_ [(] _[c]_ [)][)]
|
| 599 |
+
|
| 600 |
+
_P_ (ˆ **y** _|_ **x** ; _C_ )
|
| 601 |
+
|
| 602 |
+
**y** ˆ _∈N_ _[C]_
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
|
| 606 |
+
_φ_ _[SKL]_ ( **x** ) = [1]
|
| 607 |
+
|
| 608 |
+
_C_
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
|
| 612 |
+
_C_
|
| 613 |
+
|
| 614 |
+
|
| 615 |
+
|
| 616 |
+
_c_ =1
|
| 617 |
+
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
|
| 621 |
+
|
| 622 |
+
|
| 623 |
+
|
| 624 |
+
_P_ (ˆ **y** _|_ **x** ; _C_ ) _[.]_
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
**3.3** **Expected Gradient Length**
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
A third general active learning framework we consider is to query the instance that would impart the
|
| 631 |
+
greatest change to the current model _if_ _we_ _knew_ _its_
|
| 632 |
+
_label_ . Since we train discriminative models like
|
| 633 |
+
CRFs using gradient-based optimization, this involves querying the instance which, if labeled and
|
| 634 |
+
added to the training set, would create the greatest
|
| 635 |
+
change in the gradient of the objective function (i.e.,
|
| 636 |
+
the largest gradient vector used to re-estimate parameter values).
|
| 637 |
+
Let _∇ℓ_ ( _L_ ; _θ_ ) be the gradient of the loglikelihood _ℓ_ with respect to the model parameters _θ_,
|
| 638 |
+
as given by Sutton and McCallum (2006). Now let
|
| 639 |
+
_∇ℓ_ ( _L_ [+] _[⟨]_ **[x]** _[,]_ **[y]** _[⟩]_ ; _θ_ ) be the new gradient that would be
|
| 640 |
+
obtained by adding the training tuple _⟨_ **x** _,_ **y** _⟩_ to _L_ .
|
| 641 |
+
Since the query algorithm does not know the true label sequence **y** in advance, we instead calculate the
|
| 642 |
+
**expected gradient length (EGL)** :
|
| 643 |
+
|
| 644 |
+
|
| 645 |
+
_φ_ _[EGL]_ ( **x** ) = - _P_ (ˆ **y** _|_ **x** ; _θ_ ) _∇ℓ_ ( _L_ + _⟨_ **x** _,_ **y** ˆ _⟩_ ; _θ_ ) _,_
|
| 646 |
+
|
| 647 |
+
��� ���
|
| 648 |
+
**y** ˆ _∈N_
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
approximated as an expectation over the _N_ -best labelings, where _∥· ∥_ is the Euclidean norm of each
|
| 652 |
+
resulting gradient vector. We first introduced this approach in previous work on multiple-instance active
|
| 653 |
+
learning (Settles et al., 2008), and adapt it to query
|
| 654 |
+
selection with sequences here. Note that, at query
|
| 655 |
+
time, _∇ℓ_ ( _L_ ; _θ_ ) should be nearly zero since _ℓ_ converged at the previous round of training. Thus, we
|
| 656 |
+
can approximate _∇ℓ_ ( _L_ [+] _[⟨]_ **[x]** _[,]_ **[y]** [ˆ] _[⟩]_ ; _θ_ ) _≈∇ℓ_ ( _⟨_ **x** _,_ ˆ **y** _⟩_ ; _θ_ )
|
| 657 |
+
for computational efficiency, because the training instances are assumed to be independent.
|
| 658 |
+
|
| 659 |
+
|
| 660 |
+
**3.4** **Information Density**
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
It has been suggested that uncertainty sampling and
|
| 664 |
+
QBC are prone to querying outliers (Roy and McCallum, 2001; Zhu et al., 2003). Figure 2 illustrates this problem for a binary linear classifier using uncertainty sampling. The least certain instance
|
| 665 |
+
lies on the classification boundary, but is not “representative” of other instances in the distribution, so
|
| 666 |
+
knowing its label is unlikely to improve accuracy on
|
| 667 |
+
the data as a whole. QBC and EGL exhibit similar
|
| 668 |
+
behavior, by spending time querying possible outliers simply because they are controversial, or are
|
| 669 |
+
expected to impart significant change in the model.
|
| 670 |
+
|
| 671 |
+
|
| 672 |
+
1074
|
| 673 |
+
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
|
| 677 |
+
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
Figure 2: An illustration of when uncertainty sampling
|
| 681 |
+
can be a poor strategy for classification. Shaded polygons represent labeled instances ( _L_ ), and circles represent unlabeled instances ( _U_ ). Since _A_ is on the decision
|
| 682 |
+
boundary, it will be queried as the most uncertain. However, querying _B_ is likely to result in more information
|
| 683 |
+
about the data as a whole.
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
We argue that this phenomenon can occur with sequence labeling tasks as well as with classification.
|
| 687 |
+
To address this, we propose a new active learning
|
| 688 |
+
approach called **information density (ID)** :
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
_β_
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
_._
|
| 698 |
+
|
| 699 |
+
|
| 700 |
+
|
| 701 |
+
_U_
|
| 702 |
+
|
| 703 |
+
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
|
| 708 |
+
sim( **x** _,_ **x** [(] _[u]_ [)] )
|
| 709 |
+
|
| 710 |
+
_u_ =1
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
_φ_ _[ID]_ ( **x** ) = _φ_ _[SE]_ ( **x** ) _×_
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
1
|
| 720 |
+
|
| 721 |
+
_U_
|
| 722 |
+
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
That is, the informativeness of **x** is weighted by its
|
| 726 |
+
average similarity to all other sequences in _U_, subject to a parameter _β_ that controls the relative importance of the density term. In the formulation presented above, sequence entropy _φ_ _[SE]_ measures the
|
| 727 |
+
“base” informativeness, but we could just as easily
|
| 728 |
+
use any of the instance-level strategies presented in
|
| 729 |
+
the previous sections.
|
| 730 |
+
This density measure requires us to compute the
|
| 731 |
+
similarity of two sequences. To do this, we first
|
| 732 |
+
transform each **x**, which is a sequence of feature
|
| 733 |
+
vectors (tokens), into a single kernel vector _⃗_ **x** :
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
_T_
|
| 738 |
+
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
|
| 742 |
+
_fJ_ ( _xt_ )
|
| 743 |
+
|
| 744 |
+
_t_ =1
|
| 745 |
+
|
| 746 |
+
|
| 747 |
+
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
|
| 751 |
+
|
| 752 |
+
_⃗_ **x** =
|
| 753 |
+
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
- _T_
|
| 758 |
+
|
| 759 |
+
|
| 760 |
+
_f_ 1( _xt_ ) _, . . .,_
|
| 761 |
+
|
| 762 |
+
_t_ =1
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
|
| 766 |
+
_,_
|
| 767 |
+
|
| 768 |
+
|
| 769 |
+
|
| 770 |
+
where _fj_ ( _xt_ ) is the value of feature _fj_ for token _xt_,
|
| 771 |
+
and _J_ is the number of features in the input representation [2] . In other words, sequence **x** is compressed
|
| 772 |
+
into a fixed-length feature vector _⃗_ **x**, for which each
|
| 773 |
+
element is the sum of the corresponding feature’s
|
| 774 |
+
values across all tokens. We can then use cosine
|
| 775 |
+
|
| 776 |
+
|
| 777 |
+
2Note that _J_ = _K_, and _fj_ ( _xt_ ) here differs slightly from the
|
| 778 |
+
feature definition given in Section 2. Since the labels _yt−_ 1 and
|
| 779 |
+
_yt_ are unknown before querying, the _K_ features used for model
|
| 780 |
+
training are reduced down to the _J_ input features here, which
|
| 781 |
+
factor out any label dependencies.
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
similarity on this simplified representation:
|
| 785 |
+
|
| 786 |
+
|
| 787 |
+
_⃗_ **x** _· ⃗_ **x** [(] _[u]_ [)]
|
| 788 |
+
sim _cos_ ( **x** _,_ **x** [(] _[u]_ [)] ) =
|
| 789 |
+
|
| 790 |
+
_∥⃗_ **x** _∥× ∥⃗_ **x** [(] _[u]_ [)] _∥_ _[.]_
|
| 791 |
+
|
| 792 |
+
|
| 793 |
+
We have also investigated similarity functions
|
| 794 |
+
based on exponentiated Euclidean distance and KLdivergence, the latter of which was also employed by
|
| 795 |
+
McCallum and Nigam (1998) for density-weighting
|
| 796 |
+
QBC in text classification. However, these measures
|
| 797 |
+
show no improvement over cosine similarity, and require setting additional hyper-parameters.
|
| 798 |
+
One potential drawback of information density is
|
| 799 |
+
that the number of required similarity calculations
|
| 800 |
+
grows quadratically with the number of instances
|
| 801 |
+
in _U_ . For pool-based active learning, we often assume that the size of _U_ is very large. However,
|
| 802 |
+
these densities only need to be computed once, and
|
| 803 |
+
are independent of the base information measure.
|
| 804 |
+
Thus, when employing information density in a realworld interactive learning setting, the density scores
|
| 805 |
+
can simply be pre-computed and cached for efficient
|
| 806 |
+
lookup during the actual active learning process.
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
**3.5** **Fisher Information**
|
| 810 |
+
|
| 811 |
+
|
| 812 |
+
We also introduce a query selection strategy for sequence models based on _Fisher_ _information_, building on the theoretical framework of Zhang and Oles
|
| 813 |
+
(2000). Fisher information _I_ ( _θ_ ) represents the overall uncertainty about the estimated model parameters _θ_, as given by:
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
|
| 817 |
+
Previously, Fisher information for active learning
|
| 818 |
+
has only been investigated in the context of simple
|
| 819 |
+
binary classification. When employing FIR with sequence models like CRFs, there are two additional
|
| 820 |
+
computational challenges. First, we must integrate
|
| 821 |
+
over all possible labelings **y**, which can, as we have
|
| 822 |
+
seen, be approximated as an expectation over the _N_ best labelings. Second, the inner product in the ratio
|
| 823 |
+
calculation (4) requires inverting a _K_ _×_ _K_ matrix
|
| 824 |
+
for each **x** . In most interesting natural language applications, _K_ is very large, making this algorithm
|
| 825 |
+
intractable. However, it is common in similar situations to approximate the Fisher information matrix
|
| 826 |
+
with its diagonal (Nyffenegger et al., 2006). Thus
|
| 827 |
+
we estimate _I_ **x** ( _θ_ ) using:
|
| 828 |
+
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+
_I_ **x** ( _θ_ ) =
|
| 832 |
+
|
| 833 |
+
|
| 834 |
+
��
|
| 835 |
+
_∂_ log _P_ (ˆ **y** _|_ **x** ; _θ_ )
|
| 836 |
+
_∂θ_ 1
|
| 837 |
+
|
| 838 |
+
|
| 839 |
+
|
| 840 |
+
_P_ (ˆ **y** _|_ **x** ; _θ_ )
|
| 841 |
+
|
| 842 |
+
**y** ˆ _∈N_
|
| 843 |
+
|
| 844 |
+
|
| 845 |
+
|
| 846 |
+
�2
|
| 847 |
+
+ _δ, . . .,_
|
| 848 |
+
|
| 849 |
+
|
| 850 |
+
|
| 851 |
+
|
| 852 |
+
|
| 853 |
+
_,_
|
| 854 |
+
|
| 855 |
+
|
| 856 |
+
|
| 857 |
+
|
| 858 |
+
- _∂_ log _P_ (ˆ **y** _|_ **x** ; _θ_ )
|
| 859 |
+
_∂θK_
|
| 860 |
+
|
| 861 |
+
|
| 862 |
+
|
| 863 |
+
�2
|
| 864 |
+
+ _δ_
|
| 865 |
+
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
and _IU_ ( _θ_ ) using:
|
| 869 |
+
|
| 870 |
+
|
| 871 |
+
_IU_ ( _θ_ ) = [1]
|
| 872 |
+
|
| 873 |
+
_U_
|
| 874 |
+
|
| 875 |
+
|
| 876 |
+
|
| 877 |
+
_U_
|
| 878 |
+
|
| 879 |
+
|
| 880 |
+
_I_ **x** ( _u_ )( _θ_ ) _._
|
| 881 |
+
_u_ =1
|
| 882 |
+
|
| 883 |
+
|
| 884 |
+
|
| 885 |
+
For CRFs, the partial derivative at the root of each
|
| 886 |
+
element in the diagonal vector is given by:
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
_T_
|
| 891 |
+
|
| 892 |
+
- _fk_ (ˆ _yt−_ 1 _,_ ˆ _yt,_ **x** _t_ )
|
| 893 |
+
|
| 894 |
+
|
| 895 |
+
_t_ =1
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
_T_
|
| 900 |
+
|
| 901 |
+
|
| 902 |
+
|
| 903 |
+
_t_ =1
|
| 904 |
+
|
| 905 |
+
|
| 906 |
+
|
| 907 |
+
|
| 908 |
+
_I_ ( _θ_ ) = _−_
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
|
| 912 |
+
|
| 913 |
+
_P_ ( **x** )
|
| 914 |
+
**x**
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
_P_ ( **y** _|_ **x** ; _θ_ ) _[∂]_ [2]
|
| 919 |
+
**y** _∂θ_
|
| 920 |
+
|
| 921 |
+
|
| 922 |
+
|
| 923 |
+
|
| 924 |
+
[log] _[ P]_ [(] **[y]** _[|]_ **[x]** [;] _[ θ]_ [)] _[.]_
|
| 925 |
+
_∂θ_ [2]
|
| 926 |
+
|
| 927 |
+
|
| 928 |
+
|
| 929 |
+
_∂_ log _P_ (ˆ **y** _|_ **x** ; _θ_ )
|
| 930 |
+
|
| 931 |
+
=
|
| 932 |
+
_∂θk_
|
| 933 |
+
|
| 934 |
+
|
| 935 |
+
_−_
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
- _P_ ( _y, y_ _[′]_ _|_ **x** ) _fk_ ( _y, y_ _[′]_ _,_ **x** _t_ ) _,_
|
| 941 |
+
|
| 942 |
+
_y,y_ _[′]_
|
| 943 |
+
|
| 944 |
+
|
| 945 |
+
|
| 946 |
+
For a model with _K_ parameters, the Fisher information takes the form of a _K_ _× K_ covariance matrix. Our goal in active learning is to select the query
|
| 947 |
+
that most efficiently minimizes the model variance
|
| 948 |
+
reflected in _I_ ( _θ_ ). This can be accomplished by optimizing the **Fisher information ratio (FIR)** :
|
| 949 |
+
|
| 950 |
+
|
| 951 |
+
_φ_ _[FIR]_ ( **x** ) = _−_ tr - _I_ **x** ( _θ_ ) _[−]_ [1] _IU_ ( _θ_ )� _,_ (4)
|
| 952 |
+
|
| 953 |
+
|
| 954 |
+
where _I_ **x** ( _θ_ ) and _IU_ ( _θ_ ) are Fisher information matrices for sequence **x** and the unlabeled pool _U_, respectively. The leading minus sign again ensures
|
| 955 |
+
that _φ_ _[FIR]_ is a maximizer for use with Algorithm 1.
|
| 956 |
+
|
| 957 |
+
|
| 958 |
+
1075
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
|
| 962 |
+
which is similar to the equation used to compute the
|
| 963 |
+
training gradient, but without a regularization term.
|
| 964 |
+
A smoothing parameter _δ_ _≪_ 1 is added to prevent
|
| 965 |
+
division by zero when computing the ratio.
|
| 966 |
+
|
| 967 |
+
Notice that this method implicitly selects representative instances by favoring queries with Fisher
|
| 968 |
+
information _I_ **x** ( _θ_ ) that is not only high, but similar
|
| 969 |
+
to that of the overall data distribution _IU_ ( _θ_ ). This
|
| 970 |
+
is in contrast to information density, which tries to
|
| 971 |
+
query representative instances by explicitly modeling the distribution with a density weight.
|
| 972 |
+
|
| 973 |
+
|
| 974 |
+
|Corpus|Entities Features Instances|
|
| 975 |
+
|---|---|
|
| 976 |
+
|CoNLL-03<br>NLPBA<br>BioCreative<br>FlySlip<br>CORA:Headers<br>CORA:References<br>Sig+Reply<br>SigIE|4<br>78,644<br>19,959<br>5<br>128,401<br>18,854<br>1<br>175,331<br>10,000<br>1<br>31,353<br>1,220<br>15<br>22,077<br>935<br>13<br>4,208<br>500<br>2<br>25<br>617<br>12<br>10,600<br>250|
|
| 977 |
+
|
| 978 |
+
|
| 979 |
+
Table 1: Properties of the different evaluation corpora.
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
**4** **Empirical Evaluation**
|
| 983 |
+
|
| 984 |
+
|
| 985 |
+
In this section we present a large-scale empirical
|
| 986 |
+
analysis of the query strategies described in Section 3 on eight benchmark information extraction
|
| 987 |
+
and document segmentation corpora. The data sets
|
| 988 |
+
are summarized in Table 1.
|
| 989 |
+
|
| 990 |
+
|
| 991 |
+
**4.1** **Data and Methodology**
|
| 992 |
+
|
| 993 |
+
|
| 994 |
+
CoNLL-03 (Sang and DeMeulder, 2003) is a collection of newswire articles annotated with four entities: person, organization, location, and misc.
|
| 995 |
+
NLPBA (Kim et al., 2004) is a large collection
|
| 996 |
+
of biomedical abstracts annotated with five entities
|
| 997 |
+
of interest, such as protein, RNA, and cell-type.
|
| 998 |
+
BioCreative (Yeh et al., 2005) and FlySlip (Vlachos, 2007) also comprise texts in the biomedical
|
| 999 |
+
domain, annotated for gene entity mentions in articles from the human and fruit fly literature, respectively. CORA (Peng and McCallum, 2004) consists
|
| 1000 |
+
of two collections: a set of research paper headers
|
| 1001 |
+
annotated for entities such as title, author, and institution; and a collection of references annotated with
|
| 1002 |
+
BibTeX fields such as journal, year, and publisher.
|
| 1003 |
+
The Sig+Reply corpus (Carvalho and Cohen, 2004)
|
| 1004 |
+
is a set of email messages annotated for signature
|
| 1005 |
+
and quoted reply line segments. SigIE is a subset of
|
| 1006 |
+
the signature blocks from Sig+Reply which we have
|
| 1007 |
+
enhanced with several address book fields such as
|
| 1008 |
+
name, email, and phone. All corpora are formatted in the “IOB” sequence representation (Ramshaw
|
| 1009 |
+
and Marcus, 1995).
|
| 1010 |
+
We implement all fifteen query selection strategies described in Section 3 for use with CRFs, and
|
| 1011 |
+
evaluate them on all eight data sets. We also compare against two baseline strategies: random instance selection (i.e., passive learning), and na¨ıvely
|
| 1012 |
+
querying the longest sequence in terms of tokens.
|
| 1013 |
+
|
| 1014 |
+
|
| 1015 |
+
1076
|
| 1016 |
+
|
| 1017 |
+
|
| 1018 |
+
|
| 1019 |
+
We use a typical feature set for each corpus based on
|
| 1020 |
+
the cited literature (including words, orthographic
|
| 1021 |
+
patterns, part-of-speech, lexicons, etc.). Where the
|
| 1022 |
+
_N_ -best approximation is used _N_ = 15, and for all
|
| 1023 |
+
QBC methods _C_ = 3; these figures exhibited a good
|
| 1024 |
+
balance of accuracy and training speed in preliminary work. For information density, we arbitrarily
|
| 1025 |
+
set _β_ = 1 (i.e., the information and density terms
|
| 1026 |
+
have equal weight). In each experiment, _L_ is initialized with five random labeled instances, and up
|
| 1027 |
+
to 150 queries are subsequently selected from _U_ in
|
| 1028 |
+
batches of size _B_ = 5. All results are averaged
|
| 1029 |
+
across five folds using cross-validation.
|
| 1030 |
+
We evaluate each query strategy by constructing
|
| 1031 |
+
learning curves that plot the overall _F_ 1 measure (for
|
| 1032 |
+
all entities or segments) as a function of the number of instances queried. Due to lack of space, we
|
| 1033 |
+
cannot show learning curves for every experiment.
|
| 1034 |
+
Instead, Table 2 summarizes our results by reporting
|
| 1035 |
+
the area under the learning curve for all strategies
|
| 1036 |
+
on all data. Figure 3 presents a few representative
|
| 1037 |
+
learning curves for six of the corpora.
|
| 1038 |
+
|
| 1039 |
+
|
| 1040 |
+
**4.2** **Discussion of Learning Curves**
|
| 1041 |
+
|
| 1042 |
+
|
| 1043 |
+
The first conclusion we can draw from these results
|
| 1044 |
+
is that there is no single clear winner. However, information density (ID), which we introduce in this
|
| 1045 |
+
paper, stands out. It usually improves upon the base
|
| 1046 |
+
sequence entropy measure, never performs poorly,
|
| 1047 |
+
and has the highest average area under the learning
|
| 1048 |
+
curve across all tasks. It seems particularly effective
|
| 1049 |
+
on large corpora, which is a typical assumption for
|
| 1050 |
+
the active learning setting. Sequence vote entropy
|
| 1051 |
+
(SVE), a QBC method we propose here, is also noteworthy in that it is fairly consistently among the top
|
| 1052 |
+
three strategies, although never the best.
|
| 1053 |
+
Second, the top uncertainty sampling strategies
|
| 1054 |
+
are least confidence (LC) and sequence entropy
|
| 1055 |
+
(SE), the latter being the dominant entropy-based
|
| 1056 |
+
method. Among the QBC strategies, sequence vote
|
| 1057 |
+
entropy (SVE) is the clear winner. We conclude that
|
| 1058 |
+
these three methods are the best base information
|
| 1059 |
+
measures for use with information density.
|
| 1060 |
+
Third, query strategies that evaluate the entire sequence (SE, SVE, SKL) are generally superior to those which aggregate token-level information. Furthermore, the _total_ token-level strategies (TTE, TVE, TKL) outperform their _length-_
|
| 1061 |
+
|
| 1062 |
+
|
| 1063 |
+
|Corpus|Baselines<br>Rand Long|Uncertainty Sampling<br>LC M TE TTE SE NSE|Query-By-Committee<br>VE KL TVE TKL SVE SKL|Other<br>EGL ID FIR|Col6|Col7|
|
| 1064 |
+
|---|---|---|---|---|---|---|
|
| 1065 |
+
|CoNLL-03<br>NLPBA<br>BioCreative<br>FlySlip<br>Headers<br>References<br>Sig+Reply<br>SigIE|78.8<br>79.4<br>59.9<br>67.6<br>34.6<br>26.9<br>112.1<br>121.0<br>76.0<br>78.2<br>**90.0**<br>86.0<br>129.1<br>129.6<br>84.3<br>82.7|89.4<br>84.5<br>38.9<br>**89.7**<br>**90.1**<br>89.1<br>71.0<br>62.9<br>53.4<br>70.9<br>71.5<br>68.9<br>54.8<br>46.8<br>37.8<br>53.0<br>56.0<br>50.5<br>125.1<br>119.5<br>110.3<br>124.9<br>**125.4**<br>124.1<br>**81.4**<br>78.6<br>78.5<br>78.5<br>**80.8**<br>80.4<br>89.8<br>**91.5**<br>84.4<br>88.6<br>88.4<br>89.4<br>132.1<br>132.3<br>131.7<br>131.6<br>131.4<br>**133.1**<br>88.8<br>87.3<br>89.3<br>88.3<br>87.6<br>89.1|45.9<br>62.0<br>86.7<br>81.7<br>89.0<br>87.9<br>52.4<br>53.1<br>66.9<br>63.5<br>**71.8**<br>68.5<br>35.2<br>37.4<br>49.2<br>45.1<br>**56.6**<br>50.8<br>113.3<br>109.4<br>124.1<br>119.5<br>122.7<br>120.7<br>72.8<br>78.5<br>79.7<br>78.5<br>**80.7**<br>78.4<br>85.1<br>89.1<br>88.7<br>88.2<br>**89.9**<br>86.9<br>131.4<br>130.7<br>132.1<br>130.6<br>**132.8**<br>132.3<br>**89.8**<br>85.5<br>**89.7**<br>85.1<br>**89.5**<br>**89.7**|87.3<br>**89.6**<br>81.7<br>69.3<br>**73.1**<br>**73.6**<br>51.5<br>**59.1**<br>**58.8**<br>**125.9**<br>**126.8**<br>118.2<br>79.6<br>80.2<br>79.1<br>88.2<br>88.7<br>87.1<br>130.5<br>131.5<br>**133.2**<br>87.7<br>88.5<br>88.5|87.3<br>**89.6**<br>81.7<br>69.3<br>**73.1**<br>**73.6**<br>51.5<br>**59.1**<br>**58.8**<br>**125.9**<br>**126.8**<br>118.2<br>79.6<br>80.2<br>79.1<br>88.2<br>88.7<br>87.1<br>130.5<br>131.5<br>**133.2**<br>87.7<br>88.5<br>88.5|87.3<br>**89.6**<br>81.7<br>69.3<br>**73.1**<br>**73.6**<br>51.5<br>**59.1**<br>**58.8**<br>**125.9**<br>**126.8**<br>118.2<br>79.6<br>80.2<br>79.1<br>88.2<br>88.7<br>87.1<br>130.5<br>131.5<br>**133.2**<br>87.7<br>88.5<br>88.5|
|
| 1066 |
+
|Average|83.1<br>83.9|**91.6**<br>87.9<br>78.0<br>90.7<br>**91.4**<br>90.6|78.2<br>80.7<br>89.6<br>86.5<br>**91.6**<br>89.4|90.0|**92.2**|90.0|
|
| 1067 |
+
|
| 1068 |
+
|
| 1069 |
+
Table 2: Detailed results for all query strategies on all evaluation corpora. Reported is the area under the _F_ 1 learning
|
| 1070 |
+
curve for each strategy after 150 queries (maximum possible score is 150). For each row, the **best method** is shown
|
| 1071 |
+
boxed in bold, the **second best** is shown underlined in bold, and the **third best** is shown in bold. The last row summarizes the results across all eight tasks by reporting the average area for each strategy. Query strategy formulations for
|
| 1072 |
+
sequence models introduced in this paper are indicated with italics along the top.
|
| 1073 |
+
|
| 1074 |
+
|
| 1075 |
+
|
| 1076 |
+
_normalized_ counterparts (TE, VE, KL) in nearly all
|
| 1077 |
+
cases. In fact, the normalized variants are often inferior even to the baselines. While an argument can
|
| 1078 |
+
be made that these shorter sequences might be easier to label from a human annotator’s perspective,
|
| 1079 |
+
our ongoing work indicates that the relationship between instance length and actual labeling costs (e.g.,
|
| 1080 |
+
elapsed annotation time) is not a simple one. Analysis of our experiment logs also shows that lengthnormalized methods are occasionally biased toward
|
| 1081 |
+
short sequences with little intuitive value (e.g., sentences with few or no entities to label). In addition,
|
| 1082 |
+
vote entropy appears to be a better disagreement
|
| 1083 |
+
measure for QBC strategies than KL divergence.
|
| 1084 |
+
Finally, Fisher information (FIR), while theoretically sound, exhibits behavior that is difficult to interpret. It is sometimes the winning strategy, but occasionally only on par with the baselines. When it
|
| 1085 |
+
does show significant gains over the other strategies,
|
| 1086 |
+
these gains appear to be only for the first several
|
| 1087 |
+
queries (e.g., NLPBA and BioCreative in Figure 3).
|
| 1088 |
+
This inconsistent performance may be a result of the
|
| 1089 |
+
approximations made for computational efficiency.
|
| 1090 |
+
Expected gradient length (EGL) also appears to exhibit mediocre performance, and is likely not worth
|
| 1091 |
+
its additional computational expense.
|
| 1092 |
+
|
| 1093 |
+
|
| 1094 |
+
**4.3** **Discussion of Run Times**
|
| 1095 |
+
|
| 1096 |
+
|
| 1097 |
+
Here we discuss the execution times for each query
|
| 1098 |
+
strategy using current hardware. The uncertainty
|
| 1099 |
+
sampling methods are roughly comparable in run
|
| 1100 |
+
time (token-based methods run slightly faster), each
|
| 1101 |
+
routinely evaluating tens of thousands of sequences
|
| 1102 |
+
|
| 1103 |
+
|
| 1104 |
+
1077
|
| 1105 |
+
|
| 1106 |
+
|
| 1107 |
+
|
| 1108 |
+
in under a minute. The QBC methods, on the other
|
| 1109 |
+
hand, must re-train multiple models with each query,
|
| 1110 |
+
resulting in a lag of three to four minutes per query
|
| 1111 |
+
batch (and up to 20 minutes for corpora with more
|
| 1112 |
+
entity labels).
|
| 1113 |
+
The expected gradient length and Fisher information methods are the most computationally expensive, because they must first perform inference over
|
| 1114 |
+
the possible labelings and then calculate gradients
|
| 1115 |
+
for each candidate label sequence. As a result, they
|
| 1116 |
+
take eight to ten minutes (upwards of a half hour on
|
| 1117 |
+
the larger corpora) for each query. Unlike the other
|
| 1118 |
+
strategies, their time complexities also scale linearly
|
| 1119 |
+
with the number of model parameters _K_ which, in
|
| 1120 |
+
turn, increases as new sequences are added to _L_ .
|
| 1121 |
+
As noted in Section 3.4, information density incurs a large computational cost to estimate the density weights, but these can be pre-computed and
|
| 1122 |
+
cached for efficient lookup. In our experiments, this
|
| 1123 |
+
pre-processing step takes less than a minute for the
|
| 1124 |
+
smaller corpora, about a half hour for CoNLL-03
|
| 1125 |
+
and BioCreative, and under two hours for NLPBA.
|
| 1126 |
+
The density lookup causes no significant change in
|
| 1127 |
+
the run time of the base information measure. Given
|
| 1128 |
+
these results, we advocate information density with
|
| 1129 |
+
an uncertainty sampling base measure in practice,
|
| 1130 |
+
particularly for active learning with large corpora.
|
| 1131 |
+
|
| 1132 |
+
|
| 1133 |
+
**5** **Conclusion**
|
| 1134 |
+
|
| 1135 |
+
|
| 1136 |
+
In this paper, we have presented a detailed analysis of active learning for sequence labeling tasks.
|
| 1137 |
+
In particular, we have described and criticized the
|
| 1138 |
+
query selection strategies used with probabilistic se
|
| 1139 |
+
|
| 1140 |
+
0.7
|
| 1141 |
+
|
| 1142 |
+
0.6
|
| 1143 |
+
|
| 1144 |
+
0.5
|
| 1145 |
+
|
| 1146 |
+
0.4
|
| 1147 |
+
|
| 1148 |
+
0.3
|
| 1149 |
+
|
| 1150 |
+
0.2
|
| 1151 |
+
|
| 1152 |
+
0.1
|
| 1153 |
+
|
| 1154 |
+
0
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
1
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
0.8
|
| 1161 |
+
|
| 1162 |
+
|
| 1163 |
+
0.6
|
| 1164 |
+
|
| 1165 |
+
|
| 1166 |
+
0.4
|
| 1167 |
+
|
| 1168 |
+
|
| 1169 |
+
0.2
|
| 1170 |
+
|
| 1171 |
+
|
| 1172 |
+
0
|
| 1173 |
+
|
| 1174 |
+
|
| 1175 |
+
|
| 1176 |
+
0 20 40 60 80 100 120 140
|
| 1177 |
+
|
| 1178 |
+
number of instances queried
|
| 1179 |
+
|
| 1180 |
+
|
| 1181 |
+
|
| 1182 |
+
0 20 40 60 80 100 120 140
|
| 1183 |
+
|
| 1184 |
+
number of instances queried
|
| 1185 |
+
|
| 1186 |
+
|
| 1187 |
+
|
| 1188 |
+
0 20 40 60 80 100 120 140
|
| 1189 |
+
|
| 1190 |
+
number of instances queried
|
| 1191 |
+
|
| 1192 |
+
|
| 1193 |
+
|
| 1194 |
+
|
| 1195 |
+
|
| 1196 |
+
|
| 1197 |
+
|
| 1198 |
+
|
| 1199 |
+
|
| 1200 |
+
|
| 1201 |
+
|
| 1202 |
+
|
| 1203 |
+
|
| 1204 |
+
|
| 1205 |
+
|
| 1206 |
+
|
| 1207 |
+
|
| 1208 |
+
|
| 1209 |
+
|
| 1210 |
+
|
| 1211 |
+
|
| 1212 |
+
0 20 40 60 80 100 120 140
|
| 1213 |
+
|
| 1214 |
+
|
| 1215 |
+
|
| 1216 |
+
0 20 40 60 80 100 120 140
|
| 1217 |
+
|
| 1218 |
+
|
| 1219 |
+
|
| 1220 |
+
0 20 40 60 80 100 120 140
|
| 1221 |
+
|
| 1222 |
+
|
| 1223 |
+
|
| 1224 |
+
|
| 1225 |
+
|
| 1226 |
+
|
| 1227 |
+
|
| 1228 |
+
|
| 1229 |
+
|
| 1230 |
+
|
| 1231 |
+
|
| 1232 |
+
|
| 1233 |
+
|
| 1234 |
+
|
| 1235 |
+
|
| 1236 |
+
|
| 1237 |
+
|
| 1238 |
+
|
| 1239 |
+
|
| 1240 |
+
|
| 1241 |
+
|
| 1242 |
+
0.7
|
| 1243 |
+
|
| 1244 |
+
0.6
|
| 1245 |
+
|
| 1246 |
+
0.5
|
| 1247 |
+
|
| 1248 |
+
0.4
|
| 1249 |
+
|
| 1250 |
+
0.3
|
| 1251 |
+
|
| 1252 |
+
0.2
|
| 1253 |
+
|
| 1254 |
+
0.1
|
| 1255 |
+
|
| 1256 |
+
0
|
| 1257 |
+
|
| 1258 |
+
|
| 1259 |
+
0.7
|
| 1260 |
+
|
| 1261 |
+
0.6
|
| 1262 |
+
|
| 1263 |
+
0.5
|
| 1264 |
+
|
| 1265 |
+
0.4
|
| 1266 |
+
|
| 1267 |
+
0.3
|
| 1268 |
+
|
| 1269 |
+
0.2
|
| 1270 |
+
|
| 1271 |
+
0.1
|
| 1272 |
+
|
| 1273 |
+
0
|
| 1274 |
+
|
| 1275 |
+
|
| 1276 |
+
|
| 1277 |
+
0.7
|
| 1278 |
+
|
| 1279 |
+
0.6
|
| 1280 |
+
|
| 1281 |
+
0.5
|
| 1282 |
+
|
| 1283 |
+
0.4
|
| 1284 |
+
|
| 1285 |
+
0.3
|
| 1286 |
+
|
| 1287 |
+
0.2
|
| 1288 |
+
|
| 1289 |
+
0.1
|
| 1290 |
+
|
| 1291 |
+
0
|
| 1292 |
+
|
| 1293 |
+
|
| 1294 |
+
1
|
| 1295 |
+
|
| 1296 |
+
|
| 1297 |
+
0.8
|
| 1298 |
+
|
| 1299 |
+
|
| 1300 |
+
0.6
|
| 1301 |
+
|
| 1302 |
+
|
| 1303 |
+
0.4
|
| 1304 |
+
|
| 1305 |
+
|
| 1306 |
+
0.2
|
| 1307 |
+
|
| 1308 |
+
|
| 1309 |
+
0
|
| 1310 |
+
|
| 1311 |
+
|
| 1312 |
+
|
| 1313 |
+
Figure 3: Learning curves for selected query strategies on six of the evaluation corpora.
|
| 1314 |
+
|
| 1315 |
+
|
| 1316 |
+
|
| 1317 |
+
quence models to date, and proposed several novel
|
| 1318 |
+
strategies to address some of their shortcomings.
|
| 1319 |
+
Our large-scale empirical evaluation demonstrates
|
| 1320 |
+
that some of these newly proposed methods advance
|
| 1321 |
+
the state of the art in active learning with sequence
|
| 1322 |
+
models. These methods include information density
|
| 1323 |
+
(which we recommend in practice), sequence vote
|
| 1324 |
+
entropy, and sometimes Fisher information.
|
| 1325 |
+
|
| 1326 |
+
|
| 1327 |
+
**Acknowledgments**
|
| 1328 |
+
|
| 1329 |
+
|
| 1330 |
+
We would like to thank the anonymous reviewers for
|
| 1331 |
+
their helpful feedback. This work was supported by
|
| 1332 |
+
NIH grants T15-LM07359 and R01-LM07050.
|
| 1333 |
+
|
| 1334 |
+
|
| 1335 |
+
**References**
|
| 1336 |
+
|
| 1337 |
+
|
| 1338 |
+
N. Abe and H. Mamitsuka. 1998. Query learning strategies using boosting and bagging. In _Proceedings_ _of_
|
| 1339 |
+
_the_ _International_ _Conference_ _on_ _Machine_ _Learning_
|
| 1340 |
+
_(ICML)_, pages 1–9. Morgan Kaufmann.
|
| 1341 |
+
J. Baldridge and M. Osborne. 2004. Active learning and
|
| 1342 |
+
the total cost of annotation. In _Proceedings of the Con-_
|
| 1343 |
+
_ference_ _on_ _Empirical_ _Methods_ _in_ _Natural_ _Language_
|
| 1344 |
+
_Processing (EMNLP)_, pages 9–16. ACL Press.
|
| 1345 |
+
V.R. Carvalho and W. Cohen. 2004. Learning to extract
|
| 1346 |
+
signature and reply lines from email. In _Proceedings_
|
| 1347 |
+
_of the Conference on Email and Anti-Spam (CEAS)_ .
|
| 1348 |
+
D. Cohn, L. Atlas, and R. Ladner. 1994. Improving generalization with active learning. _Machine_ _Learning_,
|
| 1349 |
+
15(2):201–221.
|
| 1350 |
+
|
| 1351 |
+
|
| 1352 |
+
1078
|
| 1353 |
+
|
| 1354 |
+
|
| 1355 |
+
|
| 1356 |
+
A. Culotta and A. McCallum. 2005. Reducing labeling
|
| 1357 |
+
effort for stuctured prediction tasks. In _Proceedings_
|
| 1358 |
+
_of_ _the_ _National_ _Conference_ _on_ _Artificial_ _Intelligence_
|
| 1359 |
+
_(AAAI)_, pages 746–751. AAAI Press.
|
| 1360 |
+
I. Dagan and S. Engelson. 1995. Committee-based
|
| 1361 |
+
sampling for training probabilistic classifiers. In _Pro-_
|
| 1362 |
+
_ceedings_ _of_ _the_ _International_ _Conference_ _on_ _Machine_
|
| 1363 |
+
_Learning (ICML)_, pages 150–157. Morgan Kaufmann.
|
| 1364 |
+
R. Hwa. 2004. Sample selection for statistical parsing.
|
| 1365 |
+
_Computational Linguistics_, 30(3):73–77.
|
| 1366 |
+
J. Kim, T. Ohta, Y. Tsuruoka, Y. Tateisi, and N. Collier. 2004. Introduction to the bio-entity recognition
|
| 1367 |
+
task at JNLPBA. In _Proceedings_ _of_ _the_ _International_
|
| 1368 |
+
_Joint_ _Workshop_ _on_ _Natural_ _Language_ _Processing_ _in_
|
| 1369 |
+
_Biomedicine and its Applications (NLPBA)_, pages 70–
|
| 1370 |
+
75.
|
| 1371 |
+
S. Kim, Y. Song, K. Kim, J.W. Cha, and G.G. Lee.
|
| 1372 |
+
2006. MMR-based active machine learning for bio
|
| 1373 |
+
named entity recognition. In _Proceedings_ _of_ _Human_
|
| 1374 |
+
_Language_ _Technology_ _and_ _the_ _North_ _American_ _Asso-_
|
| 1375 |
+
_ciation_ _for_ _Computational_ _Linguistics_ _(HLT-NAACL)_,
|
| 1376 |
+
pages 69–72. ACL Press.
|
| 1377 |
+
J. Lafferty, A. McCallum, and F. Pereira. 2001. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. In _Proceedings_
|
| 1378 |
+
_of the International Conference on Machine Learning_
|
| 1379 |
+
_(ICML)_, pages 282–289. Morgan Kaufmann.
|
| 1380 |
+
K. Lari and S. J. Young. 1990. The estimation of stochastic context-free grammars using the inside-outside algorithm. _Computer Speech and Language_, 4:35–56.
|
| 1381 |
+
D. Lewis and J. Catlett. 1994. Heterogeneous uncertainty sampling for supervised learning. In _Pro-_
|
| 1382 |
+
|
| 1383 |
+
|
| 1384 |
+
_ceedings_ _of_ _the_ _International_ _Conference_ _on_ _Machine_
|
| 1385 |
+
_Learning (ICML)_, pages 148–156. Morgan Kaufmann.
|
| 1386 |
+
G. Mann and A. McCallum. 2007. Efficient computation
|
| 1387 |
+
of entropy gradient for semi-supervised conditional
|
| 1388 |
+
random fields. In _Proceedings of the North American_
|
| 1389 |
+
_Association_ _for_ _Computational_ _Linguistics_ _(NAACL)_,
|
| 1390 |
+
pages 109–112. ACL Press.
|
| 1391 |
+
A. McCallum and K. Nigam. 1998. Employing EM
|
| 1392 |
+
in pool-based active learning for text classification.
|
| 1393 |
+
In _Proceedings_ _of_ _the_ _International_ _Conference_ _on_
|
| 1394 |
+
_Machine_ _Learning_ _(ICML)_, pages 359–367. Morgan
|
| 1395 |
+
Kaufmann.
|
| 1396 |
+
M. Nyffenegger, J.C. Chappelier, and E. Gaussier. 2006.
|
| 1397 |
+
Revisiting Fisher kernels for document similarities. In
|
| 1398 |
+
_Proceedings of the European Conference on Machine_
|
| 1399 |
+
_Learning (ECML)_, pages 727–734. Springer.
|
| 1400 |
+
F. Peng and A. McCallum. 2004. Accurate information
|
| 1401 |
+
extraction from research papers using conditional random fields. In _Proceedings of Human Language Tech-_
|
| 1402 |
+
_nology and the North American Association for Com-_
|
| 1403 |
+
_putational Linguistics (HLT-NAACL)_ . ACL Press.
|
| 1404 |
+
L. R. Rabiner. 1989. A tutorial on hidden Markov models and selected applications in speech recognition.
|
| 1405 |
+
_Proceedings of the IEEE_, 77(2):257–286.
|
| 1406 |
+
L.A. Ramshaw and M.P. Marcus. 1995. Text chunking
|
| 1407 |
+
using transformation-based learning. In _Proceedings_
|
| 1408 |
+
_of the ACL Workshop on Very Large Corpora_ .
|
| 1409 |
+
N. Roy and A. McCallum. 2001. Toward optimal active
|
| 1410 |
+
learning through sampling estimation of error reduction. In _Proceedings_ _of_ _the_ _International_ _Conference_
|
| 1411 |
+
_on_ _Machine_ _Learning_ _(ICML)_, pages 441–448. Morgan Kaufmann.
|
| 1412 |
+
E.F.T.K. Sang and F. DeMeulder. 2003. Introduction to
|
| 1413 |
+
the CoNLL-2003 shared task: Language-independent
|
| 1414 |
+
named entity recognition. In _Proceedings_ _of_ _the_
|
| 1415 |
+
_Conference on Natural Language Learning (CoNLL)_,
|
| 1416 |
+
pages 142–147.
|
| 1417 |
+
T. Scheffer, C. Decomain, and S. Wrobel. 2001. Active hidden Markov models for information extraction.
|
| 1418 |
+
In _Proceedings of the International Conference on Ad-_
|
| 1419 |
+
_vances_ _in_ _Intelligent_ _Data_ _Analysis_ _(CAIDA)_, pages
|
| 1420 |
+
309–318. Springer-Verlag.
|
| 1421 |
+
R. Schwartz and Y.-L. Chow. 1990. The _N_ -best algorithm: an efficient and exact procedure for finding the
|
| 1422 |
+
_N_ most likely sentence hypotheses. In _Proceedings_
|
| 1423 |
+
_of the International Conference on Acoustics, Speech,_
|
| 1424 |
+
_and_ _Signal_ _Processing_ _(ICASSP)_, pages 81–83. IEEE
|
| 1425 |
+
Press.
|
| 1426 |
+
B. Settles, M. Craven, and S. Ray. 2008. Multipleinstance active learning. In _Advances in Neural Infor-_
|
| 1427 |
+
_mation Processing Systems (NIPS)_, volume 20, pages
|
| 1428 |
+
1289–1296. MIT Press.
|
| 1429 |
+
H.S. Seung, M. Opper, and H. Sompolinsky. 1992.
|
| 1430 |
+
Query by committee. In _Proceedings_ _of_ _the_ _ACM_
|
| 1431 |
+
|
| 1432 |
+
|
| 1433 |
+
1079
|
| 1434 |
+
|
| 1435 |
+
|
| 1436 |
+
|
| 1437 |
+
_Workshop_ _on_ _Computational_ _Learning_ _Theory_, pages
|
| 1438 |
+
287–294.
|
| 1439 |
+
C. E. Shannon. 1948. A mathematical theory of communication. _Bell_ _System_ _Technical_ _Journal_, 27:379–
|
| 1440 |
+
423,623–656.
|
| 1441 |
+
C. Sutton and A. McCallum. 2006. An introduction to
|
| 1442 |
+
conditional random fields for relational learning. In
|
| 1443 |
+
L. Getoor and B. Taskar, editors, _Introduction_ _to_ _Sta-_
|
| 1444 |
+
_tistical Relational Learning_ . MIT Press.
|
| 1445 |
+
A. Vlachos. 2007. Evaluating and combining biomedical
|
| 1446 |
+
named entity recognition systems. In _BioNLP_ _2007:_
|
| 1447 |
+
_Biological,_ _translational,_ _and_ _clinical_ _language_ _pro-_
|
| 1448 |
+
_cessing_, pages 199–206.
|
| 1449 |
+
A. Yeh, A. Morgan, M. Colosimo, and L. Hirschman.
|
| 1450 |
+
2005. Biocreative task 1a: gene mention finding evaluation. _BMC Bioinformatics_, 6(Suppl 1):S2.
|
| 1451 |
+
T. Zhang and F.J. Oles. 2000. A probability analysis
|
| 1452 |
+
on the value of unlabeled data for classification problems. In _Proceedings of the International Conference_
|
| 1453 |
+
_on Machine Learning (ICML)_, pages 1191–1198. Morgan Kaufmann.
|
| 1454 |
+
X. Zhu, J. Lafferty, and Z. Ghahramani. 2003. Combining active learning and semi-supervised learning using
|
| 1455 |
+
gaussian fields and harmonic functions. In _Proceed-_
|
| 1456 |
+
_ings_ _of_ _the_ _ICML_ _Workshop_ _on_ _the_ _Continuum_ _from_
|
| 1457 |
+
_Labeled to Unlabeled Data_, pages 58–65.
|
| 1458 |
+
|
| 1459 |
+
|
|
@@ -0,0 +1,1492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Active Learning for Dependency Parsing with Partial Annotation"
|
| 3 |
+
authors:
|
| 4 |
+
- "Zhenghua Li"
|
| 5 |
+
- "Min Zhang"
|
| 6 |
+
- "Yue Zhang"
|
| 7 |
+
- "Zhanyi Liu"
|
| 8 |
+
- "Wenliang Chen"
|
| 9 |
+
- "Hua Wu"
|
| 10 |
+
- "Haifeng Wang"
|
| 11 |
+
year: 2016
|
| 12 |
+
venue: "ACL 2016"
|
| 13 |
+
url: "https://aclanthology.org/P16-1033/"
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# **Active Learning for Dependency Parsing with Partial Annotation**
|
| 17 |
+
|
| 18 |
+
**Zhenghua Li** _[†]_ **,** **Min Zhang** _[†∗]_ **,** **Yue Zhang** _[†]_ **,** **Zhanyi Liu** _[‡]_ **,**
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
**Wenliang Chen** _[†]_ **,** **Hua Wu** _[‡]_ **,** **Haifeng Wang** _[‡]_
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
_†_ Soochow University, Suzhou, China
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
_{_ zhli13,minzhang,wlchen _}_ @suda.edu.cn, zhangyue1107@qq.com
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
_‡_ Baidu Inc., Beijing, China
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
_{_ liuzhanyi,wu ~~h~~ ua,wanghaifeng _}_ @baidu.com
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
**Abstract**
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
Different from traditional active learning
|
| 41 |
+
based on sentence-wise full annotation
|
| 42 |
+
(FA), this paper proposes active
|
| 43 |
+
learning with dependency-wise partial
|
| 44 |
+
annotation (PA) as a finer-grained unit for
|
| 45 |
+
dependency parsing. At each iteration,
|
| 46 |
+
we select a few most uncertain words
|
| 47 |
+
from an unlabeled data pool, manually
|
| 48 |
+
annotate their syntactic heads, and add the
|
| 49 |
+
partial trees into labeled data for parser
|
| 50 |
+
retraining. Compared with sentence-wise
|
| 51 |
+
FA, dependency-wise PA gives us more
|
| 52 |
+
flexibility in task selection and avoids
|
| 53 |
+
wasting time on annotating trivial tasks
|
| 54 |
+
in a sentence. Our work makes the
|
| 55 |
+
following contributions. First, we are
|
| 56 |
+
the first to apply a probabilistic model to
|
| 57 |
+
active learning for dependency parsing,
|
| 58 |
+
which can 1) provide tree probabilities
|
| 59 |
+
and dependency marginal probabilities
|
| 60 |
+
as principled uncertainty metrics, and
|
| 61 |
+
2) directly learn parameters from PA
|
| 62 |
+
based on a forest-based training objective.
|
| 63 |
+
Second, we propose and compare several
|
| 64 |
+
uncertainty metrics through simulation
|
| 65 |
+
experiments on both Chinese and English.
|
| 66 |
+
Finally, we conduct human annotation
|
| 67 |
+
experiments to compare FA and PA on
|
| 68 |
+
real annotation time and quality.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
**1** **Introduction**
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
During the past decade, supervised dependency
|
| 75 |
+
parsing has gained extensive progress in boosting
|
| 76 |
+
parsing performance on canonical texts, especially
|
| 77 |
+
on texts from domains or genres similar to existing manually labeled treebanks (Koo and Collins,
|
| 78 |
+
2010; Zhang and Nivre, 2011). However, the
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
_∗_ Correspondence author.
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
$0 I1 saw2 Sarah3 with4 a5 telescope6
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
Figure 1: A partially annotated sentence, where
|
| 89 |
+
only the heads of “saw” and “with” are decided.
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
upsurge of web data (e.g., tweets, blogs, and
|
| 93 |
+
product comments) imposes great challenges to
|
| 94 |
+
existing parsing techniques. Meanwhile, previous
|
| 95 |
+
research on out-of-domain dependency parsing
|
| 96 |
+
gains little success (Dredze et al., 2007; Petrov
|
| 97 |
+
and McDonald, 2012). A more feasible way for
|
| 98 |
+
open-domain parsing is to manually annotate a
|
| 99 |
+
certain amount of texts from the target domain or
|
| 100 |
+
genre. Recently, several small-scale treebanks on
|
| 101 |
+
web texts have been built for study and evaluation
|
| 102 |
+
(Foster et al., 2011; Petrov and McDonald, 2012;
|
| 103 |
+
Kong et al., 2014; Wang et al., 2014).
|
| 104 |
+
Meanwhile, active learning (AL) aims to reduce
|
| 105 |
+
annotation effort by choosing and manually annotating unlabeled instances that are most valuable for training statistical models (Olsson, 2009).
|
| 106 |
+
Traditionally, AL utilizes full annotation (FA) for
|
| 107 |
+
parsing (Tang et al., 2002; Hwa, 2004; Lynn et al.,
|
| 108 |
+
2012), where a whole syntactic tree is annotated
|
| 109 |
+
for a given sentence at a time. However, as
|
| 110 |
+
commented by Mejer and Crammer (2012), the
|
| 111 |
+
annotation process is complex, slow, and prone
|
| 112 |
+
to mistakes when FA is required. Particularly,
|
| 113 |
+
annotators waste a lot of effort on labeling trivial
|
| 114 |
+
dependencies which can be well handled by current statistical models (Flannery and Mori, 2015).
|
| 115 |
+
Recently, researchers report promising results
|
| 116 |
+
with AL based on partial annotation (PA) for dependency parsing (Sassano and Kurohashi, 2010;
|
| 117 |
+
Mirroshandel and Nasr, 2011; Majidi and Crane,
|
| 118 |
+
2013; Flannery and Mori, 2015). They find
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
344
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
_Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics_, pages 344–354,
|
| 126 |
+
Berlin, Germany, August 7-12, 2016. _⃝_ c 2016 Association for Computational Linguistics
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
that smaller units rather than sentences provide
|
| 130 |
+
more flexibility in choosing potentially informative structures to annotate.
|
| 131 |
+
Beyond previous work, this paper endeavors to
|
| 132 |
+
more thoroughly study this issue, and has made
|
| 133 |
+
substantial progress from the following perspectives.
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
(1) This is the first work that applies a stateof-the-art probabilistic parsing model to AL
|
| 137 |
+
for dependency parsing. The CRF-based
|
| 138 |
+
dependency parser on the one hand allows
|
| 139 |
+
us to use probabilities of trees or marginal
|
| 140 |
+
probabilities of single dependencies for uncertainty measurement, and on the other hand
|
| 141 |
+
can directly learn parameters from partially
|
| 142 |
+
annotated trees. Using probabilistic models
|
| 143 |
+
may be ubiquitous in AL for relatively simpler tasks like classification and sequence labeling, but is definitely novel for dependency
|
| 144 |
+
parsing which is dominated by linear models
|
| 145 |
+
with perceptron-like training.
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
(2) Based on the CRF-based parser, we make
|
| 149 |
+
systematic comparison among several uncertainty metrics for both FA and PA. Simulation
|
| 150 |
+
experiments show that compared with using
|
| 151 |
+
FA, AL with PA can greatly reduce annotation effort in terms of dependency number by
|
| 152 |
+
62 _._ 2% on Chinese and by 74 _._ 2% on English.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
(3) We build a visualized annotation platform
|
| 156 |
+
and conduct human annotation experiments
|
| 157 |
+
to compare FA and PA on real annotation
|
| 158 |
+
time and quality, where we obtain several
|
| 159 |
+
interesting observations and conclusions.
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
All codes, along with the data from human
|
| 163 |
+
annotation experiments, are released at http:
|
| 164 |
+
//hlt.suda.edu.cn/˜zhli for future research study.
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
**2** **Probabilistic Dependency Parsing**
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
Given an input sentence **x** = _w_ 1 _...wn_, the goal of
|
| 171 |
+
dependency parsing is to build a directed dependency tree **d** = _{h_ ↷ _m_ : 0 _≤_ _h_ _≤_ _n,_ 1 _≤_
|
| 172 |
+
_m_ _≤_ _n}_, where _|_ **d** _|_ = _n_ and _h_ ↷ _m_ represents
|
| 173 |
+
a dependency from a _head_ word _h_ to a _modifier_
|
| 174 |
+
word _m_ . Figure 1 depicts a partial tree containing
|
| 175 |
+
two dependencies. [1]
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
1In this work, we follow many previous works to focus
|
| 179 |
+
on unlabeled dependency parsing (constructing the skeleton
|
| 180 |
+
dependency structure). However, the proposed techniques
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
In this work, we for the first time apply a probabilistic CRF-based parsing model to AL for dependency parsing. We adopt the second-order graphbased model of McDonald and Pereira (2006),
|
| 185 |
+
which casts the problem as finding an optimal tree
|
| 186 |
+
from a fully-connect directed graph and factors the
|
| 187 |
+
score of a dependency tree into scores of pairs of
|
| 188 |
+
sibling dependencies.
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
where _s_ and _m_ are adjacent siblings both modifying _h_ ; **f** ( **x** _, h, s, m_ ) are the corresponding feature
|
| 193 |
+
vector; **w** is the feature weight vector; _Y_ ( **x** ) is
|
| 194 |
+
the set of all legal trees for **x** according to the
|
| 195 |
+
dependency grammar in hand; **d** _[∗]_ is the 1-best
|
| 196 |
+
parse tree which can be gained efficiently via a
|
| 197 |
+
dynamic programming algorithm (Eisner, 2000).
|
| 198 |
+
We use the state-of-the-art feature set listed in
|
| 199 |
+
Bohnet (2010).
|
| 200 |
+
Under the log-linear CRF-based model, the
|
| 201 |
+
probability of a dependency tree is:
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
_e_ _[Score]_ [(] **[x]** _[,]_ **[d]** [;] **[w]** [)]
|
| 205 |
+
_p_ ( **d** _|_ **x** ; **w** ) = ~~∑~~ (2)
|
| 206 |
+
**d** _[′]_ _∈Y_ ( **x** ) _[e][Score]_ [(] **[x]** _[,]_ **[d]** _[′]_ [;] **[w]** [)]
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
Ma and Zhao (2015) give a very detailed and
|
| 210 |
+
thorough introduction to CRFs for dependency
|
| 211 |
+
parsing.
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
**2.1** **Learning from FA**
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
Under the supervised learning scenario, a labeled
|
| 218 |
+
training data _D_ = _{_ ( **x** _i,_ **d** _i_ ) _}_ _[N]_ _i_ =1 [is] [provided] [to]
|
| 219 |
+
learn **w** . The objective is to maximize the log
|
| 220 |
+
likelihood of _D_ :
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
∑ _N_
|
| 224 |
+
_L_ ( _D_ ; **w** ) = (3)
|
| 225 |
+
|
| 226 |
+
_i_ =1 [log] _[ p]_ [(] **[d]** _[i][|]_ **[x]** _[i]_ [;] **[ w]** [)]
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
which can be solved by standard gradient descent
|
| 230 |
+
algorithms. In this work, we adopt stochastic gradient descent (SGD) with L2-norm regularization
|
| 231 |
+
for all CRF-based parsing models. [2]
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
explored in this paper can be easily extended to the case of
|
| 235 |
+
labeled dependency parsing.
|
| 236 |
+
2We borrow the implementation of SGD in
|
| 237 |
+
CRFsuite (http://www.chokkan.org/software/
|
| 238 |
+
crfsuite/), and use 100 sentences for a batch.
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
**d** _[∗]_ = arg max **d** _∈Y_ ( **x** ) _Score_ ( **x** _,_ **d** ; **w** )
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
∑
|
| 247 |
+
_Score_ ( **x** _,_ **d** ; **w** ) =
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
( _h,s,m_ ): _h_ ↷ _s∈_ **d** _,_
|
| 252 |
+
_h_ ↷ _m∈_ **d**
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
**w** _·_ **f** ( **x** _, h, s, m_ )
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
(1)
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
345
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
**2.2** **Marginal Probability of Dependencies**
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
Marcheggiani and Arti`eres (2014) shows that
|
| 270 |
+
marginal probabilities of local labels can be
|
| 271 |
+
used as an effective uncertain metric for AL
|
| 272 |
+
for sequence labeling problems. In the case of
|
| 273 |
+
dependency parsing, the marginal probability of a
|
| 274 |
+
dependency is the sum of probabilities of all legal
|
| 275 |
+
trees that contain the dependency.
|
| 276 |
+
|
| 277 |
+
∑
|
| 278 |
+
_p_ ( _h_ ↷ _m|_ **x** ; **w** ) = _p_ ( **d** _|_ **x** ; **w** ) (4)
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
**d** _∈Y_ ( **x** ): _h_ ↷ _m∈_ **d**
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
Intuitively, marginal probability is a more principled metric for measuring reliability of a dependency since it considers all legal parses in the
|
| 285 |
+
search space, compared to previous methods based
|
| 286 |
+
on scores of local classifiers (Sassano and Kurohashi, 2010; Flannery and Mori, 2015) or votes
|
| 287 |
+
of n-best parses (Mirroshandel and Nasr, 2011).
|
| 288 |
+
Moreover, Li et al. (2014) find strong correlation
|
| 289 |
+
between marginal probability and correctness of a
|
| 290 |
+
dependency in cross-lingual syntax projection.
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
**3** **Active Learning for Dependency**
|
| 294 |
+
**Parsing**
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
This work adopts the standard pool-based AL
|
| 298 |
+
framework (Lewis and Gale, 1994; McCallum and
|
| 299 |
+
Nigam, 1998). Initially, we have a small set of
|
| 300 |
+
labeled seed data _L_, and a large-scale unlabeled
|
| 301 |
+
data pool _U_ . Then the procedure works as follows.
|
| 302 |
+
|
| 303 |
+
(1) Train a new parser on the current _L_ .
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
(2) Parse all sentences in _U_, and select a set of
|
| 307 |
+
the most informative tasks _U_ _[′]_
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
(3) Manually annotate: _U_ _[′]_ _→L_ _[′]_
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
(4) Expand labeled data: _L ∪L_ _[′]_ _→L_
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
The above steps loop for many iterations until a
|
| 317 |
+
predefined stopping criterion is met.
|
| 318 |
+
The key challenge for AL is how to measure the
|
| 319 |
+
informativeness of structures in concern. Following previous work on AL for dependency parsing,
|
| 320 |
+
we make a simplifying assumption that if the
|
| 321 |
+
current model is most uncertain about an output
|
| 322 |
+
(sub)structure, the structure is most informative in
|
| 323 |
+
terms of boosting model performance.
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
**3.1** **Sentence-wise FA**
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
Sentence-wise FA selects _K_ most uncertain sentences in Step (2), and annotates their whole tree
|
| 330 |
+
structures in Step (3). In the following, we describe several uncertainty metrics and investigate
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
their practical effects through experiments. Given
|
| 335 |
+
an unlabeled sentence **x** = _w_ 1 _...wn_, we use **d** _[∗]_
|
| 336 |
+
|
| 337 |
+
to denote the 1-best parse tree produced by the
|
| 338 |
+
current model as in Eq. (1). For brevity, we omit
|
| 339 |
+
the feature weight vector **w** in the equations.
|
| 340 |
+
**Normalized** **tree** **score.** Following previous
|
| 341 |
+
works that use scores of local classifiers
|
| 342 |
+
for uncertainty measurement (Sassano and
|
| 343 |
+
Kurohashi, 2010; Flannery and Mori, 2015), we
|
| 344 |
+
use _Score_ ( **x** _,_ **d** _[∗]_ ) to measure the uncertainty of **x**,
|
| 345 |
+
assuming that the model is more uncertain about
|
| 346 |
+
**x** if **d** _[∗]_ gets a smaller score. However, we find that
|
| 347 |
+
directly using _Score_ ( **x** _,_ **d** _[∗]_ ) always selects very
|
| 348 |
+
short sentences due to the definition in Eq. (1).
|
| 349 |
+
Thus we normalize the score with the sentence
|
| 350 |
+
length _n_ as follows. [3]
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
_Confi_ ( **x** ) = _[Score]_ [(] **[x]** _[,]_ **[ d]** _[∗]_ [)] (5)
|
| 354 |
+
|
| 355 |
+
_n_ [1] _[.]_ [5]
|
| 356 |
+
|
| 357 |
+
**Normalized** **tree** **probability.** The CRF-based
|
| 358 |
+
parser allows us, for the first time in AL for dependency parsing, to directly use tree probabilities
|
| 359 |
+
for uncertainty measurement. Unlike previous
|
| 360 |
+
approximate methods based on k-best parses (Mirroshandel and Nasr, 2011), tree probabilities globally consider all parse trees in the search space,
|
| 361 |
+
and thus are intuitively more consistent and proper
|
| 362 |
+
for measuring the reliability of a tree. Our initial
|
| 363 |
+
assumption is that the model is more uncertain
|
| 364 |
+
about **x** if **d** _[∗]_ gets a smaller probability. However,
|
| 365 |
+
we find that directly using _p_ ( **d** _[∗]_ _|_ **x** ) would select
|
| 366 |
+
very long sentences because the solution space
|
| 367 |
+
grows exponentially with sentence length. We find
|
| 368 |
+
that the normalization strategy below works well. [4]
|
| 369 |
+
|
| 370 |
+
~~[√]~~ _n_
|
| 371 |
+
_Confi_ ( **x** ) = _p_ ( **d** _[∗]_ _|_ **x** ) (6)
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
**Averaged marginal probability** . As discussed
|
| 375 |
+
in Section 2.2, the marginal probability of a dependency directly reflects its reliability, and thus
|
| 376 |
+
can be regarded as another global measurement
|
| 377 |
+
besides tree probabilities.In fact, we find that the
|
| 378 |
+
effect of sentence length is naturally handled with
|
| 379 |
+
the following metric. [5]
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
∑
|
| 384 |
+
_h_ ↷ _m∈_ **d** _[∗]_ _[p]_ [(] _[h]_ [ ↷] _[m][|]_ **[x]** [)]
|
| 385 |
+
_Confi_ ( **x** ) =
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
(7)
|
| 390 |
+
_n_
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
3We have also tried replacing _n_ 1 _._ 5 with _n_ (still prefer
|
| 395 |
+
short sentences) and _n_ [2] (bias to long sentences).
|
| 396 |
+
4We have also tried _p_ ( **d** _∗|_ **x** ) _×_ _f_ ( _n_ ), where _f_ ( _n_ ) = log _n_
|
| 397 |
+
or _f_ ( _n_ ) = ~~_[√]_~~ _n_, but both work badly.
|
| 398 |
+
|
| 399 |
+
5 [√] _n_ ~~[∏]~~
|
| 400 |
+
We have also tried _h_ ↷ _m∈_ **d** _[∗]_ _[p]_ [(] _[h]_ [ ↷] _[m][|]_ **[x]** [)][,] [leading]
|
| 401 |
+
|
| 402 |
+
to slightly inferior results.
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
5 [√] _n_ ~~[∏]~~
|
| 407 |
+
We have also tried
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
346
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
**3.2** **Single Dependency-wise PA**
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
AL with single dependency-wise PA selects _M_
|
| 418 |
+
most uncertain words from _U_ in Step (2), and annotates the heads of the selected words in Step (3).
|
| 419 |
+
After annotation, the newly annotated sentences
|
| 420 |
+
with partial trees _L_ _[′]_ are added into _L_ . Different
|
| 421 |
+
from the case of sentence-wise FA, _L_ _[′]_ are also put
|
| 422 |
+
back to _U_, so that new tasks can be further chosen
|
| 423 |
+
from them.
|
| 424 |
+
Marcheggiani and Arti`eres (2014) make systematic comparison among a dozen uncertainty
|
| 425 |
+
metrics for AL with PA for several sequence
|
| 426 |
+
labeling tasks. We borrow three effective metrics
|
| 427 |
+
according to their results.
|
| 428 |
+
**Marginal** **probability** **max.** Suppose _h_ [0] =
|
| 429 |
+
arg max _h p_ ( _h_ ↷ _i|_ **x** ) is the most likely head for
|
| 430 |
+
_i_ . The intuition is that the lower _p_ ( _h_ [0] ↷ _i_ ) is, the
|
| 431 |
+
more uncertain the model is on deciding the head
|
| 432 |
+
of the token _i_ .
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
_Confi_ ( **x** _, i_ ) = _p_ ( _h_ [0] ↷ _i|_ **x** ) (8)
|
| 436 |
+
|
| 437 |
+
|
| 438 |
+
**Marginal** **probability** **gap.** Suppose _h_ [1] =
|
| 439 |
+
arg max _h_ = _h_ 0 _p_ ( _h_ ↷ _i|_ **x** ) is the second most likely
|
| 440 |
+
head for _i_ . The intuition is that the smaller the
|
| 441 |
+
probability gap is, the more uncertain the model is
|
| 442 |
+
about _i_ .
|
| 443 |
+
|
| 444 |
+
|
| 445 |
+
_Confi_ ( **x** _, i_ ) = _p_ ( _h_ [0] ↷ _i|_ **x** ) _−_ _p_ ( _h_ [1] ↷ _i|_ **x** ) (9)
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
**Marginal** **probability** **entropy.** This metric
|
| 449 |
+
considers the entropy of all possible heads for _i_ .
|
| 450 |
+
The assumption is that the smaller the _negative_
|
| 451 |
+
entropy is, the more uncertain the model is about
|
| 452 |
+
_i_ .
|
| 453 |
+
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
∑
|
| 457 |
+
_Confi_ ( **x** _, i_ ) =
|
| 458 |
+
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
_p_ ( _h_ ↷ _i|_ **x** ) log _p_ ( _h_ ↷ _i|_ **x** )
|
| 462 |
+
|
| 463 |
+
_h_
|
| 464 |
+
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
(10)
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
$0 I1 saw2 Sarah3 with4 a5 telescope6
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
Figure 2: An example parse forest converted from
|
| 475 |
+
the partial tree in Figure 1.
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
and annotating one dependency can certainly help
|
| 479 |
+
decide another dependency in practice.
|
| 480 |
+
Inspired by the work of Flannery and Mori
|
| 481 |
+
(2015), we propose AL with batch dependencywise PA, which is a compromise between
|
| 482 |
+
sentence-wise FA and single dependency-wise
|
| 483 |
+
PA. In Step 2, AL with batch dependency-wise
|
| 484 |
+
PA selects _K_ most uncertain sentences from _U_,
|
| 485 |
+
and also determines _r_ % most uncertain words
|
| 486 |
+
from each sentence at the same time. In Step
|
| 487 |
+
3, annotators are asked to label the heads of
|
| 488 |
+
the selected words in the selected sentences.
|
| 489 |
+
We propose and experiment with the following
|
| 490 |
+
three strategies based on experimental results of
|
| 491 |
+
sentence-wise FA and single dependency-wise
|
| 492 |
+
PA.
|
| 493 |
+
**Averaged** **marginal** **probability** **&** **gap** .
|
| 494 |
+
First, select _K_ sentences from _U_ using averaged
|
| 495 |
+
marginal probability. Second, select _r_ % words
|
| 496 |
+
using marginal probability gap for each selected
|
| 497 |
+
sentence.
|
| 498 |
+
**Marginal** **probability** **gap** . First, for each
|
| 499 |
+
sentence in _U_, select _r_ % most uncertain words
|
| 500 |
+
according to marginal probability gap. Second,
|
| 501 |
+
select _K_ sentences from _U_ using the averaged
|
| 502 |
+
marginal probability gap of the selected _r_ % words
|
| 503 |
+
in a sentence as the uncertainty metric.
|
| 504 |
+
**Averaged marginal probability** . This strategy
|
| 505 |
+
is the same with the above strategy, except it
|
| 506 |
+
measures the uncertainty of a word _i_ according
|
| 507 |
+
to the marginal probability of the dependency
|
| 508 |
+
pointing to _i_ in **d** _[∗]_, i.e., _p_ ( _j_ ↷ _i|_ **x** ), where _j_ ↷
|
| 509 |
+
_i ∈_ **d** _[∗]_ .
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
**3.4** **Learning from PA**
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
A major challenge for AL with PA is how to learn
|
| 516 |
+
from partially labeled sentences, as depicted in
|
| 517 |
+
Figure 1. Li et al. (2014) show that a probabilistic
|
| 518 |
+
CRF-based parser can naturally and effectively
|
| 519 |
+
learn from PA. The basic idea is converting a
|
| 520 |
+
partial tree into a forest as shown in Figure 2,
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
**3.3** **Batch Dependency-wise PA**
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
In the framework of single dependency-wise PA,
|
| 528 |
+
we assume that the selection and annotation of
|
| 529 |
+
dependencies in the same sentence are strictly
|
| 530 |
+
independent. In other words, annotators may be
|
| 531 |
+
asked to annotate the head of one selected word after reading and understanding a whole (sometimes
|
| 532 |
+
partial) sentence, and may be asked to annotate
|
| 533 |
+
another selected word in the same sentence in next
|
| 534 |
+
AL iteration. Obviously, frequently switching
|
| 535 |
+
sentences incurs great waste of cognitive effort,
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
347
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
and using the forest as the gold-standard reference
|
| 543 |
+
during training, also known as _ambiguous labeling_
|
| 544 |
+
(Riezler et al., 2002; T¨ackstr¨om et al., 2013).
|
| 545 |
+
For each remaining word without head, we
|
| 546 |
+
add all dependencies linking to it as long as the
|
| 547 |
+
new dependency does not violate the existing
|
| 548 |
+
dependencies. We denote the resulting forest as
|
| 549 |
+
_F_ j, whose probability is naturally the sum of
|
| 550 |
+
probabilities of each tree **d** in _F_ .
|
| 551 |
+
|
| 552 |
+
|
| 553 |
+
|Col1|Col2|Train|Dev|Test|
|
| 554 |
+
|---|---|---|---|---|
|
| 555 |
+
|Chinese|#Sentences<br>#Tokens|14,304<br>318,408|803<br>20,454|1,910<br>50,319|
|
| 556 |
+
|English|#Sentences<br>#Tokens|39,115<br>908,154|1,700<br>40,117|2,416<br>56,684|
|
| 557 |
+
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
∑
|
| 561 |
+
_p_ ( _F|_ **x** ; **w** ) =
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
_p_ ( **d** _|_ **x** ; **w** )
|
| 566 |
+
|
| 567 |
+
**d** _∈F_
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
(11)
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
|
| 575 |
+
∑
|
| 576 |
+
**d** _∈F_ _[e][Score]_ [(] **[x]** _[,]_ **[d]** [;] **[w]** [)]
|
| 577 |
+
= ~~∑~~
|
| 578 |
+
**d** _[′]_ _∈Y_ ( **x** ) _[e][Score]_ [(] **[x]** _[,]_ **[d]** _[′]_ [;] **[w]** [)]
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
Table 1: Data statistics.
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
are selected and annotated at each iteration. In
|
| 586 |
+
the case of single dependency-wise PA, we select
|
| 587 |
+
and annotate _M_ = 10 _,_ 000 dependencies, which
|
| 588 |
+
roughly correspond to 500 sentences considering
|
| 589 |
+
that the averaged sentence length is about 22 _._ 3 in
|
| 590 |
+
CTB-train and 23 _._ 2 in PTB-train. In the case of
|
| 591 |
+
batch dependency-wise PA, we set _K_ = 500, and
|
| 592 |
+
_r_ = 20% for Chinese and _r_ = 10% for English,
|
| 593 |
+
considering that the parser trained on all data
|
| 594 |
+
achieves about 80% and 90% accuracies.
|
| 595 |
+
We measure parsing performance using the
|
| 596 |
+
standard unlabeled attachment score (UAS)
|
| 597 |
+
_including punctuation marks_ . Please note that we
|
| 598 |
+
always treat punctuation marks as ordinary words
|
| 599 |
+
when selecting annotation tasks and calculating
|
| 600 |
+
UAS, in order to make fair comparison between
|
| 601 |
+
FA and PA. [7]
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
**4.1** **FA vs.** **Single Dependency-wise PA**
|
| 605 |
+
|
| 606 |
+
|
| 607 |
+
First, we make comparison on the performance of
|
| 608 |
+
AL with FA and with single dependency-wise PA.
|
| 609 |
+
**Results** **on** **Chinese** are shown in Figure 3.
|
| 610 |
+
Following previous work, we use the number of
|
| 611 |
+
annotated dependencies (x-axis) as the annotation
|
| 612 |
+
cost in order to fairly compare FA and PA. We use
|
| 613 |
+
FA with random selection as a baseline. We also
|
| 614 |
+
draw the accuracy of the CRF-based parser trained
|
| 615 |
+
on all training data, which can be regarded as the
|
| 616 |
+
upper bound.
|
| 617 |
+
For FA, the curve of the normalized tree score
|
| 618 |
+
intertwines with that of random selection. Meanwhile, the performance of normalized tree probability is very close to that of averaged marginal
|
| 619 |
+
probability, and both are clearly superior to the
|
| 620 |
+
baseline with random selection.
|
| 621 |
+
For PA, the difference among the three uncertainty metrics is small. The marginal probability
|
| 622 |
+
gap clearly outperforms the other two metrics before 50 _,_ 000 annotated dependencies, and remains
|
| 623 |
+
|
| 624 |
+
|
| 625 |
+
7Alternatively, we can exclude punctuation marks for task
|
| 626 |
+
selection in AL with PA. Then, to be fair, we have to discard
|
| 627 |
+
all dependencies pointing to punctuation marks in the case of
|
| 628 |
+
FA. This makes the experiment setting more complicated.
|
| 629 |
+
|
| 630 |
+
|
| 631 |
+
348
|
| 632 |
+
|
| 633 |
+
|
| 634 |
+
|
| 635 |
+
Suppose the partially labeled training data is
|
| 636 |
+
_D_ = _{_ ( **x** _i, Fi_ ) _}_ _[N]_ _i_ =1 [.] [Then its log likelihood is:]
|
| 637 |
+
|
| 638 |
+
∑ _N_
|
| 639 |
+
_L_ ( _D_ ; **w** ) = (12)
|
| 640 |
+
|
| 641 |
+
_i_ =1 [log] _[ p]_ [(] _[F][i][|]_ **[x]** _[i]_ [;] **[ w]** [)]
|
| 642 |
+
|
| 643 |
+
|
| 644 |
+
T¨ackstr¨om et al. (2013) show that the partial
|
| 645 |
+
derivative of the _L_ ( _D_ ; **w** ) with regard to **w** (a.k.a
|
| 646 |
+
the gradient) in both Equation (3) and (12) can be
|
| 647 |
+
efficiently solved with the classic Inside-Outside
|
| 648 |
+
algorithm. [6]
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
**4** **Simulation Experiments**
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
We use Chinese Penn Treebank 5.1 (CTB) for
|
| 655 |
+
Chinese and Penn Treebank (PTB) for English.
|
| 656 |
+
For both datasets, we follow the standard data
|
| 657 |
+
split, and convert original bracketed structures into
|
| 658 |
+
dependency structures using Penn2Malt with its
|
| 659 |
+
default head-finding rules. To be more realistic, we use automatic part-of-speech (POS) tags
|
| 660 |
+
produced by a state-of-the-art CRF-based tagger
|
| 661 |
+
(94 _._ 1% on CTB-test, and 97 _._ 2% on PTB-test, nfold jackknifing on training data), since POS tags
|
| 662 |
+
encode much syntactic annotation. Because AL
|
| 663 |
+
experiments need to train many parsing models,
|
| 664 |
+
we throw out all training sentences longer than 50
|
| 665 |
+
to speed up our experiments. Table 1 shows the
|
| 666 |
+
data statistics.
|
| 667 |
+
Following previous practice on AL with PA
|
| 668 |
+
(Sassano and Kurohashi, 2010; Flannery and
|
| 669 |
+
Mori, 2015), we adopt the following AL settings
|
| 670 |
+
for both Chinese and English . The first 500
|
| 671 |
+
training sentences are used as the seed labeled
|
| 672 |
+
data _L_ . In the case of FA, _K_ = 500 new sentences
|
| 673 |
+
|
| 674 |
+
|
| 675 |
+
6This work focuses on projective dependency parsing.
|
| 676 |
+
Please refer to Koo et al. (2007), McDonald and Satta (2007),
|
| 677 |
+
and Smith and Smith (2007) for building a probabilistic nonprojective parser.
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
80
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
79
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
78
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
77
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
76
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
75
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
74
|
| 699 |
+
|
| 700 |
+
|
| 701 |
+
73
|
| 702 |
+
|
| 703 |
+
|
| 704 |
+
72
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
92
|
| 708 |
+
|
| 709 |
+
|
| 710 |
+
91
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
90
|
| 714 |
+
|
| 715 |
+
|
| 716 |
+
89
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
88
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
87
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
86
|
| 726 |
+
|
| 727 |
+
|
| 728 |
+
85
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
84
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
|
| 738 |
+
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
80
|
| 742 |
+
|
| 743 |
+
|
| 744 |
+
79
|
| 745 |
+
|
| 746 |
+
|
| 747 |
+
78
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
77
|
| 751 |
+
|
| 752 |
+
|
| 753 |
+
76
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
75
|
| 757 |
+
|
| 758 |
+
|
| 759 |
+
74
|
| 760 |
+
|
| 761 |
+
|
| 762 |
+
73
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
72
|
| 766 |
+
|
| 767 |
+
|
| 768 |
+
|
| 769 |
+
0 50000 100000 150000 200000 250000 300000
|
| 770 |
+
|
| 771 |
+
|
| 772 |
+
Number of Annotated Dependencies
|
| 773 |
+
|
| 774 |
+
|
| 775 |
+
Figure 3: FA vs. PA on CTB-dev.
|
| 776 |
+
|
| 777 |
+
|
| 778 |
+
|
| 779 |
+
10000 20000 30000 40000 50000 60000 70000
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
Number of Annotated Dependencies
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
Figure 5: Single vs. batch dependency-wise PA on
|
| 786 |
+
CTB-dev.
|
| 787 |
+
|
| 788 |
+
|
| 789 |
+
93
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
92
|
| 793 |
+
|
| 794 |
+
|
| 795 |
+
91
|
| 796 |
+
|
| 797 |
+
|
| 798 |
+
90
|
| 799 |
+
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
|
| 806 |
+
0 50000 100000 150000 200000 250000 300000
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
Number of Annotated Dependencies
|
| 810 |
+
|
| 811 |
+
|
| 812 |
+
Figure 4: FA vs. PA on PTB-dev.
|
| 813 |
+
|
| 814 |
+
|
| 815 |
+
very competitive at all other points. The marginal
|
| 816 |
+
probability max achieves best peak UAS, and even
|
| 817 |
+
outperforms the parser trained on all data, which
|
| 818 |
+
can be explained by small disturbance during
|
| 819 |
+
complex model training. The marginal probability
|
| 820 |
+
entropy, although being the most complex metric
|
| 821 |
+
among the three, seems inferior all the time.
|
| 822 |
+
It is clear that using PA can greatly reduce
|
| 823 |
+
annotation effort compared with using FA in terms
|
| 824 |
+
of annotated dependencies.
|
| 825 |
+
**Results on English** are shown in Figure 4. The
|
| 826 |
+
overall findings are similar to those in Figure 3, except that the distinction among different methods
|
| 827 |
+
is more clear. For FA, normalized tree score
|
| 828 |
+
is consistently better than the random baseline.
|
| 829 |
+
Normalized tree probability always outperforms
|
| 830 |
+
normalized tree score. Averaged marginal probability performs best, except being slightly inferior
|
| 831 |
+
to normalized tree probability in earlier stages.
|
| 832 |
+
For PA, it is consistent that marginal probability
|
| 833 |
+
gap is better than marginal probability max, and
|
| 834 |
+
marginal probability entropy is the worst.
|
| 835 |
+
In summary, based on the results on the de
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
10000 20000 30000 40000 50000 60000 70000
|
| 839 |
+
|
| 840 |
+
|
| 841 |
+
Number of Annotated Dependencies
|
| 842 |
+
|
| 843 |
+
|
| 844 |
+
Figure 6: Single vs. batch dependency-wise PA on
|
| 845 |
+
PTB-dev.
|
| 846 |
+
|
| 847 |
+
|
| 848 |
+
velopment data in Figure 3 and 4, the best AL
|
| 849 |
+
method with PA only needs about 80 _,_ 000 [25%]
|
| 850 |
+
318 _,_ 408 [=]
|
| 851 |
+
annotated dependencies on Chinese, and about
|
| 852 |
+
90 _,_ 000 [10%][ on English, to reach the same per-]
|
| 853 |
+
908 _,_ 154 [=]
|
| 854 |
+
formance with parsers trained on all data. Moreover, the PA methods converges much faster than
|
| 855 |
+
the FA ones, since for the same x-axis number,
|
| 856 |
+
much more sentences (with partial trees) are used
|
| 857 |
+
as training data for AL with PA than FA.
|
| 858 |
+
|
| 859 |
+
|
| 860 |
+
**4.2** **Single vs.** **Batch Dependency-wise PA**
|
| 861 |
+
|
| 862 |
+
|
| 863 |
+
Then we make comparison on AL with single
|
| 864 |
+
dependency-wise PA and with the more practical
|
| 865 |
+
batch dependency-wise PA.
|
| 866 |
+
**Results on Chinese** are shown in Figure 5. We
|
| 867 |
+
can see that the three strategies achieve very similar performance and are also very close to single
|
| 868 |
+
dependency-wise PA. AL with batch dependencywise PA even achieves higher accuracy before
|
| 869 |
+
20 _,_ 000 annotated dependencies, which should be
|
| 870 |
+
caused by the smaller active learning steps (about
|
| 871 |
+
|
| 872 |
+
|
| 873 |
+
349
|
| 874 |
+
|
| 875 |
+
|
| 876 |
+
|
| 877 |
+
89
|
| 878 |
+
|
| 879 |
+
|
| 880 |
+
88
|
| 881 |
+
|
| 882 |
+
|
| 883 |
+
87
|
| 884 |
+
|
| 885 |
+
|
| 886 |
+
86
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
85
|
| 890 |
+
|
| 891 |
+
|
| 892 |
+
84
|
| 893 |
+
|
| 894 |
+
|
| 895 |
+
|
| 896 |
+
|
| 897 |
+
2 _,_ 000 dependencies at each iteration, contrasting
|
| 898 |
+
10 _,_ 000 for single dependency-wise PA). When the
|
| 899 |
+
training data runs out at about 7 _,_ 300 dependencies, AL with batch dependency-wise PA only lags
|
| 900 |
+
behind with single dependency-wise PA by about
|
| 901 |
+
0 _._ 3%, which we suppose can be reduced if larger
|
| 902 |
+
training data is available.
|
| 903 |
+
**Results** **on** **English** are shown in Figure 6,
|
| 904 |
+
and are very similar to those on Chinese. One
|
| 905 |
+
tiny difference is that the marginal probability
|
| 906 |
+
gap is slightly worse that the other two metrics.
|
| 907 |
+
The three uncertainty metrics have very similar
|
| 908 |
+
accuracy curves, which are also very close to the
|
| 909 |
+
curve of single dependency-wise PA. In addition,
|
| 910 |
+
we also try _r_ = 20% and find that results are
|
| 911 |
+
inferior to _r_ = 10%, indicating that the extra 10%
|
| 912 |
+
annotation tasks are less valuable and contributive.
|
| 913 |
+
|
| 914 |
+
|
| 915 |
+
**4.3** **Main Results on Test Data**
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
Table 2 shows the results on test data. We compare
|
| 919 |
+
our CRF-based parser with ZPar v6.0 [8], a state-ofthe-art transition-based dependency parser (Zhang
|
| 920 |
+
and Nivre, 2011). We train ZPar with default
|
| 921 |
+
parameter settings for 50 iterations, and choose
|
| 922 |
+
the model that performs best on dev data. We
|
| 923 |
+
can see that when trained on all data, our CRFbased parser outperforms ZPar on both Chinese
|
| 924 |
+
and English.
|
| 925 |
+
To compare FA and PA, we report the number
|
| 926 |
+
of annotated dependencies needed under each AL
|
| 927 |
+
strategy to achieve an accuracy lower by about 1%
|
| 928 |
+
than the parser trained on all data. [9]
|
| 929 |
+
|
| 930 |
+
FA (best) refers to FA with averaged marginal
|
| 931 |
+
probability, and it needs [187] _[,]_ [123] _[−]_ [149] _[,]_ [051] = 20 _._ 3%
|
| 932 |
+
|
| 933 |
+
|
| 934 |
+
|Col1|Chinese|Col3|English|Col5|
|
| 935 |
+
|---|---|---|---|---|
|
| 936 |
+
||#Dep labeled|UAS|#Dep labeled|UAS|
|
| 937 |
+
|ZPar<br>This parser|318,408<br>318,408|77.97<br>78.36|908,154<br>908,154|91.45<br>91.66|
|
| 938 |
+
|FA (random)<br>FA (best)|187,123<br>149,051|77.43<br>77.32|395,199<br>197,907|90.67<br>90.66|
|
| 939 |
+
|PA (single)<br>PA (batch)|50,958<br>56,389|77.22<br>77.38|61,448<br>51,016|90.72<br>90.70|
|
| 940 |
+
|
| 941 |
+
|
| 942 |
+
|
| 943 |
+
probability, and it needs = 20 _._ 3%
|
| 944 |
+
|
| 945 |
+
187 _,_ 123
|
| 946 |
+
less annotated dependencies than FA with random selection on Chinese, and [395] _[,]_ [199] _[−]_ [197] _[,]_ [907] =
|
| 947 |
+
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
dom selection on Chinese, and =
|
| 951 |
+
|
| 952 |
+
395 _,_ 199
|
| 953 |
+
50 _._ 0% less on English.
|
| 954 |
+
PA (single) with marginal probability gap
|
| 955 |
+
needs 149 _,_ 051 _−_ 50 _,_ 958 = 65 _._ 8% less annotated
|
| 956 |
+
|
| 957 |
+
|
| 958 |
+
|
| 959 |
+
needs = 65 _._ 8% less annotated
|
| 960 |
+
|
| 961 |
+
149 _,_ 051
|
| 962 |
+
dependencies than FA (best) on Chinese, and
|
| 963 |
+
197 _,_ 907 _−_ 61 _,_ 448 = 69 _._ 0% less on English.
|
| 964 |
+
|
| 965 |
+
197 _,_ 907
|
| 966 |
+
PA (batch) with marginal probability gap needs
|
| 967 |
+
slightly more annotation than PA (single) on Chinese but slightly less annotation on English, and
|
| 968 |
+
can reduce the amount of annotated dependencies
|
| 969 |
+
by [149] _[,]_ [051] _[−]_ [56] _[,]_ [389] = 62 _._ 2% over FA (best) on Chi
|
| 970 |
+
|
| 971 |
+
|
| 972 |
+
= 62 _._ 2% over FA (best) on Chi149 _,_ 051
|
| 973 |
+
|
| 974 |
+
|
| 975 |
+
|
| 976 |
+
Table 2: Results on test data.
|
| 977 |
+
|
| 978 |
+
|
| 979 |
+
nese and by [197] _[,]_ [907] _[−]_ [51] _[,]_ [016] = 74 _._ 2% on English.
|
| 980 |
+
|
| 981 |
+
197 _,_ 907
|
| 982 |
+
|
| 983 |
+
|
| 984 |
+
**5** **Human Annotation Experiments**
|
| 985 |
+
|
| 986 |
+
|
| 987 |
+
So far, we measure annotation effort in terms
|
| 988 |
+
of the number of annotated dependencies and
|
| 989 |
+
assume that it takes the same amount of time
|
| 990 |
+
to annotate different words, which is obviously
|
| 991 |
+
unrealistic. To understand whether active learning
|
| 992 |
+
based on PA can really reduce annotation time
|
| 993 |
+
over based on FA in practice, we build a web
|
| 994 |
+
browser based annotation system, [10] and conduct
|
| 995 |
+
human annotation experiments on Chinese.
|
| 996 |
+
In this part, we use CTB 7 _._ 0 which is a newer
|
| 997 |
+
and larger version and covers more genres, and
|
| 998 |
+
adopt the newly proposed Stanford dependencies
|
| 999 |
+
(de Marneffe and Manning, 2008; Chang et al.,
|
| 1000 |
+
2009) which are more understandable for annotators. [11] Since manual syntactic annotation is
|
| 1001 |
+
very difficult and time-consuming, we only keep
|
| 1002 |
+
sentences with length [10 _,_ 20] in order to better
|
| 1003 |
+
measure annotation time by focusing on sentences
|
| 1004 |
+
of reasonable length, which leave us 12 _,_ 912 training sentences under the official data split. Then,
|
| 1005 |
+
we use a random half of training sentences to
|
| 1006 |
+
train a CRF-based parser, and select 20% most
|
| 1007 |
+
uncertain words with marginal probability gap for
|
| 1008 |
+
each sentence of the left half.
|
| 1009 |
+
We employ 6 postgraduate students as our annotators who are at different levels of familiarity
|
| 1010 |
+
in syntactic annotation. Before annotation, the
|
| 1011 |
+
annotators are trained for about two hours by
|
| 1012 |
+
introducing the basic concepts, guidelines, and illustrating examples. Then, they are asked to practice on the annotation system for about another
|
| 1013 |
+
two hours. Finally, all annotators are required to
|
| 1014 |
+
|
| 1015 |
+
|
| 1016 |
+
10http://hlt-service.suda.edu.cn/
|
| 1017 |
+
syn-dep-batch. Please try.
|
| 1018 |
+
11We use Stanford Parser 3 _._ 4 (2014-06-16) for constituentto-dependency structure conversion.
|
| 1019 |
+
|
| 1020 |
+
|
| 1021 |
+
|
| 1022 |
+
8
|
| 1023 |
+
http://people.sutd.edu.sg/˜yue_zhang/doc/
|
| 1024 |
+
9The gap 1% is chosen based on the curves on
|
| 1025 |
+
development data (Figure 3 and 4) with the following two
|
| 1026 |
+
considerations: 1) larger gap may lead to wrong impression
|
| 1027 |
+
that AL is weak; 2) smaller gap (e.g., 0 _._ 5%) cannot be
|
| 1028 |
+
reached for the worst AL method (FA: random).
|
| 1029 |
+
|
| 1030 |
+
|
| 1031 |
+
|
| 1032 |
+
350
|
| 1033 |
+
|
| 1034 |
+
|
| 1035 |
+
|Col1|Time: Sec/Dep|Col3|Annotation accuracy|Col5|
|
| 1036 |
+
|---|---|---|---|---|
|
| 1037 |
+
||FA|PA|FA (on 20%)|PA (diff)|
|
| 1038 |
+
|Annotator #1<br>Annotator #2<br>Annotator #3 <br>Annotator #4<br>Annotator #5<br>Annotator #6|**4.0**<br>7.5<br> _10.0_<br>5.1<br>7.0<br>7.0|**7.9 **<br>16.0 <br>_22.2_ <br>8.7 <br>17.3 <br>10.6|**84.65** (**73.41**) <br> 78.90 (72.22) <br> 69.75 (59.77) <br> 66.75 (49.19) <br> 65.47 (48.50) <br> _58.05_ (_43.28_)|**75.28** (+1.87)<br> 62.18 (_-10.04_)<br> 56.91 (-2.86)<br> 61.77 (+**12.58**)<br> 48.39 (-0.11)<br> _48.37_ (+5.09)|
|
| 1039 |
+
|Overall|6.7|13.6|70.36 (57.28)|59.06 (+1.78)|
|
| 1040 |
+
|
| 1041 |
+
|
| 1042 |
+
Table 3: Statistics of human annotation.
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
formally annotate the same 100 sentences. The
|
| 1046 |
+
system is programed that each sentence has 3
|
| 1047 |
+
FA submissions and 3 PA submissions. During
|
| 1048 |
+
formal annotation, the annotators are not allowed
|
| 1049 |
+
to discuss with each other or look up any guideline or documents, which may incur unnecessary
|
| 1050 |
+
inaccuracy in timing. Instead, the annotators
|
| 1051 |
+
can only decide the syntactic structures based on
|
| 1052 |
+
the basic knowledge of dependency grammar and
|
| 1053 |
+
one’s understanding of the sentence structure. The
|
| 1054 |
+
annotation process lasts for about 5 hours. On
|
| 1055 |
+
average, each annotator completes 50 sentences
|
| 1056 |
+
with FA (763 dependencies) and 50 sentences with
|
| 1057 |
+
PA (178 dependencies).
|
| 1058 |
+
Table 3 lists the results in descending order of
|
| 1059 |
+
an annotator’s experience in syntactic annotation.
|
| 1060 |
+
The first two columns compare the time needed for
|
| 1061 |
+
annotating a dependency in seconds. On average,
|
| 1062 |
+
_annotating_ _a_ _dependency_ _in_ _PA_ _takes about_ _twice_
|
| 1063 |
+
_as_ _much_ _time_ _as_ _in_ _FA_, which is reasonable considering the words to be annotated in PA may be
|
| 1064 |
+
more difficult for annotators while the annotation
|
| 1065 |
+
of some tasks in FA may be very trivial and easy.
|
| 1066 |
+
Combined with the results in Table 2, we may infer
|
| 1067 |
+
that to achieve 77 _._ 3% accuracy on CTB-test, AL
|
| 1068 |
+
with FA requires 149 _,_ 051 _×_ 6 _._ 7 = 998 _,_ 641 _._ 7
|
| 1069 |
+
seconds of annotation, whereas AL with batch
|
| 1070 |
+
dependency-wise PA needs 56 _,_ 389 _×_ 13 _._ 6 =
|
| 1071 |
+
766 _,_ 890 _._ 4 seconds. Thus, we may roughly say
|
| 1072 |
+
that _AL_ _with_ _PA_ _can_ _reduce_ _annotation_ _time_ _over_
|
| 1073 |
+
_FA by_ [998] _[,]_ [641] _[.]_ [7] _[−]_ [766] _[,]_ [890] _[.]_ [4] = 23 _._ 2% _._
|
| 1074 |
+
|
| 1075 |
+
998 _,_ 641 _._ 7
|
| 1076 |
+
We also report annotation accuracy according
|
| 1077 |
+
to the gold-standard Stanford dependencies converted from bracketed structures. [12] Overall, the
|
| 1078 |
+
accuracy of FA is 70 _._ 36 _−_ 59 _._ 06 = 11 _._ 30% higher
|
| 1079 |
+
|
| 1080 |
+
|
| 1081 |
+
12An anonymous reviewer commented that the direct
|
| 1082 |
+
comparison between an annotator’s performance on PA and
|
| 1083 |
+
FA based on accuracy may be misleading since the FA and
|
| 1084 |
+
PA sentences for one annotator are mutually exclusive.
|
| 1085 |
+
|
| 1086 |
+
|
| 1087 |
+
351
|
| 1088 |
+
|
| 1089 |
+
|
| 1090 |
+
|
| 1091 |
+
than that of PA, which should be due to the trivial
|
| 1092 |
+
tasks in FA. To be more fair, we compare the
|
| 1093 |
+
accuracies of FA and PA on the same 20% selected
|
| 1094 |
+
difficult words, and find that annotators exhibit
|
| 1095 |
+
different responses to the switch. Annotator #4
|
| 1096 |
+
achieve 12 _._ 58% higher accuracy when under PA
|
| 1097 |
+
than under FA. The reason may be that under PA,
|
| 1098 |
+
annotators can be more focused and therefore perform better on the few selected tasks. In contrast,
|
| 1099 |
+
some annotators may perform better under FA.
|
| 1100 |
+
For example, annotation accuracy of annotator #2
|
| 1101 |
+
increases by 10 _._ 04% when switching from PA to
|
| 1102 |
+
FA, which may be due to that FA allows annotators
|
| 1103 |
+
to spend more time on the same sentence and gain
|
| 1104 |
+
help from annotating easier tasks. Overall, we find
|
| 1105 |
+
that the accuracy of PA is 59 _._ 06 _−_ 57 _._ 28 = 1 _._ 78%
|
| 1106 |
+
higher than that of FA, indicating that _PA actually_
|
| 1107 |
+
_can improve annotation quality_ .
|
| 1108 |
+
|
| 1109 |
+
|
| 1110 |
+
**6** **Related Work**
|
| 1111 |
+
|
| 1112 |
+
|
| 1113 |
+
Recently, AL with PA attracts much attention in
|
| 1114 |
+
sentence-wise natural language processing such
|
| 1115 |
+
as sequence labeling and parsing. For sequence
|
| 1116 |
+
labeling, Marcheggiani and Arti`eres (2014) systematically compare a dozen uncertainty metrics
|
| 1117 |
+
in token-wise AL with PA (without comparison
|
| 1118 |
+
with FA), whereas Settles and Craven (2008) investigate different uncertainty metrics in AL with
|
| 1119 |
+
FA. Li et al. (2012) propose to only annotate the
|
| 1120 |
+
most uncertain word boundaries in a sentence for
|
| 1121 |
+
Chinese word segmentation and show promising
|
| 1122 |
+
results on both simulation and human annotation
|
| 1123 |
+
experiments. All above works are based on CRFs
|
| 1124 |
+
and make extensive use of sequence probabilities
|
| 1125 |
+
and token marginal probability.
|
| 1126 |
+
In parsing community, Sassano and Kurohashi
|
| 1127 |
+
(2010) select bunsetsu (similar to phrases) pairs
|
| 1128 |
+
with smallest scores from a local classifier, and
|
| 1129 |
+
let annotators decide whether the pair composes
|
| 1130 |
+
a dependency. They convert partially annotated
|
| 1131 |
+
instances into local dependency/non-dependency
|
| 1132 |
+
classification instances to help a simple shiftreduce parser. Mirroshandel and Nasr (2011)
|
| 1133 |
+
select most uncertain words based on votes of nbest parsers, and convert partial trees into full trees
|
| 1134 |
+
by letting a baseline parser perform constrained
|
| 1135 |
+
decoding in order to preserve partial annotation.
|
| 1136 |
+
Under a different query-by-committee AL framework, Majidi and Crane (2013) select most uncertain words using a committee of diverse parsers,
|
| 1137 |
+
and convert partial trees into full trees by letting
|
| 1138 |
+
|
| 1139 |
+
|
| 1140 |
+
the parsers of committee to decide the heads of
|
| 1141 |
+
remaining tokens. Based on a first-order (pointwise) Japanese parser, Flannery and Mori (2015)
|
| 1142 |
+
use scores of a local classifier for task selection,
|
| 1143 |
+
and treat PA as dependency/non-dependency instances (Flannery et al., 2011). Different from
|
| 1144 |
+
above works, this work adopts a state-of-the-art
|
| 1145 |
+
probabilistic dependency parser, uses more principled tree probabilities and dependency marginal
|
| 1146 |
+
probabilities for uncertainty measurement, and
|
| 1147 |
+
learns from PA based on a forest-based training
|
| 1148 |
+
objective which is more theoretically sound.
|
| 1149 |
+
Most previous works on AL with PA only conduct simulation experiments. Flannery and Mori
|
| 1150 |
+
(2015) perform human annotation to measure true
|
| 1151 |
+
annotation time. A single annotator is employed
|
| 1152 |
+
to annotate for two hours alternating FA and PA
|
| 1153 |
+
(33% batch) every fifteen minutes. Beyond their
|
| 1154 |
+
initial expectation, they find that the annotation
|
| 1155 |
+
time per dependency is nearly the same for FA and
|
| 1156 |
+
PA (different from our findings) and gives a few
|
| 1157 |
+
interesting explanations.
|
| 1158 |
+
Under a non-AL framework, Mejer and Crammer (2012) propose an interesting light feedback
|
| 1159 |
+
scheme for dependency parsing by letting annotators decide the better one from top-2 parse trees
|
| 1160 |
+
produced by the current parsing model.
|
| 1161 |
+
Hwa (1999) pioneers the idea of using PA
|
| 1162 |
+
to reduce manual labeling effort for constituent
|
| 1163 |
+
grammar induction. She uses a variant InsideOutside re-estimation algorithm (Pereira and Schabes, 1992) to induce a grammar from PA. Clark
|
| 1164 |
+
and Curran (2006) propose to train a Combinatorial Categorial Grammar parser using partially
|
| 1165 |
+
labeled data only containing predicate-argument
|
| 1166 |
+
dependencies. Tsuboi et al. (2008) extend CRFbased sequence labeling models to learn from
|
| 1167 |
+
incomplete annotations, which is the same with
|
| 1168 |
+
Marcheggiani and Arti`eres (2014). Li et al. (2014)
|
| 1169 |
+
propose a CRF-based dependency parser that can
|
| 1170 |
+
learn from partial tree projected from sourcelanguage structures in the cross-lingual parsing
|
| 1171 |
+
scenario. Mielens et al. (2015) propose to impute
|
| 1172 |
+
missing dependencies based on Gibbs sampling in
|
| 1173 |
+
order to enable traditional parsers to learn from
|
| 1174 |
+
partial trees.
|
| 1175 |
+
|
| 1176 |
+
|
| 1177 |
+
**7** **Conclusions**
|
| 1178 |
+
|
| 1179 |
+
|
| 1180 |
+
This paper for the first time applies a state-ofthe-art probabilistic model to AL with PA for
|
| 1181 |
+
dependency parsing. It is shown that the CRF
|
| 1182 |
+
|
| 1183 |
+
|
| 1184 |
+
based parser can on the one hand provide tree
|
| 1185 |
+
probabilities and dependency marginal probabilities as principled uncertainty metrics and on the
|
| 1186 |
+
other hand elegantly learn from partially annotated
|
| 1187 |
+
data. We have proposed and compared several uncertainty metrics through simulation experiments,
|
| 1188 |
+
and show that AL with PA can greatly reduce
|
| 1189 |
+
the amount of annotated dependencies by 62 _._ 2%
|
| 1190 |
+
on Chinese 74 _._ 2% on English. Finally, we conduct human annotation experiments on Chinese to
|
| 1191 |
+
compare PA and FA on real annotation time and
|
| 1192 |
+
quality. We find that annotating a dependency in
|
| 1193 |
+
PA takes about 2 times long as in FA. This suggests that AL with PA can reduce annotation time
|
| 1194 |
+
by 23 _._ 2% over with FA on Chinese. Moreover,
|
| 1195 |
+
the results also indicate that annotators tend to
|
| 1196 |
+
perform better under PA than FA.
|
| 1197 |
+
For future work, we would like to advance this
|
| 1198 |
+
study in the following directions. The first idea is
|
| 1199 |
+
to combine uncertainty and representativeness for
|
| 1200 |
+
measuring informativeness of annotation targets in
|
| 1201 |
+
concern. Intuitively, it would be more profitable
|
| 1202 |
+
to annotate instances that are both difficult for
|
| 1203 |
+
the current model and representative in capturing
|
| 1204 |
+
common language phenomena. Second, we so far
|
| 1205 |
+
assume that the selected tasks are equally difficult
|
| 1206 |
+
and take the same amount of effort for human
|
| 1207 |
+
annotators. However, it is more reasonable that
|
| 1208 |
+
human are good at resolving some ambiguities but
|
| 1209 |
+
bad at others. Our plan is to study which syntactic
|
| 1210 |
+
structures are more suitable for human annotation,
|
| 1211 |
+
and balance informativeness of a candidate task
|
| 1212 |
+
and its suitability for human annotation. Finally,
|
| 1213 |
+
one anonymous reviewer comments that we may
|
| 1214 |
+
use automatically projected trees (Rasooli and
|
| 1215 |
+
Collins, 2015; Guo et al., 2015; Ma and Xia, 2014)
|
| 1216 |
+
as the initial seed labeled data, which is cheap and
|
| 1217 |
+
interesting.
|
| 1218 |
+
|
| 1219 |
+
|
| 1220 |
+
**Acknowledgments**
|
| 1221 |
+
|
| 1222 |
+
|
| 1223 |
+
The authors would like to thank the anonymous
|
| 1224 |
+
reviewers for the helpful comments. We also thank
|
| 1225 |
+
Junhui Li and Chunyu Kit for reading our paper
|
| 1226 |
+
and giving many good suggestions. Particularly,
|
| 1227 |
+
Zhenghua is very grateful to many of his students:
|
| 1228 |
+
Fangli Lu, Qiuyi Yan, and Yue Zhang build the annotation system; Jiayuan Chao, Wei Chen, Ziwei
|
| 1229 |
+
Fan, Die Hu, Qingrong Xia, and Yue Zhang participate in data annotation. This work was supported
|
| 1230 |
+
by National Natural Science Foundation of China
|
| 1231 |
+
(Grant No. 61502325, 61525205, 61572338).
|
| 1232 |
+
|
| 1233 |
+
|
| 1234 |
+
|
| 1235 |
+
352
|
| 1236 |
+
|
| 1237 |
+
|
| 1238 |
+
**References**
|
| 1239 |
+
|
| 1240 |
+
|
| 1241 |
+
Bernd Bohnet. 2010. Top accuracy and fast
|
| 1242 |
+
dependency parsing is not a contradiction. In
|
| 1243 |
+
_Proceedings of COLING_, pages 89–97.
|
| 1244 |
+
|
| 1245 |
+
|
| 1246 |
+
Pi-Chuan Chang, Huihsin Tseng, Dan Jurafsky, and
|
| 1247 |
+
Christopher D. Manning. 2009. Discriminative
|
| 1248 |
+
reordering with Chinese grammatical relations
|
| 1249 |
+
features. In _Proceedings_ _of_ _the_ _Third_ _Workshop_
|
| 1250 |
+
_on_ _Syntax_ _and_ _Structure_ _in_ _Statistical_ _Translation_
|
| 1251 |
+
_(SSST-3) at NAACL HLT 2009_, pages 51–59.
|
| 1252 |
+
|
| 1253 |
+
|
| 1254 |
+
Stephen Clark and James Curran. 2006. Partial
|
| 1255 |
+
training for a lexicalized-grammar parser. In
|
| 1256 |
+
_Proceedings_ _of_ _the_ _Human_ _Language_ _Technology_
|
| 1257 |
+
_Conference of the NAACL_, pages 144–151.
|
| 1258 |
+
|
| 1259 |
+
|
| 1260 |
+
Marie-Catherine de Marneffe and Christopher D.
|
| 1261 |
+
Manning. 2008. The Stanford typed dependencies
|
| 1262 |
+
representation. In _Coling 2008:_ _Proceedings of the_
|
| 1263 |
+
_workshop_ _on_ _Cross-Framework_ _and_ _Cross-Domain_
|
| 1264 |
+
_Parser Evaluation_, pages 1–8.
|
| 1265 |
+
|
| 1266 |
+
|
| 1267 |
+
Mark Dredze, John Blitzer, Partha Pratim Talukdar,
|
| 1268 |
+
Kuzman Ganchev, Jo˜ao Graca, and Fernando
|
| 1269 |
+
Pereira. 2007. Frustratingly hard domain adaptation
|
| 1270 |
+
for dependency parsing. In _Proceedings_ _of_ _the_
|
| 1271 |
+
_CoNLL_ _Shared_ _Task_ _Session_ _of_ _EMNLP-CoNLL_
|
| 1272 |
+
_2007_ .
|
| 1273 |
+
|
| 1274 |
+
|
| 1275 |
+
Jason Eisner. 2000. Bilexical grammars and their
|
| 1276 |
+
cubic-time parsing algorithms. In _Advances_ _in_
|
| 1277 |
+
_Probabilistic and Other Parsing Technologies_, pages
|
| 1278 |
+
29–62.
|
| 1279 |
+
|
| 1280 |
+
|
| 1281 |
+
Daniel Flannery and Shinsuke Mori. 2015. Combining
|
| 1282 |
+
active learning and partial annotation for domain
|
| 1283 |
+
adaptation of a japanese dependency parser. In
|
| 1284 |
+
_Proceedings of the 14th International Conference on_
|
| 1285 |
+
_Parsing Technologies_, pages 11–19.
|
| 1286 |
+
|
| 1287 |
+
|
| 1288 |
+
Daniel Flannery, Yusuke Miayo, Graham Neubig, and
|
| 1289 |
+
Shinsuke Mori. 2011. Training dependency parsers
|
| 1290 |
+
from partially annotated corpora. In _Proceedings of_
|
| 1291 |
+
_IJCNLP_, pages 776–784.
|
| 1292 |
+
|
| 1293 |
+
|
| 1294 |
+
Jennifer Foster, Ozlem Cetinoglu, Joachim Wagner,
|
| 1295 |
+
Joseph Le Roux, Joakim Nivre, Deirdre Hogan, and
|
| 1296 |
+
Josef van Genabith. 2011. From news to comment:
|
| 1297 |
+
Resources and benchmarks for parsing the language
|
| 1298 |
+
of web 2.0. In _Proceedings of IJCNLP_, pages 893–
|
| 1299 |
+
901.
|
| 1300 |
+
|
| 1301 |
+
|
| 1302 |
+
Jiang Guo, Wanxiang Che, David Yarowsky, Haifeng
|
| 1303 |
+
Wang, and Ting Liu. 2015. Cross-lingual dependency parsing based on distributed representations.
|
| 1304 |
+
In _Proceedings of ACL_, pages 1234–1244.
|
| 1305 |
+
|
| 1306 |
+
|
| 1307 |
+
Rebecca Hwa. 1999. Supervised grammar induction
|
| 1308 |
+
using training data with limited constituent information. In _Proceedings of ACL_, pages 73–79.
|
| 1309 |
+
|
| 1310 |
+
|
| 1311 |
+
Rebecca Hwa. 2004. Sample selection for statistical
|
| 1312 |
+
parsing. _Computional Linguistics_, 30(3):253–276.
|
| 1313 |
+
|
| 1314 |
+
|
| 1315 |
+
|
| 1316 |
+
Lingpeng Kong, Nathan Schneider, Swabha
|
| 1317 |
+
Swayamdipta, Archna Bhatia, Chris Dyer, and
|
| 1318 |
+
Noah A. Smith. 2014. A dependency parser
|
| 1319 |
+
for tweets. In _Proceedings_ _of_ _EMNLP_, pages
|
| 1320 |
+
1001–1012.
|
| 1321 |
+
|
| 1322 |
+
|
| 1323 |
+
Terry Koo and Michael Collins. 2010. Efficient thirdorder dependency parsers. In _ACL_, pages 1–11.
|
| 1324 |
+
|
| 1325 |
+
|
| 1326 |
+
Terry Koo, Amir Globerson, Xavier Carreras, and
|
| 1327 |
+
Michael Collins. 2007. Structured prediction
|
| 1328 |
+
models via the matrix-tree theorem. In _Proceedings_
|
| 1329 |
+
_of EMNLP-CoNLL_, pages 141–150.
|
| 1330 |
+
|
| 1331 |
+
|
| 1332 |
+
David D. Lewis and William A. Gale. 1994. A
|
| 1333 |
+
sequential algorithm for training text classifiers. In
|
| 1334 |
+
_Proceedings_ _of_ _the_ _17th_ _Annual_ _International_ _ACM_
|
| 1335 |
+
_SIGIR Conference on Research and Development in_
|
| 1336 |
+
_Information Retrieval_, pages 3–12.
|
| 1337 |
+
|
| 1338 |
+
|
| 1339 |
+
Shoushan Li, Guodong Zhou, and Chu-Ren Huang.
|
| 1340 |
+
2012. Active learning for Chinese word segmentation. In _Proceedings_ _of_ _COLING_ _2012:_ _Posters_,
|
| 1341 |
+
pages 683–692.
|
| 1342 |
+
|
| 1343 |
+
|
| 1344 |
+
Zhenghua Li, Min Zhang, and Wenliang Chen. 2014.
|
| 1345 |
+
Soft cross-lingual syntax projection for dependency
|
| 1346 |
+
parsing. In _COLING_, pages 783–793.
|
| 1347 |
+
|
| 1348 |
+
|
| 1349 |
+
Teresa Lynn, Jennifer Foster, Mark Dras, and Elaine U1 [´]
|
| 1350 |
+
Dhonnchadha. 2012. Active learning and the irish
|
| 1351 |
+
treebank. In _Proceedings of ALTA_ .
|
| 1352 |
+
|
| 1353 |
+
|
| 1354 |
+
Xuezhe Ma and Fei Xia. 2014. Unsupervised
|
| 1355 |
+
dependency parsing with transferring distribution
|
| 1356 |
+
via parallel guidance and entropy regularization. In
|
| 1357 |
+
_Proceedings of ACL_, pages 1337–1348.
|
| 1358 |
+
|
| 1359 |
+
|
| 1360 |
+
Xuezhe Ma and Hai Zhao. 2015. Probabilistic models for high-order projective dependency parsing.
|
| 1361 |
+
_Arxiv_, abs/1502.04174.
|
| 1362 |
+
|
| 1363 |
+
|
| 1364 |
+
Saeed Majidi and Gregory Crane. 2013. Active
|
| 1365 |
+
learning for dependency parsing by a committee of
|
| 1366 |
+
parsers. In _Proceedings of IWPT_, pages 98–105.
|
| 1367 |
+
|
| 1368 |
+
|
| 1369 |
+
Diego Marcheggiani and Thierry Arti`eres. 2014.
|
| 1370 |
+
An experimental comparison of active learning
|
| 1371 |
+
strategies for partially labeled sequences. In
|
| 1372 |
+
_Proceedings of EMNLP_, pages 898–906.
|
| 1373 |
+
|
| 1374 |
+
|
| 1375 |
+
Andrew McCallum and Kamal Nigam. 1998.
|
| 1376 |
+
Employing EM and pool-based active learning for
|
| 1377 |
+
text classification. In _Proceedings_ _of_ _ICML_, pages
|
| 1378 |
+
350–358.
|
| 1379 |
+
|
| 1380 |
+
|
| 1381 |
+
Ryan McDonald and Fernando Pereira. 2006.
|
| 1382 |
+
Online learning of approximate dependency parsing
|
| 1383 |
+
algorithms. In _Proceedings of EACL_, pages 81–88.
|
| 1384 |
+
|
| 1385 |
+
|
| 1386 |
+
Ryan McDonald and Giorgio Satta. 2007. On the complexity of non-projective data-driven dependency
|
| 1387 |
+
parsing. In _Proceedings_ _of_ _the_ _Tenth_ _International_
|
| 1388 |
+
_Conference_ _on_ _Parsing_ _Technologies_, pages 121–
|
| 1389 |
+
132.
|
| 1390 |
+
|
| 1391 |
+
|
| 1392 |
+
|
| 1393 |
+
353
|
| 1394 |
+
|
| 1395 |
+
|
| 1396 |
+
Avihai Mejer and Koby Crammer. 2012. Training
|
| 1397 |
+
dependency parser using light feedback. In
|
| 1398 |
+
_Proceedings of NAACL_ .
|
| 1399 |
+
|
| 1400 |
+
|
| 1401 |
+
Jason Mielens, Liang Sun, and Jason Baldridge. 2015.
|
| 1402 |
+
Parse imputation for dependency annotations. In
|
| 1403 |
+
_Proceedings of ACL-IJCNLP_, pages 1385–1394.
|
| 1404 |
+
|
| 1405 |
+
|
| 1406 |
+
Seyed Abolghasem Mirroshandel and Alexis Nasr.
|
| 1407 |
+
2011. Active learning for dependency parsing
|
| 1408 |
+
using partially annotated sentences. In _Proceedings_
|
| 1409 |
+
_of_ _the_ _12th_ _International_ _Conference_ _on_ _Parsing_
|
| 1410 |
+
_Technologies_, pages 140–149.
|
| 1411 |
+
|
| 1412 |
+
|
| 1413 |
+
Fredrik Olsson. 2009. A literature survey of active
|
| 1414 |
+
machine learning in the context of natural language
|
| 1415 |
+
processing. Technical report, Swedish Institute of
|
| 1416 |
+
Computer Science.
|
| 1417 |
+
|
| 1418 |
+
|
| 1419 |
+
Fernando Pereira and Yves Schabes. 1992. Insideoutside reestimation from partially bracketed corpora. In _Proceedings_ _of_ _the_ _Workshop_ _on_ _Speech_
|
| 1420 |
+
_and Natural Language (HLT)_, pages 122–127.
|
| 1421 |
+
|
| 1422 |
+
|
| 1423 |
+
Slav Petrov and Ryan McDonald. 2012. Overview of
|
| 1424 |
+
the 2012 shared task on parsing the web. In _Notes_
|
| 1425 |
+
_of the First Workshop on Syntactic Analysis of Non-_
|
| 1426 |
+
_Canonical Language (SANCL)_ .
|
| 1427 |
+
|
| 1428 |
+
|
| 1429 |
+
Mohammad Sadegh Rasooli and Michael Collins.
|
| 1430 |
+
2015. Density-driven cross-lingual transfer of
|
| 1431 |
+
dependency parsers. In _Proceedings_ _of_ _EMNLP_,
|
| 1432 |
+
pages 328–338.
|
| 1433 |
+
|
| 1434 |
+
|
| 1435 |
+
Stefan Riezler, Tracy H. King, Ronald M. Kaplan,
|
| 1436 |
+
Richard Crouch, John T. III Maxwell, and Mark
|
| 1437 |
+
Johnson. 2002. Parsing the wall street journal using
|
| 1438 |
+
a lexical-functional grammar and discriminative
|
| 1439 |
+
estimation techniques. In _Proceedings_ _of_ _40th_ _An-_
|
| 1440 |
+
_nual_ _Meeting_ _of_ _the_ _Association_ _for_ _Computational_
|
| 1441 |
+
_Linguistics_, pages 271–278.
|
| 1442 |
+
|
| 1443 |
+
|
| 1444 |
+
Manabu Sassano and Sadao Kurohashi. 2010. Using
|
| 1445 |
+
smaller constituents rather than sentences in active
|
| 1446 |
+
learning for japanese dependency parsing. In
|
| 1447 |
+
_Proceedings of ACL_, pages 356–365.
|
| 1448 |
+
|
| 1449 |
+
|
| 1450 |
+
Burr Settles and Mark Craven. 2008. An analysis
|
| 1451 |
+
of active learning strategies for sequence labeling
|
| 1452 |
+
tasks. In _Proceedings of EMNLP_, pages 1070–1079.
|
| 1453 |
+
|
| 1454 |
+
|
| 1455 |
+
David A. Smith and Noah A. Smith. 2007.
|
| 1456 |
+
Probabilistic models of nonprojective dependency
|
| 1457 |
+
trees. In _Proceedings_ _of_ _EMNLP-CoNLL_, pages
|
| 1458 |
+
132–140.
|
| 1459 |
+
|
| 1460 |
+
|
| 1461 |
+
Oscar T¨ackstr¨om, Ryan McDonald, and Joakim Nivre.
|
| 1462 |
+
2013. Target language adaptation of discriminative
|
| 1463 |
+
transfer parsers. In _Proceedings_ _of_ _NAACL_, pages
|
| 1464 |
+
1061–1071.
|
| 1465 |
+
|
| 1466 |
+
|
| 1467 |
+
Min Tang, Xiaoqiang Luo, and Salim Roukos. 2002.
|
| 1468 |
+
Active learning for statistical natural language
|
| 1469 |
+
parsing. In _Proceedings of ACL_, pages 120–127.
|
| 1470 |
+
|
| 1471 |
+
|
| 1472 |
+
|
| 1473 |
+
Yuta Tsuboi, Hisashi Kashima, Hiroki Oda, Shinsuke
|
| 1474 |
+
Mori, and Yuji Matsumoto. 2008. Training conditional random fields using incomplete annotations.
|
| 1475 |
+
In _Proceedings of COLING_, pages 897–904.
|
| 1476 |
+
|
| 1477 |
+
|
| 1478 |
+
William Yang Wang, Lingpeng Kong, Kathryn
|
| 1479 |
+
Mazaitis, and William W Cohen. 2014. Dependency parsing for weibo: An efficient probabilistic
|
| 1480 |
+
logic programming approach. In _Proceedings_ _of_
|
| 1481 |
+
_EMNLP_, pages 1152–1158.
|
| 1482 |
+
|
| 1483 |
+
|
| 1484 |
+
Yue Zhang and Joakim Nivre. 2011. Transition-based
|
| 1485 |
+
dependency parsing with rich non-local features. In
|
| 1486 |
+
_Proceedings of ACL_, pages 188–193.
|
| 1487 |
+
|
| 1488 |
+
|
| 1489 |
+
|
| 1490 |
+
354
|
| 1491 |
+
|
| 1492 |
+
|
|
@@ -0,0 +1,798 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 3 |
+
authors:
|
| 4 |
+
- "Gosse Bouma"
|
| 5 |
+
- "Gertjan van Noord"
|
| 6 |
+
year: 2017
|
| 7 |
+
venue: "UDW 2017"
|
| 8 |
+
url: "https://aclanthology.org/W17-0403/"
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# **Increasing return on annotation investment: the automatic construction of** **a Universal Dependency treebank for Dutch**
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
**Gosse Bouma**
|
| 16 |
+
Centre for Language and Cognition
|
| 17 |
+
University of Groningen
|
| 18 |
+
```
|
| 19 |
+
g.bouma@rug.nl
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
**Abstract**
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
We present a method for automatically
|
| 27 |
+
converting the Dutch Lassy Small treebank, a phrasal dependency treebank, to
|
| 28 |
+
|
| 29 |
+
UD. All of the information required to
|
| 30 |
+
produce accurate UD annotation appears
|
| 31 |
+
to be available in the underlying annotation. However, we also note that the close
|
| 32 |
+
connection between POS-tags and dependency labels that is present in UD is missing in the Lassy treebanks. As a consequence, annotation decisions in the Dutch
|
| 33 |
+
data for such phenomena as nominalization and clausal complements of prepositions seem to differ to some extent from
|
| 34 |
+
comparable data in English and German.
|
| 35 |
+
|
| 36 |
+
Because the conversion is automatic, we
|
| 37 |
+
can now also compare three state-of-theart dependency parsers trained on UD
|
| 38 |
+
Lassy Small with Alpino, a hybrid Dutch
|
| 39 |
+
parser which produces output that is compatible with the original Lassy annotations.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
**1** **Introduction**
|
| 43 |
+
|
| 44 |
+
We present a method for automatically converting Dutch treebanks annotated according to the
|
| 45 |
+
guidelines of the Lassy project (van Noord et al.,
|
| 46 |
+
2013) to Universal Dependencies. The Lassy annotation guidelines combine elements from phrase
|
| 47 |
+
structure treebanks (such as phrasal nodes and use
|
| 48 |
+
of co-indexed nodes for encoding fronted WHconstituents) with elements from dependency treebanks (such as dependency labels, discontinuous
|
| 49 |
+
constituents and crossing branches), similar to the
|
| 50 |
+
Tiger (Brants et al., 2002) and Negra (Skut et
|
| 51 |
+
al., 1998) corpora for German. The conversion is
|
| 52 |
+
done by means of an automatic conversion script. [1]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
1
|
| 56 |
+
Available at `https://github.com/gossebouma/`
|
| 57 |
+
```
|
| 58 |
+
lassy2ud
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
**Gertjan van Noord**
|
| 64 |
+
Centre for Language and Cognition
|
| 65 |
+
University of Groningen
|
| 66 |
+
```
|
| 67 |
+
g.j.m.van.noord@rug.nl
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
There are two advantages to such a procedure: the
|
| 72 |
+
original annotation is of high quality as it is the result of careful manual checking and correction of
|
| 73 |
+
automatically produced parser output. Using this
|
| 74 |
+
investment as basis for the UD annotation as well
|
| 75 |
+
means that this investment can also serve as basis for novel annotation projects. Second, an automatic conversion script allows any material that
|
| 76 |
+
has been annotated according to the guidelines of
|
| 77 |
+
the Lassy project to be converted to UD, and thus
|
| 78 |
+
also can be used to convert treebanks outside the
|
| 79 |
+
|
| 80 |
+
UD corpus and to make existing tools compliant
|
| 81 |
+
with UD.
|
| 82 |
+
There are two main challenges for the conversion: the Lassy treebanks contain dependency relations between phrasal nodes, whereas UD uses
|
| 83 |
+
lexical dependency relations only. Second, the
|
| 84 |
+
Lassy Treebanks use a more traditional notion
|
| 85 |
+
of ’ _head_ ’ whereas UD gives precedence to content words over function words. As a consequence, converting from Lassy to UD requires
|
| 86 |
+
’ _head-switching_ ’ in a number of cases. In section 2 we outline the main principles of the conversion process.
|
| 87 |
+
The conversion has been used to produce UD
|
| 88 |
+
Dutch Lassy Small (v1.3 and 2.0). Lassy Small
|
| 89 |
+
is a manually verified 1 million word treebank for
|
| 90 |
+
Dutch, consisting of mixed sources. For reasons
|
| 91 |
+
of intellectual property rights, only the Wikipedia
|
| 92 |
+
part (7.641 sentences, 101.841 tokens) is included
|
| 93 |
+
in the UD corpus.
|
| 94 |
+
One of the goals of the UD enterprise is to
|
| 95 |
+
ensure similar annotations for similar constructions across languages. While the current state
|
| 96 |
+
of the general and language specific annotation
|
| 97 |
+
guidelines suggest that this should be possible for
|
| 98 |
+
the most common syntactic configurations, it is
|
| 99 |
+
also true that there still appears to be variation
|
| 100 |
+
in the way less frequent constructions are annotated. This is particularly true if such constructions challenge the UD annotation principles. We
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
19
|
| 105 |
+
|
| 106 |
+
_Proceedings of the NoDaLiDa 2017 Workshop on Universal Dependencies (UDW 2017)_, pages 19–26,
|
| 107 |
+
Gothenburg, Sweden, 22 May 2017.
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
De
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
ziekte
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
N:obj1
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
muggen
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
overgebracht
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
P:hd
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
door
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
Figure 1: Phrasal annotation and the induced dependency annotation for _de_ _ziekte_ _wordt_ _overgebracht_
|
| 143 |
+
_door muggen_ ( _the disease is transmitted by flies_ ). External head projection paths are indicated by dashed
|
| 144 |
+
arrows, and internal heads are indicated by solid arrows.
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
illustrate this in section 3 by comparing the analysis in Dutch, German, and English, of verbal nominalizations and clausal arguments of prepositions.
|
| 149 |
+
In section 4, we compare the performance of
|
| 150 |
+
three dependency parsers trained on UD Lassy
|
| 151 |
+
Small with Alpino (van Noord, 2006), a rule-based
|
| 152 |
+
grammar that produces output compatible with the
|
| 153 |
+
original Lassy treebank. The comparison crucially
|
| 154 |
+
relies on the fact that we can use the conversion
|
| 155 |
+
script to convert Alpino output to UD.
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
**2** **Conversion Process**
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
Conversion of a manually verified treebank to UD
|
| 162 |
+
is possible if the underlying annotation contains
|
| 163 |
+
the information that is required to do a mapping
|
| 164 |
+
from the original annotation to POS-tags and bilexical dependencies that is conformant with the
|
| 165 |
+
annotation guidelines of the UD project. By doing an automatic conversion, we follow a strategy
|
| 166 |
+
that has been used to create many of the other UD
|
| 167 |
+
treebanks as well (Zeman et al., 2014; Johannsen
|
| 168 |
+
et al., 2015; Øvrelid and Hohle, 2016; Ahrenberg,
|
| 169 |
+
2015; Lynn and Foster, 2016).
|
| 170 |
+
Conversion of Lassy to UD POS-tags can be
|
| 171 |
+
achieved by means of a simple set of case statements that refer to the original POS-tag and a small
|
| 172 |
+
set of morphological feature values. The only case
|
| 173 |
+
that is more involved is the distinction between
|
| 174 |
+
verbs and auxiliaries. This distinction is missing
|
| 175 |
+
in the POS-tags and morphological features of the
|
| 176 |
+
Lassy treebanks, but can be reconstructed using
|
| 177 |
+
the lemma and valency of the verb (i.e., a limited set of verbs that select for only a subject and a
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
non-finite verbal complement or predicative complement are considered auxiliaries).
|
| 182 |
+
Conversion of the phrasal syntactic annotation
|
| 183 |
+
to dependency relations is driven by the observation that in a dependency graph each word (except the root) is linked via a labeled arc to exactly one lexical head. [2] Given a sentence annotated according to Lassy guidelines, we can use
|
| 184 |
+
the phrasal syntactic annotation to predict for each
|
| 185 |
+
token in the input (except the root) its lexical content head and dependency label. Figure 1 gives an
|
| 186 |
+
overview of the most important Lassy dependency
|
| 187 |
+
labels and their UD counterparts.
|
| 188 |
+
The rules for finding the content head are defined using two auxiliary notions: the _’external_
|
| 189 |
+
_head_ _projection’_ of a word or phrase is the node
|
| 190 |
+
that contains the content head for the node. The
|
| 191 |
+
_’internal head’_ of a node or phrase is the node that
|
| 192 |
+
is the content head of the phrase.
|
| 193 |
+
In regular configurations, the external head projection of a non-head word (i.e. a word labeled
|
| 194 |
+
_su,_ _obj1,_ _det,_ _mod,_ _app,_ _etc._ ) is its mother node,
|
| 195 |
+
and the internal head of this mother node is the
|
| 196 |
+
node with dependency label _hd_ . This is shown
|
| 197 |
+
for example in Figure 1, where the determiner _De_
|
| 198 |
+
has the NP as its external head projection. The
|
| 199 |
+
_hd_ node within this NP is the content head of this
|
| 200 |
+
phrase, and thus the content head of the determiner. The external head projection of the _hd_ word
|
| 201 |
+
itself, _ziekte_, is not the parent but the grandparent
|
| 202 |
+
node, SMAIN. Thus, the content head of _ziekte_ is
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
2
|
| 206 |
+
Currently, no secondary edges are used in the UD Lassy
|
| 207 |
+
Small.
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
20
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
**Lassy** **UD** **Interpretation**
|
| 215 |
+
|
| 216 |
+
su subj _|_ csubj _|_ nsubj:pass _|_ csubj:pass various kinds of subjects
|
| 217 |
+
obj1 obj _|_ obl _|_ nmod objects of verbs and prepositions
|
| 218 |
+
obj2 iobj indirect objects
|
| 219 |
+
mod obl _|_ advmod _|_ advcl _|_ nmod _|_ amod various kinds of modifiers
|
| 220 |
+
det det _|_ nummod determiners and numbers
|
| 221 |
+
app appos appositions
|
| 222 |
+
cmp mark complementizers
|
| 223 |
+
crd cc conjunctions
|
| 224 |
+
sup expl expletives
|
| 225 |
+
pobj1 expl expletives
|
| 226 |
+
hd heads of phrases: check label of mother node
|
| 227 |
+
... ... ...
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
Table 1: Overview of re-labeling rules
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
the internal head of the SMAIN. In this case, as we
|
| 235 |
+
explain below, this is not the _hd_ daughter, but the
|
| 236 |
+
content head of the daughter labeled with dependency label _vc_ ( _verbal complement_ ).
|
| 237 |
+
Head-switching cases are exceptions to the general rule. The noun _muggen_, for instance, has a
|
| 238 |
+
prepositional head as sister. As UD specifies that
|
| 239 |
+
prepositions are dependent on the noun in these
|
| 240 |
+
cases, we have to specify that the external head
|
| 241 |
+
projection of the _obj1_ child inside a PP is the parent of the PP. For the same reason, the external
|
| 242 |
+
head projection of the preposition is not the grandparent, but the sister _obj1_ node. The same applies
|
| 243 |
+
to auxiliaries. As they are dependents of the main
|
| 244 |
+
verb, their external head projection is the sister
|
| 245 |
+
node labeled _vc_ (or _predc_ in copula constructions).
|
| 246 |
+
Finally, as the main verb _overgebracht_ functions
|
| 247 |
+
as content head of both the PPART and SMAIN, its
|
| 248 |
+
external head projection should be the parent of
|
| 249 |
+
|
| 250 |
+
SMAIN. As SMAIN is the root of the phrasal tree,
|
| 251 |
+
we conclude that _overgebracht_ must be the root
|
| 252 |
+
node.
|
| 253 |
+
The analysis of WH-questions and relative
|
| 254 |
+
clauses in the Lassy treebank uses a co-indexing
|
| 255 |
+
scheme between the fronted element and an empty
|
| 256 |
+
node that is comparable to a ’trace’ in transformational approaches. The content head for such coindexed fronted elements can be found by starting
|
| 257 |
+
the external head projection identification from the
|
| 258 |
+
co-indexed empty ’trace’ node.
|
| 259 |
+
The identification of the correct dependency label for a bi-lexical dependency uses a mapping
|
| 260 |
+
from the original Lassy dependency labels to UD.
|
| 261 |
+
The most important cases are listed in Table 1.
|
| 262 |
+
We have used the conversion script to create UD
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
Lassy Small (v1.3 and 2.0). This corpus consists
|
| 267 |
+
of the Wikipedia section of the manually verified
|
| 268 |
+
part of the Lassy corpus.
|
| 269 |
+
One aspect of the corpus that is not according
|
| 270 |
+
to UD is the annotation of interpunction. As all
|
| 271 |
+
punctuation marks are attached to the root node in
|
| 272 |
+
the original treebank, locating the right attachment
|
| 273 |
+
site according to UD rules is challenging. So far,
|
| 274 |
+
we have not been able to come up with an errorfree solution.
|
| 275 |
+
By way of evaluation of the result, we manually
|
| 276 |
+
verified the annotation for 50 arbitrarily selected
|
| 277 |
+
sentences from the corpus (v 2.0). [3] We checked
|
| 278 |
+
whether the annotation was in accordance with
|
| 279 |
+
the UD guidelines. In cases where we were not
|
| 280 |
+
sure about the correct annotation (typically attachment decisions), we compared the annotation with
|
| 281 |
+
the original Lassy treebank annotation. Ignoring
|
| 282 |
+
punctuation issues, we observed 4 errors: a passive subject labeled as regular subject, an _amod_
|
| 283 |
+
that has to be _advmod_, a number marked as _det_
|
| 284 |
+
(should be _nummod_ ), and an error resulting from
|
| 285 |
+
head-switching: the auxiliary _bekend_ _staan_ ( _be_
|
| 286 |
+
_known as_ ) consists of a vebal head and a particle.
|
| 287 |
+
The head is marked as _cop_, but as a consequence
|
| 288 |
+
of head-switching, the particle has been reattached
|
| 289 |
+
to the predicative head. This is clearly wrong, although the right annotation is not obvious: either
|
| 290 |
+
this verb should not be considered an auxiliary,
|
| 291 |
+
or else we must allow for particles to be dependents of auxiliaries. In addition to these errors we
|
| 292 |
+
also found 6 dubious decisions (unclear distinctions between _amod_ and _advmod_ (4 _×_ ), labeling a
|
| 293 |
+
|
| 294 |
+
3All sentences from the training section containing the adverb _ook_ ( _also_ ).
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
21
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
predicative phrase as _xcomp_, and a case of an incomplete word (part of a coordination) marked as
|
| 302 |
+
|
| 303 |
+
X (in accordance with the original annotation but
|
| 304 |
+
not the best option according to UD),
|
| 305 |
+
We also tried to compare Lassy Small with the
|
| 306 |
+
|
| 307 |
+
UD Dutch corpus that has been included in UD
|
| 308 |
+
since v1.2. The latter corpus is a conversion of
|
| 309 |
+
the Alpino treebank (van der Beek et al., 2002).
|
| 310 |
+
It was used in the CONLL X shared task on dependency parsing (Buchholz and Marsi, 2006) and
|
| 311 |
+
converted at that point to CONLL format. The UD
|
| 312 |
+
version is based on a conversion to HamleDT to
|
| 313 |
+
|
| 314 |
+
UD (Zeman et al., 2014). The various conversion
|
| 315 |
+
steps have lead to loss of information, [4] and apparent mistakes, [5] and the quality of this corpus
|
| 316 |
+
in general seems to be lower than the UD Lassy
|
| 317 |
+
Small corpus. A more systematic comparison will
|
| 318 |
+
be possible once we have been able to reconstruct
|
| 319 |
+
the original sources of the material included in the
|
| 320 |
+
Alpino treebank fragment used for CONLL. At that
|
| 321 |
+
point, it will also be possible to create an improved
|
| 322 |
+
version of the data using the current conversion
|
| 323 |
+
script.
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
**3** **Cross-lingual comparison**
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
The inventory of dependency labels in UD is a
|
| 330 |
+
mixed functional-structural system, which distinguishes oblique arguments, for instance, on the basis of their part-of-speech, i.e. a PP dependent is
|
| 331 |
+
labeled _obl_, a dependent clause _advcl_, and an adverbial _advmod_ . Also, attachment to predicates is
|
| 332 |
+
differentiated from attachment to nominals.
|
| 333 |
+
The original Lassy Small treebank has both
|
| 334 |
+
phrasal categories and dependency labels, and
|
| 335 |
+
seems to make a more clear-cut distinction between structural and dependency information. For
|
| 336 |
+
instance, a single _mod_ -relation is used for adjuncts
|
| 337 |
+
in the verbal domain (PPs, adverbs and adverbial
|
| 338 |
+
phrases, as well as clausal adjuncts) as well as in
|
| 339 |
+
the nominal domain. The relevant structural distinctions are not lost, as phrasal nodes can be differentiated by the category and lexical items by
|
| 340 |
+
their POS.
|
| 341 |
+
The mixed functional-structural approach of
|
| 342 |
+
|
| 343 |
+
UD leads to surprising outcomes in cases where
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
4for instance, all heads and dependents of compound relations have been assigned the POS tag X, ignoring the original
|
| 347 |
+
assignment of POS tags
|
| 348 |
+
5e.g. in 13.050 sentences, there are 353 cases where a
|
| 349 |
+
verb or (proper) noun functions as dependent of the _case_ relation, and 953 cases where an auxiliary has an _nsubj_ dependent
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
The SELF assure of Russian support
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
Figure 2: Nominalization in UD-Dutch Lassy
|
| 357 |
+
Small
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
structural relations do not align with the predicate/nominal distinction. We discuss two such situations below.
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
**3.1** **Nominalizations**
|
| 364 |
+
|
| 365 |
+
Nominalizations are constructions in which a verb
|
| 366 |
+
functions as a noun. Nominalizations can be
|
| 367 |
+
formed by means of derivational morphology, but
|
| 368 |
+
there are also many cases in which there is no
|
| 369 |
+
(overt) morphological suffix to mark the nominal
|
| 370 |
+
status of the verb (Chomsky, 1968). Interestingly,
|
| 371 |
+
in nominalizations we see both dependents typically associated with the verbal domain as well as
|
| 372 |
+
dependents associated with the nominal domain,
|
| 373 |
+
as in example (2). Here, a verb clearly heads
|
| 374 |
+
a nominal phrase, as it is introduced by a determiner. Yet, at the same time, it selects an inherent
|
| 375 |
+
reflexive pronoun, something that is not possible
|
| 376 |
+
for nouns. The dependency annotation for this example in Figure 2 also shows that the PP phrase
|
| 377 |
+
is labeled _nmod_, giving preference to the nominal interpretation of _verzekeren_ . Note that the the
|
| 378 |
+
parallelism between (1) and (2) suggests that it
|
| 379 |
+
could perhaps also have been labeled _obl_ . In fact,
|
| 380 |
+
the NomBank corpus (Meyers et al., 2004) adopts
|
| 381 |
+
the rule that the same semantic role labels should
|
| 382 |
+
be used as much as possible for verbs and nominalised versions of these verbs.
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
(1) Hij verzekert zich van Russische steun
|
| 386 |
+
He assures himself of Russian support
|
| 387 |
+
|
| 388 |
+
(2) het zich verzekeren van Russische steun
|
| 389 |
+
the self assuring of Russian support
|
| 390 |
+
was het doel
|
| 391 |
+
was the goal
|
| 392 |
+
’The assuring oneself of Russian support
|
| 393 |
+
was the goal’
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
The presence of such mixed nominal/verbal
|
| 397 |
+
configurations differs strongly between treebanks.
|
| 398 |
+
In Table 2 we give counts for the number of verbs
|
| 399 |
+
that have a _det_ dependent, and for verbs that have
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
22
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
an incoming dependency label _nsubj_ or _obj_ in the
|
| 419 |
+
Dutch Lassy Small and German and English UD
|
| 420 |
+
treebanks (v2.0). [6] In all cases, we are dealing
|
| 421 |
+
with a verb that has clearly nominal properties:
|
| 422 |
+
it has a determiner as dependent, or functions as
|
| 423 |
+
subject or object of a predicate. The Dutch treebank has the highest number of nominalizations. It
|
| 424 |
+
should also be noted that the (14) cases in English
|
| 425 |
+
where a verb has a _det_ dependent include bona fide
|
| 426 |
+
cases like _the_ _following_ and _(please_ _use)_ _the_ _at-_
|
| 427 |
+
_tached_, but also several apparent annotation errors.
|
| 428 |
+
The low number of nominalizations for English is
|
| 429 |
+
unexpected, as nominalizations involving gerunds
|
| 430 |
+
appear to be a common phenomenon in English.
|
| 431 |
+
|
| 432 |
+
|
| 433 |
+
NL DE EN
|
| 434 |
+
Query (101K) (277K) (229K)
|
| 435 |
+
|
| 436 |
+
`VERB` `>det` `_` 112.9 22.0 6.1
|
| 437 |
+
`VERB` `<nsubj` `_` 62.4 1.4 5.2
|
| 438 |
+
`VERB` `<obj` `_` 21.8 2.2 8.3
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
Table 2: Frequency per 100.000 tokens for verbal
|
| 442 |
+
heads with nominal properties in three UD treebanks.
|
| 443 |
+
|
| 444 |
+
|
| 445 |
+
**3.2** **Clausal arguments of prepositions**
|
| 446 |
+
|
| 447 |
+
Another situation where the distinction between
|
| 448 |
+
the predicative and nominal domain gives surprising results are PPs containing a verbal rather than a
|
| 449 |
+
nominal content head. Some of these are nominalizations, and were already discussed above. However, there are also genuine clausal cases as in Fig
|
| 450 |
+
|3. case|Col2|Col3|
|
| 451 |
+
|---|---|---|
|
| 452 |
+
|root<br>case<br>mark<br>nsubj<br>obj|root<br>case<br>mark<br>nsubj<br>obj|root<br>case<br>mark<br>nsubj<br>obj|
|
| 453 |
+
|root<br>case<br>mark<br>nsubj<br>obj|root|root|
|
| 454 |
+
|root<br>case<br>mark<br>nsubj<br>obj|||
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
zonder dat nationalisme de kop opsteekt
|
| 459 |
+
without that nationalism the head raises
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
Figure 3: Prepositional phrases containing a
|
| 463 |
+
clausal argument: _’without nationalism raising its_
|
| 464 |
+
_head’_
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
Again, we compared counts for such phenomena in the Dutch, German, and English UD treebanks. Table 3 shows that verbs with a preposition as dependent or verbs heading a phrase with
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
6All counts in this section have been collected using the
|
| 471 |
+
`dep` `search` facility of `bionlp-www.utu.fi` .
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
label _obl_ (i.e., verbs heading an oblique dependent of a predicate) do hardly occur in English, but
|
| 476 |
+
do occur with some frequency in Dutch and German. However, closer inspection of the German
|
| 477 |
+
data suggests that these are dominated by annotation errors of the form _nach_ _Dortmund_ _gefahren_
|
| 478 |
+
_(driven to Dortmund)_, where a regular _obl_ dependent of a verb has been annotated erroneously with
|
| 479 |
+
a _case_ relation between the verb and the preposition. Prepositions are seen as case markers in UD,
|
| 480 |
+
and for that reason should only have dependents
|
| 481 |
+
themselves in exceptional cases. Most of these
|
| 482 |
+
cases are fixed phrases of the form _due_ _to_ or _be-_
|
| 483 |
+
_cause_ _of_ . This is true for the Dutch data and to
|
| 484 |
+
a large extent also for the English data. The German data, however, has a high number of prepositions with dependents that are not labeled _fixed_ .
|
| 485 |
+
This might be another signal of the same annotation error, in that prepositions in the German data
|
| 486 |
+
apparently head regular PPs in many cases.
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
query NL DE EN
|
| 490 |
+
|
| 491 |
+
`VERB` `>case` `ADP` 102.0 105.8 0.4
|
| 492 |
+
`VERB` `<obl` `_` 64.4 0.0 4.8
|
| 493 |
+
`ADP` `>` `_` 357.4 253.4 97.8
|
| 494 |
+
`ADP` `>fixed` `_` 318.8 6.9 30.6
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
Table 3: Frequency per 100.000 tokens for verbs
|
| 498 |
+
with a _case_ dependent and prepositions governing
|
| 499 |
+
a dependent.
|
| 500 |
+
|
| 501 |
+
|
| 502 |
+
We believe that the relatively high number of
|
| 503 |
+
’non-canonical’ configurations in the Dutch Lassy
|
| 504 |
+
Small treebank may well be due to the fact that
|
| 505 |
+
|
| 506 |
+
POS-tagging and syntactic annotation were performed as two independent annotation tasks in the
|
| 507 |
+
original Lassy treebank. As a consequence, in
|
| 508 |
+
both annotation tasks annotators made the decision that seemed most appropriate for that task
|
| 509 |
+
(i.e. choosing the correct POS-tag and syntactic
|
| 510 |
+
annotation, respectively). The English UD treebanks, on the other hand, is a manually verified
|
| 511 |
+
and corrected version of an automatic conversion
|
| 512 |
+
of the Web treebank, where POS-tags have been
|
| 513 |
+
added automatically. The construction of the German treebank was done automatically and is minimally documented. [7] Therefore, we cannot be
|
| 514 |
+
sure whether the differences observed above reflect genuine typological differences or whether
|
| 515 |
+
they are a consequence of the decisions made in
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
7
|
| 519 |
+
```
|
| 520 |
+
https://github.com/UniversalDependencies/
|
| 521 |
+
UD_German
|
| 522 |
+
|
| 523 |
+
```
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
23
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
the underlying annotation and/or of the conversion
|
| 530 |
+
method.
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
**4** **Parsing Experiments**
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
The inclusion of a large number of languages and
|
| 537 |
+
corpora in the UD corpus has led to a growing
|
| 538 |
+
number of parsing toolkits that are language independent and that can be trained and evaluated
|
| 539 |
+
on any of the UD treebanks. In this section, we
|
| 540 |
+
compare state-of-the-art dependency parsers for
|
| 541 |
+
|
| 542 |
+
UD trained on Lassy Small with Alpino, a parser
|
| 543 |
+
based on a hand-written grammar for Dutch.
|
| 544 |
+
Andor et al. (2016) introduce SyntaxNet, an
|
| 545 |
+
open-source implementation of a novel method
|
| 546 |
+
for dependency parsing based on globally normalized neural networks. They also provide a pretrained parser for English, Parsey McParseface.
|
| 547 |
+
On the Penn Treebank, the released model for English (Parsey McParseface) recovers dependencies
|
| 548 |
+
at the word level with over 94% accuracy, beating
|
| 549 |
+
previous state-of-the-art results.
|
| 550 |
+
SyntaxNet has been used to train a parser for a
|
| 551 |
+
large number of corpora in UD (v1.3). ‘Parsey’s
|
| 552 |
+
Cousins’ [8] is a collection of syntactic models
|
| 553 |
+
trained on UD treebanks, for 40 different languages. Per language, more than 70 models have
|
| 554 |
+
been trained, leading to models that are up to 4%
|
| 555 |
+
more accurate than models trained without hyperparameter tuning.
|
| 556 |
+
The easy-first hierarchical LSTM model of
|
| 557 |
+
Kiperwasser and Goldberg (2016) introduces a
|
| 558 |
+
novel method for applying the LSTM framework
|
| 559 |
+
to tree structures that is particularly apt for dependency parsing. Another notable feature is that it
|
| 560 |
+
does not use word embeddings. It achieves stateof-the-art results on dependency parsing for English and Chinese, and can be used to train parsers
|
| 561 |
+
for any language for which a UD treebank is available. [9]
|
| 562 |
+
|
| 563 |
+
‘ParseySaurus’ (Alberti et al., 2017) is a collection of models for UD version 2.0 corpora. It uses
|
| 564 |
+
a variant of SyntaxNet that also includes character
|
| 565 |
+
level embeddings. The model has a labeled attachment accuracy score that is on average 3.5% better
|
| 566 |
+
than the SyntexNet models of Parsey’s cousins.
|
| 567 |
+
Alpino (van Noord, 2006) is a wide-coverage
|
| 568 |
+
parser for Dutch consisting of a carefully developed hand-written unification-based grammar and
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
8
|
| 572 |
+
```
|
| 573 |
+
research.googleblog.com/2016/08/
|
| 574 |
+
meet-parseys-cousins-syntax-for-40.html
|
| 575 |
+
```
|
| 576 |
+
|
| 577 |
+
9https://github.com/elikip/htparser
|
| 578 |
+
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
LAS UAS
|
| 582 |
+
Alpino 84.31 89.22
|
| 583 |
+
Parsey’s Cousins 78.08 81.63
|
| 584 |
+
Easy-first 77.16 81.10
|
| 585 |
+
ParseySaurus 80.53 84.02
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
Table 4: Parse results for UD Dutch Lassy Small
|
| 589 |
+
(v1.3), using standard training (6641 sentences)
|
| 590 |
+
and test set (350 sentences), using CONLL 2007
|
| 591 |
+
evaluation script, not counting punctuation.
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
a maximum entropy disambiguation model. Its
|
| 595 |
+
output is compatible with the original Lassy treebank. Although Alpino is not a dependency parser,
|
| 596 |
+
it can be evaluated on UD Dutch data by converting
|
| 597 |
+
the parser output into UD compatible annotation
|
| 598 |
+
using the same conversion script that was also used
|
| 599 |
+
to convert the original Lassy Small treebank to UD.
|
| 600 |
+
For the experiment, the disambiguation model for
|
| 601 |
+
Alpino was trained only on the training section of
|
| 602 |
+
Lassy Small UD treebank (6641 sentences).
|
| 603 |
+
We compare the accuracy of the Dutch SyntaxNet models as well as a model trained with
|
| 604 |
+
the easy-first LSTM model, with results obtained
|
| 605 |
+
using Alpino. Table 4 gives labeled and unlabeled attachment accuracy scores on the test set
|
| 606 |
+
of the Lassy Small corpus. The scores for Parsey’s
|
| 607 |
+
Cousins are the scores reported in the Google blog
|
| 608 |
+
post. The scores for easy-LSTM were obtained by
|
| 609 |
+
running the code using the default options. The
|
| 610 |
+
scores for ParseySaurus are taken from (Alberti et
|
| 611 |
+
al., 2017).
|
| 612 |
+
Among the dependency parsers trained on the
|
| 613 |
+
treebank data, the ParseySaurus model achieves
|
| 614 |
+
a 2.5-3.0% LAS improvement over the two other
|
| 615 |
+
models. Alpino performs even better, with a 3.8%
|
| 616 |
+
|
| 617 |
+
LAS improvement over the best dependency parser
|
| 618 |
+
model. We can only speculate about the reasons for this difference. The training corpus is
|
| 619 |
+
relatively small, and it might be that the purely
|
| 620 |
+
data-driven approaches would benefit relatively
|
| 621 |
+
strongly from being trained on more data. [10]
|
| 622 |
+
|
| 623 |
+
On the other hand, results can also be improved
|
| 624 |
+
by simply correcting errors in the original data.
|
| 625 |
+
As we pointed out in section 3, one difference between the original Lassy dependency annotation
|
| 626 |
+
and UD is that UD dependency labels are organized
|
| 627 |
+
more strongly in accordance with the POS tag of
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
10However, note that if we use the standard Alpino disambiguation component, trained on a larger, news domain corpus, its accuracy slightly decreases (88.21 UAS).
|
| 631 |
+
|
| 632 |
+
|
| 633 |
+
|
| 634 |
+
24
|
| 635 |
+
|
| 636 |
+
|
| 637 |
+
LAS UAS
|
| 638 |
+
Alpino 84.31 89.22
|
| 639 |
+
with corrected treebank 85.95 89.41
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
Table 5: Parse results for UD Dutch Lassy Small
|
| 643 |
+
(v1.3 with corrections), using standard training
|
| 644 |
+
(6641 sentences) and test set (350 sentences), using CONLL 2007 evaluation script, not counting
|
| 645 |
+
punctuation.
|
| 646 |
+
|
| 647 |
+
|
| 648 |
+
the head and the dependent than the Lassy dependency labels. The relative independence of Lassy
|
| 649 |
+
|
| 650 |
+
POS annotation and syntactic analysis (as well as
|
| 651 |
+
the fact that these were done by different partners
|
| 652 |
+
in the Lassy project), has led to a situation where
|
| 653 |
+
errors in POS annotation have gone largely unnoticed when evaluating parser output. For evaluation on UD treebanks, annotating and predicting
|
| 654 |
+
the correct POS tag is crucial, as it influences the
|
| 655 |
+
choice of the dependency label. Thus, correcting
|
| 656 |
+
|
| 657 |
+
POS tags in the original treebank leads to more
|
| 658 |
+
consistent data in the original treebank as well as
|
| 659 |
+
in the converted UD treebank. If we evaluate the
|
| 660 |
+
Alpino parser on a version of the UD treebank
|
| 661 |
+
based on the corrected underlying Lassy Small
|
| 662 |
+
treebank, we obtain the accuracy scores given in
|
| 663 |
+
table 5. These corrections have been included in
|
| 664 |
+
|
| 665 |
+
UD 2.0 release.
|
| 666 |
+
|
| 667 |
+
|
| 668 |
+
**5** **Conclusions**
|
| 669 |
+
|
| 670 |
+
|
| 671 |
+
Automatic conversion of existing treebanks to UD
|
| 672 |
+
has the advantage that existing annotation efforts
|
| 673 |
+
can be re-used, that treebanks that for some reason
|
| 674 |
+
cannot be included in the UD corpus can be converted easily, and that tools developed for the original annotation can be used to produce UD compliant output as well. We have developed a method
|
| 675 |
+
for converting the Dutch Lassy treebank to UD. It
|
| 676 |
+
has been used to produce UD Dutch Lassy Small,
|
| 677 |
+
included in UD v1.3 and v2.0.
|
| 678 |
+
Although all information required to do the conversion appears to be present in the underlying
|
| 679 |
+
annotation (with the exception of punctuation attachment perhaps), we did notice that there are
|
| 680 |
+
also subtle differences between the Lassy treebank
|
| 681 |
+
annotation and UD annotation guidelines. This
|
| 682 |
+
is particularly clear in cases where structural and
|
| 683 |
+
functional information does not align well, as in
|
| 684 |
+
nominalizations.
|
| 685 |
+
Using our automatic annotation script, we were
|
| 686 |
+
able to compare parsing accuracies for three de
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
pendency parsers and Alpino. Although the results for dependency parsing are encouraging, the
|
| 690 |
+
Alpino parser, based on a hand-written grammar,
|
| 691 |
+
still outperforms these approaches.
|
| 692 |
+
In future work, we would like to expand the UD
|
| 693 |
+
Lassy Small corpus by including more of the material of the original Lassy Small corpus (where
|
| 694 |
+
this is allowed according to IPR). For parser evaluation, it would be interesting to see what the effect
|
| 695 |
+
is of larger training sets on automatically trained
|
| 696 |
+
dependency parsers in particular.
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
**References**
|
| 700 |
+
|
| 701 |
+
Lars Ahrenberg. 2015. Converting an EnglishSwedish parallel treebank to universal dependencies. In _Third_ _International_ _Conference_ _on_ _Depen-_
|
| 702 |
+
_dency Linguistics (DepLing 2015), Uppsala, August_
|
| 703 |
+
_24-26_, pages 10–19. Association for Computational
|
| 704 |
+
Linguistics.
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
Chris Alberti, Daniel Andor, Ivan Bogatyy, Michael
|
| 708 |
+
Collins, Dan Gillick, Lingpeng Kong, Terry Koo,
|
| 709 |
+
Ji Ma, Mark Omernick, Slav Petrov, Chayut
|
| 710 |
+
Thanapirom, Zora Tung, and David Weiss. 2017.
|
| 711 |
+
Syntaxnet models for the CoNLL 2017 shared task.
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
Daniel Andor, Chris Alberti, David Weiss, Aliaksei
|
| 715 |
+
Severyn, Alessandro Presta, Kuzman Ganchev, Slav
|
| 716 |
+
Petrov, and Michael Collins. 2016. Globally normalized transition-based neural networks. In _Pro-_
|
| 717 |
+
_ceedings of the ACL_ .
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
Sabine Brants, Stefanie Dipper, Silvia Hansen, Wolfgang Lezius, and George Smith. 2002. The TIGER
|
| 721 |
+
treebank. In _Proceedings_ _of_ _the_ _workshop_ _on_ _Tree-_
|
| 722 |
+
_banks and Linguistic Theories_, volume 168.
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
Sabine Buchholz and Erwin Marsi. 2006. CoNLL-X
|
| 726 |
+
shared task on multilingual dependency parsing. In
|
| 727 |
+
_Proceedings_ _of_ _the_ _Tenth_ _Conference_ _on_ _Computa-_
|
| 728 |
+
_tional Natural Language Learning_, pages 149–164.
|
| 729 |
+
Association for Computational Linguistics.
|
| 730 |
+
|
| 731 |
+
|
| 732 |
+
Noam Chomsky. 1968. _Remarks_ _on_ _nominalization_ .
|
| 733 |
+
Linguistics Club, Indiana University.
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
Anders Johannsen, H´ector Mart´ınez Alonso, and Barbara Plank. 2015. Universal dependencies for Danish. In _International_ _Workshop_ _on_ _Treebanks_ _and_
|
| 737 |
+
_Linguistic Theories (TLT14)_, page 157.
|
| 738 |
+
|
| 739 |
+
|
| 740 |
+
Eliyahu Kiperwasser and Yoav Goldberg. 2016.
|
| 741 |
+
Easy-first dependency parsing with hierarchical tree
|
| 742 |
+
LSTMs. _Transactions of the ACL_, 4:445–461.
|
| 743 |
+
|
| 744 |
+
|
| 745 |
+
Teresa Lynn and Jennifer Foster. 2016. Universal dependencies for Irish. In _Celtic Language Technology_
|
| 746 |
+
_Workshop_, pages 79–92.
|
| 747 |
+
|
| 748 |
+
|
| 749 |
+
Adam Meyers, Ruth Reeves, Catherine Macleod,
|
| 750 |
+
Rachel Szekely, Veronika Zielinska, Brian Young,
|
| 751 |
+
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
25
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
and Ralph Grishman. 2004. Annotating noun argument structure for NomBank. In _LREC_, volume 4,
|
| 758 |
+
pages 803–806.
|
| 759 |
+
|
| 760 |
+
|
| 761 |
+
Lilja Øvrelid and Petter Hohle. 2016. Universal dependencies for Norwegian. In _Proceedings_ _of_ _the_
|
| 762 |
+
_Tenth_ _International_ _Conference_ _on_ _Language_ _Re-_
|
| 763 |
+
_sources and Evaluation. Portoroˇz, Slovenia_ .
|
| 764 |
+
|
| 765 |
+
|
| 766 |
+
Wojciech Skut, Thorsten Brants, Brigitte Krenn, and
|
| 767 |
+
Hans Uszkoreit. 1998. A linguistically interpreted
|
| 768 |
+
corpus of German newspaper text. _arXiv_ _preprint_
|
| 769 |
+
_cmp-lg/9807008_ .
|
| 770 |
+
|
| 771 |
+
|
| 772 |
+
Leonoor van der Beek, Gosse Bouma, Rob Malouf,
|
| 773 |
+
and Gertjan van Noord. 2002. The Alpino dependency treebank. In _Computational Linguistics in the_
|
| 774 |
+
_Netherlands (CLIN) 2001_, Twente University.
|
| 775 |
+
|
| 776 |
+
|
| 777 |
+
Gertjan van Noord, Gosse Bouma, Frank van Eynde,
|
| 778 |
+
Daniel de Kok, Jelmer van der Linde, Ineke Schuurman, Erik Tjong Kim Sang, and Vincent Vandeghinste. 2013. Large scale syntactic annotation of written Dutch: Lassy. In Peter Spyns and Jan Odijk,
|
| 779 |
+
editors, _Essential Speech and Language Technology_
|
| 780 |
+
_for Dutch: the STEVIN Programme_, pages 147–164.
|
| 781 |
+
Springer.
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
Gertjan van Noord. 2006. At last parsing is now operational. In Piet Mertens, Cedrick Fairon, Anne Dister, and Patrick Watrin, editors, _TALN06. Verbum Ex_
|
| 785 |
+
_Machina._ _Actes_ _de_ _la_ _13e_ _conference_ _sur_ _le_ _traite-_
|
| 786 |
+
_ment automatique des langues naturelles_, pages 20–
|
| 787 |
+
42.
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
Daniel Zeman, Ondˇrej Duˇsek, David Mareˇcek, Martin Popel, Loganathan Ramasamy, Jan Stˇep´anek, [ˇ]
|
| 791 |
+
Zdenˇek Zabokrtsk`y, [ˇ] and Jan Hajiˇc. 2014. HamleDT: Harmonized multi-language dependency treebank. _Language_ _Resources_ _and_ _Evaluation_,
|
| 792 |
+
48(4):601–637.
|
| 793 |
+
|
| 794 |
+
|
| 795 |
+
|
| 796 |
+
26
|
| 797 |
+
|
| 798 |
+
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0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+
url: "https://aclanthology.org/L18-1341/"
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# **BKTreebank: Building a Vietnamese Dependency Treebank**
|
| 11 |
+
|
| 12 |
+
**Kiem-Hieu Nguyen**
|
| 13 |
+
School of information and communication technology,
|
| 14 |
+
Hanoi university of science and technology,
|
| 15 |
+
1 Dai Co Viet, Bach Khoa, Hai Ba Trung, Hanoi, Vietnam
|
| 16 |
+
hieunk@soict.hust.edu.vn
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
**Abstract**
|
| 20 |
+
Dependency treebank is an important resource in any language. In this paper, we present our work on building BKTreebank, a
|
| 21 |
+
dependency treebank for Vietnamese. Important points on designing POS tagset, dependency relations, and annotation guidelines are
|
| 22 |
+
discussed. We describe experiments on POS tagging and dependency parsing on the treebank. Experimental results show that the
|
| 23 |
+
treebank is a useful resource for Vietnamese language processing.
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
**Keywords:** treebank, dependency parsing, POS tagging, word segmentation, Vietnamese, less-resourced language
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
**1.** **Introduction**
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
Dependency treebank is important for data-driven dependency parsing. However, building a dependency treebank
|
| 34 |
+
is complicated and expensive.
|
| 35 |
+
Dependency treebanks have been available in English and
|
| 36 |
+
many languages. VnDT (Nguyen et al., 2014) is a Vietnamese dependency treebank which was automatically
|
| 37 |
+
converted from tree bracketing in VietTreebank (VTB)
|
| 38 |
+
(Nguyen et al., 2009; Nguyen et al., 2015).
|
| 39 |
+
In this work, we present the building of a dependency treebank for Vietnamese [1] . Our treebank was manually annotated by annotators. Its annotation guidelines substantially
|
| 40 |
+
differ from VTB. Our contributions are two-fold:
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
_•_ A manual dependency treebank for Vietnamese.
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
_•_ Experiments on POS tagging and dependency parsing
|
| 47 |
+
based on the treebank.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
The paper is organized as follows: Section 2. briefly introduces related work on building treebanks for Vietnamese
|
| 51 |
+
and dependency treebanks for other languages. Section 3.
|
| 52 |
+
highlights important points of annotation guidelines. Section 4. describes in brief the annotation process. Section 5.
|
| 53 |
+
is dedicated to evaluations and discussions on automatic
|
| 54 |
+
POS tagging and dependency parsing results. The paper
|
| 55 |
+
is concluded in Section 6.
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
**2.** **Related Work**
|
| 59 |
+
|
| 60 |
+
**2.1.** **Treebanks for Vietnamese**
|
| 61 |
+
|
| 62 |
+
VTB was the pioneer treebank for Vietnamese. It has been
|
| 63 |
+
developed from 2006-2010. It contains manual annotations
|
| 64 |
+
on about 40K sentences for word segmentation, 10K sentences for POS tagging, and 10K sentences for bracketing.
|
| 65 |
+
VnDT contains dependency annotations which were automatically converted from bracketing annotations in VTB.
|
| 66 |
+
State-of-the-art performance on VnDT is 80.7% and 73.5%
|
| 67 |
+
on UAS and LAS, respectively (Nguyen et al., 2016a).
|
| 68 |
+
Recently, a new treebank for Vietnamese has been developed (Nguyen et al., 2016b; Nguyen et al., 2017). It consists of 40K sentences annotated with word segmentation,
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
1For information on using BKTreebank, please visit
|
| 72 |
+
[http://is.hust.edu.vn/˜hieunk/bktreebank/](http://is.hust.edu.vn/~hieunk/bktreebank/)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
POS tagging, and bracketing. While generally agreeing
|
| 77 |
+
on word segmentation and bracketing, they propose a POS
|
| 78 |
+
tagset and POS tagging guidelines which focus more on
|
| 79 |
+
word-class transformation, particularly between verbs and
|
| 80 |
+
other word-classes. This issue is important as Vietnamese
|
| 81 |
+
is an analytic language. Unfortunately, their treebank has
|
| 82 |
+
not been publicly available for research community yet.
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
**2.2.** **Dependency treebank for other languages**
|
| 86 |
+
|
| 87 |
+
One of the most notable dependency treebanks for English
|
| 88 |
+
was developed by Stanford NLP group (De Marneffe and
|
| 89 |
+
Manning, 2008). The Stanford treebank is automatically
|
| 90 |
+
converted from PeenTreebank phrase structures (Marneffe
|
| 91 |
+
et al., 2006). Similar approaches were used to build dependency treebanks in other languages such as French, Korean, and Croatian (Candito et al., 2010; Choi et al., 2012;
|
| 92 |
+
Berovic et al., 2012). Other treebanks are built manually
|
| 93 |
+
for languages such as Norwegian (Solberg et al., 2014).
|
| 94 |
+
The Universal Dependencies is inherited from Penn POS
|
| 95 |
+
tagset and Stanford typed dependency representation, and
|
| 96 |
+
has been expanded to many languages (Marneffe et al.,
|
| 97 |
+
2014; Nivre et al., 2016).
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
**3.** **Annotation Guidelines**
|
| 101 |
+
|
| 102 |
+
**3.1.** **POS tagging guidelines**
|
| 103 |
+
|
| 104 |
+
Our POS tagset relies on Penn tagset (Santorini, 1990) with
|
| 105 |
+
the following adaptation to Vietnamese (see Table 2 for the
|
| 106 |
+
full tagset):
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
_•_ As Vietnamese is an analytic language, we omit tags
|
| 110 |
+
related to plurality, tense, and superlative in Penn
|
| 111 |
+
tagset.
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
_•_ _CL_ is used for noun classifiers. In Vietnamese, a
|
| 115 |
+
countable noun could be accompanied by a classifier
|
| 116 |
+
when we want to indicate quantity or simply to emphasize. For example, ‘tấm’ is a classifier’ in “Anh ta
|
| 117 |
+
giành được hai tấm huy chương vàng” (He won two
|
| 118 |
+
gold medals); ‘chiếc’ is a classifier in “Chiếc xe này
|
| 119 |
+
khá đắt” (This car is quite expensive). In (Nguyen et
|
| 120 |
+
al., 2016b), the authors also dedicate two tags _Nc_ and
|
| 121 |
+
_Ncs_ for noun classifiers. Similar phenomena could be
|
| 122 |
+
found in other languages such as Korean (Kim and
|
| 123 |
+
Yang, 2006).
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
2164
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
_•_ _PFN_ is used for prefix nominalizers. Many nominal
|
| 131 |
+
expressions in Vietnamese are formed by a leading
|
| 132 |
+
nominalizer and a verb or an adjective (see Table 1
|
| 133 |
+
for examples). In (Nguyen et al., 2016b), there are
|
| 134 |
+
also POS tags mentioning word-class transformation
|
| 135 |
+
including VA (Verb-Adjective), VN (Verb-Noun), and
|
| 136 |
+
NA (Noun-Adjective) but it is not clear from the paper
|
| 137 |
+
how the tags are designed.
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
_•_ _NML_ is used for phrasal nominalizers. In Vietnamese,
|
| 141 |
+
a special word such as ‘việc’ is used as a clausal adverbial marker for a clausal component. For instance, in
|
| 142 |
+
“Việc xửlý chất thải công nghiệp cần được làm ngay”
|
| 143 |
+
(The processing of industry garbage needs to be done
|
| 144 |
+
immediately), ‘việc’ is the marker for the clausal subject.
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
_•_ _VA_ is used for adjectival verb. In Vietnamese, when the
|
| 148 |
+
predicate is an adjective, there is no copula verb _to be_ .
|
| 149 |
+
It is hence tagged as an adjectival verb. In the sentence
|
| 150 |
+
“Tình hình tương đối khảquan” (The situation is [2] quite
|
| 151 |
+
positive), ‘khảquan’ is predicate and is tagged as VA.
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
_•_ _AV_ stand for verbal adjective. When a verb modifies a
|
| 155 |
+
noun, it is tagged as an verbal adjective (e.g. biển/NN
|
| 156 |
+
quảng_cáo/AV (advertising board)).
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
_•_ _TO_ is used to tagged ‘để’, which has similar meaning
|
| 160 |
+
as “in order to” in English.
|
| 161 |
+
|
| 162 |
+
|Prefix nominalizer|Word|Expression|
|
| 163 |
+
|---|---|---|
|
| 164 |
+
|niềm<br>sự<br>niềm|vui<br>hi sinh<br>tin|niềm vui (happiness)<br>sựhi sinh (sacrifice)<br>niềm tin (belief)|
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
Table 1: Examples of prefix nominalizer in Vietnamese.
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
**3.2.** **Dependency parsing guidelines**
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
Our dependency relations relies on Stanford dependencies
|
| 175 |
+
(De Marneffe and Manning, 2008) (Table 3). We add two
|
| 176 |
+
relations for norminalization:
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_•_ _case:pfn_ is used for nominalizing modifier between a
|
| 180 |
+
headword as a nominalizer and a verb or an adjective
|
| 181 |
+
(see examples in Table 1).
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
_•_ _mark:relcl_ is used for phrasal adverbial modifier between a headword as the predicate of the clause and a
|
| 185 |
+
marker such as ‘việc’.
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
Guidelines for other relations are similar to Stanford dependencies with some modifications. For instance,
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
_•_ _aux_ is also used for relationship between a verb and a
|
| 192 |
+
tense auxiliary (e.g. thực hiện/VB - aux - đang/MD in
|
| 193 |
+
“đang thực hiện” (be executing)).
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
2Note that there is no _to be_ in the sentence in Vietnamese due
|
| 197 |
+
to _zero copula_ .
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
|POS tag|Description|
|
| 202 |
+
|---|---|
|
| 203 |
+
|CD<br>DT<br>MD<br>NN<br>NNP<br>NML*<br>PFN*<br>PRP<br>RB<br>VB<br>VA*<br>IN<br>JJ<br>AV*<br>PUNCT<br>CC<br>WDT<br>WP<br>WRB<br>CL*<br>TO<br>UH<br>FW|Cardinal number<br>Determiner<br>Modal<br>Noun<br>Proper noun<br>Phrasal nominalizer<br>Prefix nominalizer<br>Personal pronoun<br>Adverb<br>Verb<br>Adjectival verb<br>Preposition<br>Adjective<br>Verbal adjective<br>Punctuation<br>Coordinating conjunction<br>Wh-determiner<br>Wh-pronoun<br>Wh-adverb<br>Noun classifier<br>‘để’ (in order to)<br>Interjection<br>Foreign word|
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
Table 2: Our POS tagset (* Tag specific for Vietnamese).
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
_•_ _det_ is also used for relationship between a noun and
|
| 210 |
+
its plural marker. Here, we tag a plural marker as a
|
| 211 |
+
determiner (e.g. trường hợp/NN - det - những/DT in
|
| 212 |
+
“những trường hợp” (cases)).
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
**4.** **Annotation Process**
|
| 216 |
+
The raw corpus was collected from Dantri [3], a generaldomain online news agency.
|
| 217 |
+
Texts were first segmented by UETSegmenter (Nguyen and
|
| 218 |
+
Le, 2016). Sentences longer than 50 words were removed.
|
| 219 |
+
Three annotators produced manual POS tagging and dependency parsing using the annotation tool BRAT (Stenetorp et
|
| 220 |
+
al., 2012).
|
| 221 |
+
We decided to annotate POS tagging and dependency in
|
| 222 |
+
parallel because the two tasks are complimentary to each
|
| 223 |
+
other. After being explained the annotation guidelines, the
|
| 224 |
+
annotators were first asked to separately annotate the same
|
| 225 |
+
small sample dataset. After finishing the sample dataset,
|
| 226 |
+
they discussed differences and agreed on final decisions.
|
| 227 |
+
After being trained, each annotator were asked to annotate
|
| 228 |
+
separate documents. They discussed with each other when
|
| 229 |
+
dealing with confusing cases. Every week, the annotators
|
| 230 |
+
together reviewed and discussed a random annotated document. In the final round, a forth annotator reviewed all
|
| 231 |
+
annotations and discussed with the annotators in the previous round when necessary to make final decisions.
|
| 232 |
+
After removing invalid parsed sentences, our treebank contains 6909 manually annotated sentences on POS tagging and dependency parsing with the average speed of 7
|
| 233 |
+
min/sentence.
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
[3http://dantri.vn](http://dantri.vn)
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
2165
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
Figure 1: An annotation example in BRAT (SEA Games 28 witnesses an excellent performance from Golden Girl Anh
|
| 244 |
+
Vien).
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
|Relation|Description|
|
| 249 |
+
|---|---|
|
| 250 |
+
|nsubj<br>nsubjpass<br>dobj<br>iobj<br>csubj<br>csubjpass<br>ccomp<br>xcomp<br>advcl<br>advmod<br>aux<br>cop<br>mark<br>mark:relcl*<br>nmod<br>appos<br>nummod<br>acl<br>amod<br>det<br>case:pfn*<br>case<br>conj<br>cc<br>punct<br>dep|Nominal subject<br>Passive nominal subject<br>Direct object<br>Indirect object<br>Clausal subject<br>Passive clausal subject<br>Clausal component<br>Open clausal component<br>Adverbial clause modifier<br>Adverbial modifier<br>Auxiliary<br>Copula<br>Marker<br>Phrasal nominalizer<br>Nominal modifier<br>Appositional modifier<br>Numeric modifier<br>Adjectival clause<br>Adjectival modifier<br>Determiner<br>Prefix nominalizer<br>Case marking<br>Conjunct<br>Coordinating conjunction<br>Punctuation<br>Unspecified dependency|
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
Table 3: Our dependency relations (* Relation specific for
|
| 254 |
+
Vietnamese)
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
Figure 1 illustrates an annotation example using BRAT.
|
| 258 |
+
Segmented texts are put into BRAT. Syllables of the same
|
| 259 |
+
word are connected by ‘ ~~’~~ . POS tags are labeled for each
|
| 260 |
+
words.
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
**5.** **Annotation Evaluations**
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
**5.1.** **Inter annotator agreement**
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
After finishing annotation, the three annotators were asked
|
| 270 |
+
again to separately annotate the same small dataset to measure Inter-Annotator-Agreement (IAA). Averaged _kappa_ is
|
| 271 |
+
94.5, 85.2, and 80.4 for POS tagging, unlabeled dependency parsing, and labeled dependency parsing, respectively. Note that IAA was measured for separate annotations of the three annotators without revising of the forth
|
| 272 |
+
one. Such agreement shows good coherence between different annotators.
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
**5.2.** **Initial results on POS tagging and**
|
| 277 |
+
**dependency parsing**
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
The treebank was divided into a training set of 5639 sentences and a test set of 1270 sentences for learning and testing POS tagging and dependency parsing.
|
| 281 |
+
We built a vanilla POS tagging model using CRFSuite [4] implementation of first-order Conditional Random Fields with
|
| 282 |
+
default hyper-parameters. We used a straightforward feature set as described in Table 4. Our lexicon was built by
|
| 283 |
+
merging the lexicon of VietTreebank (Nguyen et al., 2006)
|
| 284 |
+
with frequent tags in our corpus considering important differences in tagging guidelines. Only (word, tag) pairs that
|
| 285 |
+
were tagged more than three times in the corpus were considered and were reviewed before adding to the lexicon.
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
**Feature set**
|
| 289 |
+
|
| 290 |
+
w[-2], w[-1], w[0], w[1], w[2]
|
| 291 |
+
candidate tags
|
| 292 |
+
is ~~h~~ ead ~~c~~ apitalized
|
| 293 |
+
is ~~a~~ ll ~~c~~ apitalized
|
| 294 |
+
is ~~n~~ umeric
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
Table 4: Feature set for learning POS tagger with CRF
|
| 298 |
+
|
| 299 |
+
|Tag|P|R|F|
|
| 300 |
+
|---|---|---|---|
|
| 301 |
+
|NN<br>IN<br>MD<br>VB<br>VA<br>CD<br>RB<br>CL<br>AV<br>PUNCT<br>JJ<br>NNP<br>DT<br>PFN<br>CC<br>PRP|92.4<br>89.0<br>97.6<br>89.6<br>58.2<br>89.1<br>84.2<br>85.3<br>59.4<br>99.9<br>85.9<br>91.9<br>97.1<br>73.9<br>92.5<br>90.7|93.6<br>95.0<br>98.3<br>91.1<br>41.6<br>97.7<br>87.0<br>71.1<br>42.3<br>100.0<br>66.9<br>94.5<br>94.6<br>86.7<br>96.3<br>88.6|93.0<br>91.9<br>98.0<br>90.3<br>48.6<br>93.2<br>85.5<br>77.6<br>49.4<br>99.9<br>75.2<br>93.2<br>95.8<br>79.8<br>94.4<br>89.7|
|
| 302 |
+
|**Overall accuracy: 90.7**|**Overall accuracy: 90.7**|**Overall accuracy: 90.7**|**Overall accuracy: 90.7**|
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
Table 5: POS performance by tag
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
[4http://www.chokkan.org/software/](http://www.chokkan.org/software/crfsuite/)
|
| 310 |
+
|
| 311 |
+
[crfsuite/](http://www.chokkan.org/software/crfsuite/)
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
2166
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
We used the transition-based MaltParser (Nivre et al., 2007)
|
| 319 |
+
with default algorithm and feature set [5] to built a vanilla dependency parser.
|
| 320 |
+
|
| 321 |
+
|Relation|UAS|LAS|
|
| 322 |
+
|---|---|---|
|
| 323 |
+
|ROOT<br>acl<br>advcl<br>advmod<br>amod<br>aux<br>auxpass<br>case<br>case:pfn<br>cc<br>ccomp<br>cl<br>conj<br>cop<br>csubj<br>dep<br>det<br>dobj<br>mark<br>mark:relcl<br>neg<br>nmod<br>nsubj<br>nsubjpass<br>nummod<br>punct<br>xcomp|80.4<br>63.4<br>64.7<br>86.8<br>89.9<br>98.4<br>98.8<br>97.5<br>100.0<br>84.9<br>77.9<br>100.0<br>59.9<br>95.4<br>75.0<br>72.2<br>97.1<br>92.4<br>93.1<br>100.0<br>89.6<br>78.2<br>86.2<br>93.5<br>91.6<br>73.9<br>79.9|80.4<br>63.4<br>39.5<br>86.2<br>89.4<br>97.4<br>92.8<br>97.5<br>100.0<br>84.9<br>46.8<br>100.0<br>48.9<br>94.2<br>63.9<br>72.2<br>97.1<br>89.2<br>93.1<br>100.0<br>85.6<br>74.3<br>79.6<br>75.8<br>89.5<br>73.7<br>70.9|
|
| 324 |
+
|**Overall**|**84.4**|**81.4**|
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
Table 6: Dependency parsing performance by relation
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
**5.3.** **Discussions**
|
| 332 |
+
|
| 333 |
+
As shown in Table 5, performance of POS tagging on nouns
|
| 334 |
+
is similar to averaged performance. Verbs are more difficult to tag as they are ambiguous, not only with nouns and
|
| 335 |
+
adjectives, but also with verbal adjective (modifiers). Automatic tagging of verbal adjective modifiers is very challenging as such modifiers are not infectional, and in some cases
|
| 336 |
+
it requires knowledge at syntactic level. They are usually
|
| 337 |
+
mistakenly tagged as a predicate verb. Verbal adjectives
|
| 338 |
+
are also difficult because of zero-copula phenomenon.
|
| 339 |
+
Dependency parsing performance is promising as shown
|
| 340 |
+
in Table 6. Parsing at phrase-level is accurate except for
|
| 341 |
+
nominal modifiers perhaps due to confusing usage of directional and temporal adverbial nouns and prepositions in
|
| 342 |
+
Vietnamese. On the other hand, parsing at clause-level is
|
| 343 |
+
poor. There are plenty rooms for improvement on such
|
| 344 |
+
long-distance dependencies.
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
**6.** **Conclusion**
|
| 348 |
+
|
| 349 |
+
In this paper, we present the building of a dependency treebank for Vietnamese. Our work is based on previous works
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
[5http://www.maltparser.org/userguide.html](http://www.maltparser.org/userguide.html)
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
on treebanks for Vietnamese and dependency treebanks for
|
| 357 |
+
other languages. Although current size of the corpus is limited, initial experimental results on POS tagging and dependency parsing is promising.
|
| 358 |
+
In the future, we are going to expand BKTreebank with a
|
| 359 |
+
bootstrapping approach using automatic tagger and parser
|
| 360 |
+
learned from the dataset. We are going to investigate several approaches to POS tagging and dependency parsing for
|
| 361 |
+
Vietnamese, including the joint learning approach.
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
**7.** **Acknowledgements**
|
| 365 |
+
|
| 366 |
+
|
| 367 |
+
This project has been partially funded by VCCorp via collaboration with Data science laboratory, School of information and communication technology, Hanoi university of
|
| 368 |
+
science and technology. We would like to thank Vu Xuan
|
| 369 |
+
Luong for enthusiastic discussions on VietTreebank.
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
**8.** **Bibliographical References**
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
Berovic, D., Agic, Z., and Tadic, M. (2012). Croatian dependency treebank: Recent development and initial experiments. In _Proceedings_ _of_ _the_ _Eight_ _Interna-_
|
| 376 |
+
_tional_ _Conference_ _on_ _Language_ _Resources_ _and_ _Evalua-_
|
| 377 |
+
_tion_ _(LREC’12)_, Istanbul, Turkey, may. European Language Resources Association (ELRA).
|
| 378 |
+
Candito, M., Crabbe, B., and Denis, P. (2010). Statistical french dependency parsing: Treebank conversion and first results. In Nicoletta Calzolari (Conference
|
| 379 |
+
Chair), et al., editors, _Proceedings_ _of_ _the_ _Seventh_ _Inter-_
|
| 380 |
+
_national_ _Conference_ _on_ _Language_ _Resources_ _and_ _Eval-_
|
| 381 |
+
_uation (LREC’10)_, Valletta, Malta, may. European Language Resources Association (ELRA).
|
| 382 |
+
Choi, D., Park, J., and Choi, K.-S. (2012). Korean treebank transformation for parser training. In _Proceedings_
|
| 383 |
+
_of_ _the_ _ACL_ _2012_ _Joint_ _Workshop_ _on_ _Statistical_ _Parsing_
|
| 384 |
+
_and_ _Semantic_ _Processing_ _of_ _Morphologically_ _Rich_ _Lan-_
|
| 385 |
+
_guages_, pages 78–88, Jeju, Republic of Korea, July 12.
|
| 386 |
+
Association for Computational Linguistics.
|
| 387 |
+
De Marneffe, M.-C. and Manning, C. D. (2008). The stanford typed dependencies representation. In _Coling 2008:_
|
| 388 |
+
_Proceedings_ _of_ _the_ _Workshop_ _on_ _Cross-Framework_
|
| 389 |
+
_and_ _Cross-Domain_ _Parser_ _Evaluation_, CrossParser ’08,
|
| 390 |
+
pages 1–8, Stroudsburg, PA, USA. Association for Computational Linguistics.
|
| 391 |
+
Kim, J.-B. and Yang, J., (2006). _Processing_ _Korean_ _Nu-_
|
| 392 |
+
_meral Classifier Constructions in a Typed Feature Struc-_
|
| 393 |
+
_ture Grammar_, pages 103–110. Springer Berlin Heidelberg, Berlin, Heidelberg.
|
| 394 |
+
Marneffe, M., Maccartney, B., and Manning, C. (2006).
|
| 395 |
+
Generating typed dependency parses from phrase structure parses. In _Proceedings_ _of_ _the_ _Fifth_ _International_
|
| 396 |
+
_Conference_ _on_ _Language_ _Resources_ _and_ _Evaluation_
|
| 397 |
+
_(LREC-2006)_, Genoa, Italy, May. European Language
|
| 398 |
+
Resources Association (ELRA). ACL Anthology Identifier: L06-1260.
|
| 399 |
+
Marneffe, M.-C. D., Dozat, T., Silveira, N., Haverinen, K.,
|
| 400 |
+
Ginter, F., Nivre, J., and Manning, C. D. (2014). Universal stanford dependencies: a cross-linguistic typology.
|
| 401 |
+
In Nicoletta Calzolari (Conference Chair), et al., editors,
|
| 402 |
+
_Proceedings_ _of_ _the_ _Ninth_ _International_ _Conference_ _on_
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
2167
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
_Language Resources_ _and_ _Evaluation_ _(LREC’14)_, Reykjavik, Iceland, may. European Language Resources Association (ELRA).
|
| 410 |
+
|
| 411 |
+
Nguyen, T. P. and Le, A. C. (2016). A hybrid approach
|
| 412 |
+
to vietnamese word segmentation. In _2016_ _IEEE_ _RIVF_
|
| 413 |
+
_International Conference on Computing Communication_
|
| 414 |
+
_Technologies,_ _Research,_ _Innovation,_ _and_ _Vision_ _for_ _the_
|
| 415 |
+
_Future (RIVF)_, pages 114–119, Nov.
|
| 416 |
+
|
| 417 |
+
Nguyen, T. M. H., Romary, L., Rossignol, M., and Vu, X. L.
|
| 418 |
+
(2006). A lexicon for vietnamese language processing.
|
| 419 |
+
_Language Resources and Evaluation_, 40(3/4):291–309.
|
| 420 |
+
|
| 421 |
+
Nguyen, P. T., Vu, X. L., Nguyen, T. M. H., Nguyen, V. H.,
|
| 422 |
+
and Le, H. P. (2009). Building a large syntacticallyannotated corpus of vietnamese. In _Proceedings_ _of_ _the_
|
| 423 |
+
_Third_ _Linguistic_ _Annotation_ _Workshop_, pages 182–185,
|
| 424 |
+
Suntec, Singapore, August. Association for Computational Linguistics.
|
| 425 |
+
|
| 426 |
+
Nguyen, D. Q., Nguyen, D. Q., Pham, S. B., Nguyen, P.-T.,
|
| 427 |
+
and Le Nguyen, M., (2014). _From Treebank Conversion_
|
| 428 |
+
_to Automatic Dependency Parsing for Vietnamese_, pages
|
| 429 |
+
196–207. Springer International Publishing, Cham.
|
| 430 |
+
|
| 431 |
+
Nguyen, P.-T., Le, A.-C., Ho, T.-B., and Nguyen, V.-H.
|
| 432 |
+
(2015). Vietnamese treebank construction and entropybased error detection. _Lang._ _Resour._ _Eval._, 49(3):487–
|
| 433 |
+
519, September.
|
| 434 |
+
|
| 435 |
+
Nguyen, D. Q., Dras, M., and Johnson, M. (2016a). An
|
| 436 |
+
empirical study for vietnamese dependency parsing. In
|
| 437 |
+
_Proceedings_ _of_ _the_ _Australasian_ _Language_ _Technology_
|
| 438 |
+
_Association Workshop 2016_, pages 143–149, Melbourne,
|
| 439 |
+
Australia, December.
|
| 440 |
+
|
| 441 |
+
Nguyen, Q., Miyao, Y., Le, H., and Nguyen, N. (2016b).
|
| 442 |
+
Challenges and solutions for consistent annotation of
|
| 443 |
+
vietnamese treebank. In Nicoletta Calzolari (Conference
|
| 444 |
+
Chair), et al., editors, _Proceedings_ _of_ _the_ _Tenth_ _Interna-_
|
| 445 |
+
_tional_ _Conference_ _on_ _Language_ _Resources_ _and_ _Evalua-_
|
| 446 |
+
_tion_ _(LREC_ _2016)_, Paris, France, may. European Language Resources Association (ELRA).
|
| 447 |
+
|
| 448 |
+
Nguyen, Q. T., Miyao, Y., Le, H. T. T., and Nguyen, N.
|
| 449 |
+
T. H. (2017). Ensuring annotation consistency and accuracy for vietnamese treebank. _Language_ _Resources_ _and_
|
| 450 |
+
_Evaluation_, Jul.
|
| 451 |
+
|
| 452 |
+
Nivre, J., Hall, J., Nilsson, J., Chanev, A., Eryigit, G.,
|
| 453 |
+
Kubler, S., Marinov, S., and Marsi, E. (2007). Maltparser: A language-independent system for data-driven
|
| 454 |
+
dependency parsing. _Natural_ _Language_ _Engineering_,
|
| 455 |
+
13(2):95–135.
|
| 456 |
+
|
| 457 |
+
Nivre, J., de Marneffe, M.-C., Ginter, F., Goldberg, Y.,
|
| 458 |
+
Hajic, J., Manning, C. D., McDonald, R., Petrov, S.,
|
| 459 |
+
Pyysalo, S., Silveira, N., Tsarfaty, R., and Zeman,
|
| 460 |
+
D. (2016). Universal dependencies v1: A multilingual
|
| 461 |
+
treebank collection. In Nicoletta Calzolari (Conference
|
| 462 |
+
Chair), et al., editors, _Proceedings_ _of_ _the_ _Tenth_ _Interna-_
|
| 463 |
+
_tional_ _Conference_ _on_ _Language_ _Resources_ _and_ _Evalua-_
|
| 464 |
+
_tion_ _(LREC_ _2016)_, Paris, France, may. European Language Resources Association (ELRA).
|
| 465 |
+
|
| 466 |
+
Santorini, B. (1990). Part-Of-Speech tagging guidelines
|
| 467 |
+
for the Penn Treebank project (3rd revision, 2nd printing). Technical report, Department of Linguistics, University of Pennsylvania, Philadelphia, PA, USA.
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
Solberg, P. E., Skjarholt, A., Ovrelid, L., Hagen, K.,
|
| 472 |
+
and Johannessen, J. B. (2014). The norwegian dependency treebank. In Nicoletta Calzolari (Conference
|
| 473 |
+
Chair), et al., editors, _Proceedings of the Ninth Interna-_
|
| 474 |
+
_tional_ _Conference_ _on_ _Language_ _Resources_ _and_ _Evalua-_
|
| 475 |
+
_tion (LREC’14)_, Reykjavik, Iceland, may. European Language Resources Association (ELRA).
|
| 476 |
+
Stenetorp, P., Pyysalo, S., Topi´c, G., Ohta, T., Ananiadou,
|
| 477 |
+
S., and Tsujii, J. (2012). brat: a web-based tool for nlpassisted text annotation. In _Proceedings_ _of_ _the_ _Demon-_
|
| 478 |
+
_strations at the 13th Conference of the European Chapter_
|
| 479 |
+
_of_ _the_ _Association_ _for_ _Computational_ _Linguistics_, pages
|
| 480 |
+
102–107, Avignon, France, April. Association for Computational Linguistics.
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
2168
|
| 485 |
+
|
| 486 |
+
|
|
@@ -0,0 +1,589 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "VnCoreNLP: A Vietnamese Natural Language Processing Toolkit"
|
| 3 |
+
authors:
|
| 4 |
+
- "Thanh Vu"
|
| 5 |
+
- "Dat Quoc Nguyen"
|
| 6 |
+
- "Dai Quoc Nguyen"
|
| 7 |
+
- "Mark Dras"
|
| 8 |
+
- "Mark Johnson"
|
| 9 |
+
year: 2018
|
| 10 |
+
venue: "NAACL 2018 Demo"
|
| 11 |
+
url: "https://aclanthology.org/N18-5012/"
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# **VnCoreNLP: A Vietnamese Natural Language Processing Toolkit**
|
| 15 |
+
|
| 16 |
+
**Thanh Vu** [1] **, Dat Quoc Nguyen** [2] **, Dai Quoc Nguyen** [3] **, Mark Dras** [4] and **Mark Johnson** [4]
|
| 17 |
+
|
| 18 |
+
1Newcastle University, United Kingdom; 2The University of Melbourne, Australia;
|
| 19 |
+
3Deakin University, Australia; 4Macquarie University, Australia
|
| 20 |
+
`thanh.vu@newcastle.ac.uk`, `dqnguyen@unimelb.edu.au`,
|
| 21 |
+
`dai.nguyen@deakin.edu.au`, `{mark.dras,` `mark.johnson}@mq.edu.au`
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
**Abstract**
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
We present an easy-to-use and fast toolkit,
|
| 29 |
+
namely VnCoreNLP—a Java NLP annotation pipeline for Vietnamese. Our VnCoreNLP
|
| 30 |
+
supports key natural language processing
|
| 31 |
+
(NLP) tasks including word segmentation,
|
| 32 |
+
part-of-speech (POS) tagging, named entity
|
| 33 |
+
recognition (NER) and dependency parsing,
|
| 34 |
+
and obtains state-of-the-art (SOTA) results for
|
| 35 |
+
these tasks. We release VnCoreNLP to provide
|
| 36 |
+
rich linguistic annotations to facilitate research
|
| 37 |
+
work on Vietnamese NLP. Our VnCoreNLP
|
| 38 |
+
is open-source and available at: `https://`
|
| 39 |
+
`github.com/vncorenlp/VnCoreNLP` .
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
**1** **Introduction**
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
Research on Vietnamese NLP has been actively
|
| 46 |
+
explored in the last decade, boosted by the successes of the 4-year KC01.01/2006-2010 national
|
| 47 |
+
project on Vietnamese language and speech processing (VLSP). Over the last 5 years, standard
|
| 48 |
+
benchmark datasets for key Vietnamese NLP tasks
|
| 49 |
+
are publicly available: datasets for word segmentation and POS tagging were released for the first
|
| 50 |
+
VLSP evaluation campaign in 2013; a dependency
|
| 51 |
+
treebank was published in 2014 (Nguyen et al.,
|
| 52 |
+
2014); and an NER dataset was released for the
|
| 53 |
+
second VLSP campaign in 2016. So there is a need
|
| 54 |
+
for building an NLP pipeline, such as the Stanford
|
| 55 |
+
CoreNLP toolkit (Manning et al., 2014), for those
|
| 56 |
+
key tasks to assist users and to support researchers
|
| 57 |
+
and tool developers of downstream tasks.
|
| 58 |
+
|
| 59 |
+
Nguyen et al. (2010) and Le et al. (2013) built
|
| 60 |
+
Vietnamese NLP pipelines by wrapping existing word segmenters and POS taggers including:
|
| 61 |
+
JVnSegmenter (Nguyen et al., 2006), vnTokenizer
|
| 62 |
+
(Le et al., 2008), JVnTagger (Nguyen et al., 2010)
|
| 63 |
+
and vnTagger (Le-Hong et al., 2010). However,
|
| 64 |
+
these word segmenters and POS taggers are no
|
| 65 |
+
longer considered SOTA models for Vietnamese
|
| 66 |
+
(Nguyen and Le, 2016; Nguyen et al., 2016b).
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
Figure 1: In pipeline architecture of VnCoreNLP, annotations are performed on an `Annotation` object.
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
Pham et al. (2017) built the NNVLP toolkit for
|
| 74 |
+
Vietnamese sequence labeling tasks by applying a
|
| 75 |
+
BiLSTM-CNN-CRF model (Ma and Hovy, 2016).
|
| 76 |
+
However, Pham et al. (2017) did not make a comparison to SOTA traditional feature-based models. In addition, NNVLP is slow with a processing
|
| 77 |
+
speed at about 300 words per second, which is not
|
| 78 |
+
practical for real-world application such as dealing
|
| 79 |
+
with large-scale data.
|
| 80 |
+
In this paper, we present a Java NLP toolkit for
|
| 81 |
+
Vietnamese, namely VnCoreNLP, which aims to
|
| 82 |
+
facilitate Vietnamese NLP research by providing
|
| 83 |
+
rich linguistic annotations through key NLP components of word segmentation, POS tagging, NER
|
| 84 |
+
and dependency parsing. Figure 1 describes the
|
| 85 |
+
overall system architecture. The following items
|
| 86 |
+
highlight typical characteristics of VnCoreNLP:
|
| 87 |
+
|
| 88 |
+
_•_ **Easy-to-use** - All VnCoreNLP components
|
| 89 |
+
are wrapped into a single .jar file, so users
|
| 90 |
+
do not have to install external dependencies.
|
| 91 |
+
Users can run processing pipelines from either the command-line or the Java API.
|
| 92 |
+
|
| 93 |
+
_•_ **Fast** - VnCoreNLP is fast, so it can be used
|
| 94 |
+
for dealing with large-scale data. Also it benefits users suffering from limited computation resources (e.g. users from Vietnam).
|
| 95 |
+
|
| 96 |
+
_•_ **Accurate** - VnCoreNLP components obtain
|
| 97 |
+
higher results than all previous published results on the same benchmark datasets.
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
56
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
_Proceedings of NAACL-HLT 2018:_ _Demonstrations_, pages 56–60
|
| 105 |
+
New Orleans, Louisiana, June 2 - 4, 2018. _⃝_ c 2018 Association for Computational Linguistics
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
**2** **Basic usages**
|
| 109 |
+
|
| 110 |
+
Our design goal is to make VnCoreNLP simple to
|
| 111 |
+
setup and run from either the command-line or the
|
| 112 |
+
Java API. Performing linguistic annotations for a
|
| 113 |
+
given file can be done by using a simple command
|
| 114 |
+
as in Figure 2.
|
| 115 |
+
|
| 116 |
+
```
|
| 117 |
+
$ java -Xmx2g -jar VnCoreNLP.jar -fin
|
| 118 |
+
input.txt -fout output.txt
|
| 119 |
+
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Figure 2: Minimal command to run VnCoreNLP.
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
Suppose that the file `input.txt` in Figure
|
| 126 |
+
2 contains a sentence “Ông Nguyễn Khắc Chúc
|
| 127 |
+
đang làm việc tại Đại học Quốc gia Hà Nội.”
|
| 128 |
+
(MrÔng Nguyen Khac Chuc isđang workinglàm_việc
|
| 129 |
+
attại Vietnam Nationalquốc_gia Universityđại_học
|
| 130 |
+
HanoiHà_Nội). Table 1 shows the output for this
|
| 131 |
+
sentence in plain text form.
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
1 Ông Nc O 4 sub
|
| 135 |
+
2 Nguyễn_Khắc_Chúc Np B-PER 1 nmod
|
| 136 |
+
3 đang R O 4 adv
|
| 137 |
+
4 làm_việc V O 0 root
|
| 138 |
+
5 tại E O 4 loc
|
| 139 |
+
6 Đại_học N B-ORG 5 pob
|
| 140 |
+
7 Quốc_gia N I-ORG 6 nmod
|
| 141 |
+
8 Hà_Nội Np I-ORG 6 nmod
|
| 142 |
+
9 . CH O 4 punct
|
| 143 |
+
|
| 144 |
+
Table 1: The output in file `output.txt` for the sentence ‘Ông Nguyễn Khắc Chúc đang làm việc tại Đại
|
| 145 |
+
học Quốc gia Hà Nội.” from file `input.txt` in Figure 2. The output is in a 6-column format representing
|
| 146 |
+
word index, word form, POS tag, NER label, head index of the current word, and dependency relation type.
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
Similarly, we can also get the same output by
|
| 150 |
+
using the API as easy as in Listing 1.
|
| 151 |
+
```
|
| 152 |
+
VnCoreNLP pipeline = new VnCoreNLP() ;
|
| 153 |
+
Annotation annotation = new Annotation("
|
| 154 |
+
Ông Nguyễn Khắc Chúc đang làm việc
|
| 155 |
+
tại Đại học Quốc gia Hà Nội.");
|
| 156 |
+
pipeline.annotate(annotation);
|
| 157 |
+
String annotatedStr = annotation.
|
| 158 |
+
toString();
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
Listing 1: Minimal code for an analysis pipeline.
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
In addition, Listing 2 provides a more realistic
|
| 165 |
+
and complete example code, presenting key components of the toolkit. Here an annotation pipeline
|
| 166 |
+
can be used for any text rather than just a single
|
| 167 |
+
sentence, e.g. for a paragraph or entire news story.
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
**3** **Components**
|
| 171 |
+
|
| 172 |
+
This section briefly describes each component of
|
| 173 |
+
VnCoreNLP. Note that our goal is not to develop
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
```
|
| 177 |
+
import vn.pipeline.*;
|
| 178 |
+
import java.io.*;
|
| 179 |
+
public class VnCoreNLPExample {
|
| 180 |
+
public static void main(String[] args)
|
| 181 |
+
throws IOException {
|
| 182 |
+
// "wseg", "pos", "ner", and "parse"
|
| 183 |
+
refer to as word segmentation, POS
|
| 184 |
+
tagging, NER and dependency
|
| 185 |
+
parsing, respectively.
|
| 186 |
+
String[] annotators = {"wseg", "pos",
|
| 187 |
+
"ner", "parse"};
|
| 188 |
+
VnCoreNLP pipeline = new VnCoreNLP(
|
| 189 |
+
annotators);
|
| 190 |
+
// Mr Nguyen Khac Chuc is working at
|
| 191 |
+
Vietnam National University, Hanoi
|
| 192 |
+
. Mrs Lan, Mr Chuc’s wife, is also
|
| 193 |
+
working at this university.
|
| 194 |
+
String str = "Ông Nguyễn Khắc Chúc
|
| 195 |
+
đang làm việc tại Đại học Quốc gia
|
| 196 |
+
Hà Nội. Bà Lan, vợông Chúc, cũng
|
| 197 |
+
làm việc tại đây.";
|
| 198 |
+
Annotation annotation = new Annotation
|
| 199 |
+
(str);
|
| 200 |
+
pipeline.annotate(annotation);
|
| 201 |
+
PrintStream outputPrinter = new
|
| 202 |
+
PrintStream("output.txt");
|
| 203 |
+
pipeline.printToFile(annotation,
|
| 204 |
+
outputPrinter);
|
| 205 |
+
// Users can get a single sentence to
|
| 206 |
+
analyze individually
|
| 207 |
+
Sentence firstSentence = annotation.
|
| 208 |
+
getSentences().get(0);
|
| 209 |
+
}
|
| 210 |
+
}
|
| 211 |
+
```
|
| 212 |
+
|
| 213 |
+
Listing 2: A simple and complete example code.
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
new approach or model for each component task.
|
| 217 |
+
Here we focus on incorporating existing models into a single pipeline. In particular, except a
|
| 218 |
+
new model we develop for the language-dependent
|
| 219 |
+
component of word segmentation, we apply traditional feature-based models which obtain SOTA
|
| 220 |
+
results for English POS tagging, NER and dependency parsing to Vietnamese. The reason is based
|
| 221 |
+
on a well-established belief in the literature that
|
| 222 |
+
for a less-resourced language such as Vietnamese,
|
| 223 |
+
we should consider using feature-based models to
|
| 224 |
+
obtain fast and accurate performances, rather than
|
| 225 |
+
using neural network-based models (King, 2015).
|
| 226 |
+
|
| 227 |
+
_•_ **wseg** - Unlike English where white space
|
| 228 |
+
is a strong indicator of word boundaries,
|
| 229 |
+
when written in Vietnamese white space is
|
| 230 |
+
also used to separate syllables that constitute
|
| 231 |
+
words. So word segmentation is referred to
|
| 232 |
+
as the key first step in Vietnamese NLP. We
|
| 233 |
+
have proposed a transformation rule-based
|
| 234 |
+
learning model for Vietnamese word segmentation, which obtains better segmentation accuracy and speed than all previous word segmenters. See details in Nguyen et al. (2018).
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
57
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
_•_ **pos** - To label words with their POS tag,
|
| 242 |
+
we apply MarMoT which is a generic CRF
|
| 243 |
+
framework and a SOTA POS and morphological tagger (Mueller et al., 2013). [1]
|
| 244 |
+
|
| 245 |
+
_•_ **ner** - To recognize named entities, we apply
|
| 246 |
+
a dynamic feature induction model that automatically optimizes feature combinations
|
| 247 |
+
(Choi, 2016). [2]
|
| 248 |
+
|
| 249 |
+
_•_ **parse** - To perform dependency parsing,
|
| 250 |
+
we apply the greedy version of a transitionbased parsing model with selectional branching (Choi et al., 2015). [3]
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
**4** **Evaluation**
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
We detail experimental results of the word segmentation ( **wseg** ) and POS tagging ( **pos** ) components of VnCoreNLP in Nguyen et al. (2018) and
|
| 257 |
+
Nguyen et al. (2017b), respectively. In particular,
|
| 258 |
+
our word segmentation component gets the highest results in terms of both segmentation F1 score
|
| 259 |
+
at 97.90% and speed at 62K words per second. [4]
|
| 260 |
+
|
| 261 |
+
Our POS tagging component also obtains the highest accuracy to date at 95.88% with a fast tagging
|
| 262 |
+
speed at 25K words per second, and outperforms
|
| 263 |
+
BiLSTM-CRF-based models. Following subsections present evaluations for the NER ( **ner** ) and
|
| 264 |
+
dependency parsing ( **parse** ) components.
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
**4.1** **Named entity recognition**
|
| 268 |
+
|
| 269 |
+
We make a comparison between SOTA featurebased and neural network-based models, which, to
|
| 270 |
+
the best of our knowledge, has not been done in
|
| 271 |
+
any prior work on Vietnamese NER.
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
**Dataset:** The NER shared task at the 2016
|
| 275 |
+
VLSP workshop provides a set of 16,861 manually annotated sentences for training and development, and a set of 2,831 manually annotated sentences for test, with four NER labels PER, LOC,
|
| 276 |
+
ORG and MISC. Note that in both datasets, words
|
| 277 |
+
are also supplied with gold POS tags. In addition,
|
| 278 |
+
each word representing a full personal name are
|
| 279 |
+
separated into syllables that constitute the word.
|
| 280 |
+
So this annotation scheme results in an unrealistic scenario for a pipeline evaluation because: ( **i** )
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
1 `http://cistern.cis.lmu.de/marmot/`
|
| 284 |
+
2 `https://emorynlp.github.io/nlp4j/`
|
| 285 |
+
```
|
| 286 |
+
components/named-entity-recognition.html
|
| 287 |
+
|
| 288 |
+
```
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
3 `https://emorynlp.github.io/nlp4j/`
|
| 292 |
+
```
|
| 293 |
+
components/dependency-parsing.html
|
| 294 |
+
|
| 295 |
+
```
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
4All speeds reported in this paper are computed on a personal computer of Intel Core i7 2.2 GHz.
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
gold POS tags are not available in a real-world application, and ( **ii** ) in the standard annotation (and
|
| 303 |
+
benchmark datasets) for Vietnamese word segmentation and POS tagging (Nguyen et al., 2009),
|
| 304 |
+
each full name is referred to as a word token (i.e.,
|
| 305 |
+
all word segmenters have been trained to output a
|
| 306 |
+
full name as a word and all POS taggers have been
|
| 307 |
+
trained to assign a label to the entire full-name).
|
| 308 |
+
For a more realistic scenario, we merge those
|
| 309 |
+
contiguous syllables constituting a full name to
|
| 310 |
+
form a word. [5] Then we replace the gold POS tags
|
| 311 |
+
by automatic tags predicted by our POS tagging
|
| 312 |
+
component. From the set of 16,861 sentences, we
|
| 313 |
+
sample 2,000 sentences for development and using
|
| 314 |
+
the remaining 14,861 sentences for training.
|
| 315 |
+
|
| 316 |
+
**Models:** We make an empirical comparison between the VnCoreNLP’s NER component and the
|
| 317 |
+
following neural network-based models:
|
| 318 |
+
|
| 319 |
+
_•_ BiLSTM-CRF (Huang et al., 2015) is a sequence labeling model which extends the
|
| 320 |
+
BiLSTM model with a CRF layer.
|
| 321 |
+
|
| 322 |
+
_•_ BiLSTM-CRF + CNN-char, i.e. BiLSTMCNN-CRF, is an extension of BiLSTM-CRF,
|
| 323 |
+
using CNN to derive character-based word
|
| 324 |
+
representations (Ma and Hovy, 2016).
|
| 325 |
+
|
| 326 |
+
_•_ BiLSTM-CRF + LSTM-char is an extension of BiLSTM-CRF, using BiLSTM to derive the character-based word representations
|
| 327 |
+
(Lample et al., 2016).
|
| 328 |
+
|
| 329 |
+
_•_ BiLSTM-CRF+POS is another extension to
|
| 330 |
+
BiLSTM-CRF, incorporating embeddings of
|
| 331 |
+
automatically predicted POS tags (Reimers
|
| 332 |
+
and Gurevych, 2017).
|
| 333 |
+
|
| 334 |
+
We use a well-known implementation which
|
| 335 |
+
is optimized for performance of all BiLSTMCRF-based models from Reimers and Gurevych
|
| 336 |
+
(2017). [6] We then follow Nguyen et al. (2017b,
|
| 337 |
+
Section 3.4) to perform hyper-parameter tuning. [7]
|
| 338 |
+
|
| 339 |
+
**Main** **results:** Table 2 presents F1 score and
|
| 340 |
+
speed of each model on the test set, where VnCoreNLP obtains the highest score at 88.55% with
|
| 341 |
+
a fast speed at 18K words per second. In particular, VnCoreNLP obtains 10 times faster speed than
|
| 342 |
+
|
| 343 |
+
5Based on the gold label PER, contiguous syllables such
|
| 344 |
+
as “Nguyễn/B-PER”, “Khắc/I-PER” and “Chúc/I-PER” are
|
| 345 |
+
merged to form a word as “Nguyễn_Khắc_Chúc/B-PER.”
|
| 346 |
+
6 `https://github.com/UKPLab/`
|
| 347 |
+
```
|
| 348 |
+
emnlp2017-bilstm-cnn-crf
|
| 349 |
+
```
|
| 350 |
+
|
| 351 |
+
7We employ pre-trained Vietnamese word vectors from
|
| 352 |
+
`https://github.com/sonvx/word2vecVN` .
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
58
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
|Model|F1|Speed|
|
| 360 |
+
|---|---|---|
|
| 361 |
+
|VnCoreNLP<br>BiLSTM-CRF<br>+ CNN-char<br>+ LSTM-char<br>BiLSTM-CRF+POS<br>+ CNN-char<br>+ LSTM-char|**88.55**<br>86.48<br>88.28<br>87.71<br>86.12<br>88.06<br>87.43|**18K**<br>2.8K<br>1.8K<br>1.3K<br>_<br>_<br>_|
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
Table 2: F1 scores (in %) on the test set w.r.t. gold wordsegmentation. “ **Speed** ” denotes the processing speed of
|
| 365 |
+
the number of words per second (for VnCoreNLP, we
|
| 366 |
+
include the time POS tagging takes in the speed).
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
the second most accurate model BiLSTM-CRF +
|
| 370 |
+
CNN-char.
|
| 371 |
+
It is initially surprising that for such an isolated language as Vietnamese where all words
|
| 372 |
+
are not inflected, using character-based representations helps producing 1+% improvements to the
|
| 373 |
+
BiLSTM-CRF model. We find that the improvements to BiLSTM-CRF are mostly accounted for
|
| 374 |
+
by the PER label. The reason turns out to be simple: about 50% of named entities are labeled with
|
| 375 |
+
tag PER, so character-based representations are
|
| 376 |
+
in fact able to capture common family, middle
|
| 377 |
+
or given name syllables in ‘unknown’ full-name
|
| 378 |
+
words. Furthermore, we also find that BiLSTMCRF-based models do not benefit from additional
|
| 379 |
+
predicted POS tags. It is probably because BiLSTM can take word order into account, while without word inflection, all grammatical information
|
| 380 |
+
in Vietnamese is conveyed through its fixed word
|
| 381 |
+
order, thus explicit predicted POS tags with noisy
|
| 382 |
+
grammatical information are not helpful.
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
**4.2** **Dependency parsing**
|
| 386 |
+
|
| 387 |
+
**Experimental** **setup:** We use the Vietnamese
|
| 388 |
+
dependency treebank VnDT (Nguyen et al., 2014)
|
| 389 |
+
consisting of 10,200 sentences in our experiments.
|
| 390 |
+
Following Nguyen et al. (2016a), we use the last
|
| 391 |
+
1020 sentences of VnDT for test while the remaining sentences are used for training. Evaluation
|
| 392 |
+
metrics are the labeled attachment score (LAS)
|
| 393 |
+
and unlabeled attachment score (UAS).
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
**Main results:** Table 3 compares the dependency
|
| 397 |
+
parsing results of VnCoreNLP with results reported in prior work, using the same experimental setup. The first six rows present the scores with
|
| 398 |
+
gold POS tags. The next two rows show scores of
|
| 399 |
+
VnCoreNLP with automatic POS tags which are
|
| 400 |
+
produced by our POS tagging component. The last
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
|Model|Col2|LAS|UAS|Speed|
|
| 405 |
+
|---|---|---|---|---|
|
| 406 |
+
|Gold POS|VnCoreNLP<br>VnCoreNLP–NER<br>BIST-bmstparser<br>BIST-barchybrid<br>MSTParser<br>MaltParser|**73.39**<br>73.21<br>73.17<br>72.53<br>70.29<br>69.10|79.02<br>78.91<br>**79.39**<br>79.33<br>76.47<br>74.91|_<br>_<br>_<br>_<br>_<br>_|
|
| 407 |
+
|Auto POS|VnCoreNLP<br>VnCoreNLP–NER<br>jPTDP|**70.23**<br>70.10<br>69.49|76.93<br>76.85<br>**77.68**|8K<br>**9K**<br>700|
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
Table 3: LAS and UAS scores (in %) computed on all
|
| 411 |
+
tokens (i.e. including punctuation) on the test set w.r.t.
|
| 412 |
+
gold word-segmentation. “ **Speed** ” is defined as in Table 2. The subscript “–NER” denotes the model without
|
| 413 |
+
using automatically predicted NER labels as features.
|
| 414 |
+
The results of the MSTParser (McDonald et al., 2005),
|
| 415 |
+
MaltParser (Nivre et al., 2007), and BiLSTM-based
|
| 416 |
+
parsing models BIST-bmstparser and BIST-barchybrid
|
| 417 |
+
(Kiperwasser and Goldberg, 2016) are reported in
|
| 418 |
+
Nguyen et al. (2016a). The result of the jPTDP model
|
| 419 |
+
for Vietnamese is mentioned in Nguyen et al. (2017b).
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
row presents scores of the joint POS tagging and
|
| 423 |
+
dependency parsing model jPTDP (Nguyen et al.,
|
| 424 |
+
2017a). Table 3 shows that compared to previously
|
| 425 |
+
published results, VnCoreNLP produces the highest LAS score. Note that previous results for other
|
| 426 |
+
systems are reported without using additional information of automatically predicted NER labels.
|
| 427 |
+
In this case, the LAS score for VnCoreNLP without automatic NER features (i.e. VnCoreNLP–NER
|
| 428 |
+
in Table 3) is still higher than previous ones. Notably, we also obtain a fast parsing speed at 8K
|
| 429 |
+
words per second.
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
**5** **Conclusion**
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
In this paper, we have presented the VnCoreNLP
|
| 436 |
+
toolkit—an easy-to-use, fast and accurate processing pipeline for Vietnamese NLP. VnCoreNLP
|
| 437 |
+
provides core NLP steps including word segmentation, POS tagging, NER and dependency parsing. Current version of VnCoreNLP has been
|
| 438 |
+
trained without any linguistic optimization, i.e. we
|
| 439 |
+
only employ existing pre-defined features in the
|
| 440 |
+
traditional feature-based models for POS tagging,
|
| 441 |
+
NER and dependency parsing. So future work will
|
| 442 |
+
focus on incorporating Vietnamese linguistic features into these feature-based models.
|
| 443 |
+
VnCoreNLP is released for research and educational purposes, and available at: `https://`
|
| 444 |
+
`github.com/vncorenlp/VnCoreNLP` .
|
| 445 |
+
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
59
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
**References**
|
| 452 |
+
|
| 453 |
+
Jinho D. Choi. 2016. Dynamic Feature Induction: The
|
| 454 |
+
Last Gist to the State-of-the-Art. In _Proceedings of_
|
| 455 |
+
_NAACL-HLT_ . pages 271–281.
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
Jinho D. Choi, Joel Tetreault, and Amanda Stent. 2015.
|
| 459 |
+
It Depends: Dependency Parser Comparison Using
|
| 460 |
+
A Web-based Evaluation Tool. In _Proceedings_ _of_
|
| 461 |
+
_ACL-IJCNLP_ . pages 387–396.
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
Zhiheng Huang, Wei Xu, and Kai Yu. 2015. Bidirectional LSTM-CRF models for sequence tagging.
|
| 465 |
+
_arXiv preprint_ arXiv:1508.01991.
|
| 466 |
+
|
| 467 |
+
|
| 468 |
+
Benjamin Philip King. 2015. _Practical_ _Natural_ _Lan-_
|
| 469 |
+
_guage_ _Processing_ _for_ _Low-Resource_ _Languages_ .
|
| 470 |
+
Ph.D. thesis, The University of Michigan.
|
| 471 |
+
|
| 472 |
+
|
| 473 |
+
Eliyahu Kiperwasser and Yoav Goldberg. 2016. Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations. _Transac-_
|
| 474 |
+
_tions of the Association for Computational Linguis-_
|
| 475 |
+
_tics_ 4:313–327.
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. 2016.
|
| 479 |
+
Neural Architectures for Named Entity Recognition.
|
| 480 |
+
In _Proceedings of NAACL-HLT_ . pages 260–270.
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
Hong Phuong Le, Thi Minh Huyen Nguyen, Azim
|
| 484 |
+
Roussanaly, and Tuong Vinh Ho. 2008. A hybrid
|
| 485 |
+
approach to word segmentation of Vietnamese texts.
|
| 486 |
+
In _Proceedings of LATA_ . pages 240–249.
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
Ngoc Minh Le, Bich Ngoc Do, Vi Duong Nguyen, and
|
| 490 |
+
Thi Dam Nguyen. 2013. VNLP: An Open Source
|
| 491 |
+
Framework for Vietnamese Natural Language Processing. In _Proceedings of SoICT_ . pages 88–93.
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
Phuong Le-Hong, Azim Roussanaly, Thi Minh Huyen
|
| 495 |
+
Nguyen, and Mathias Rossignol. 2010. An empirical study of maximum entropy approach for part-ofspeech tagging of Vietnamese texts. In _Proceedings_
|
| 496 |
+
_of TALN_ .
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
Xuezhe Ma and Eduard Hovy. 2016. End-to-end Sequence Labeling via Bi-directional LSTM-CNNsCRF. In _Proceedings_ _of_ _ACL_ _(Volume_ _1:_ _Long_ _Pa-_
|
| 500 |
+
_pers)_ . pages 1064–1074.
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
Christopher D. Manning, Mihai Surdeanu, John Bauer,
|
| 504 |
+
Jenny Finkel, Steven J. Bethard, and David McClosky. 2014. The Stanford CoreNLP natural language processing toolkit. In _Proceedings_ _of_ _ACL_
|
| 505 |
+
_2014 System Demonstrations_ . pages 55–60.
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
Ryan McDonald, Koby Crammer, and Fernando
|
| 509 |
+
Pereira. 2005. Online Large-margin Training of Dependency Parsers. In _Proceedings_ _of_ _ACL_ . pages
|
| 510 |
+
91–98.
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
Thomas Mueller, Helmut Schmid, and Hinrich
|
| 514 |
+
Sch¨utze. 2013. Efficient Higher-Order CRFs for
|
| 515 |
+
Morphological Tagging. In _Proceedings of EMNLP_ .
|
| 516 |
+
pages 322–332.
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
Cam-Tu Nguyen, Trung-Kien Nguyen, et al. 2006.
|
| 521 |
+
Vietnamese Word Segmentation with CRFs and
|
| 522 |
+
SVMs: An Investigation. In _Proceedings_ _of_
|
| 523 |
+
_PACLIC_ . pages 215–222.
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
Cam-Tu Nguyen, Xuan-Hieu Phan, and ThuTrang Nguyen. 2010. JVnTextPro: A Javabased Vietnamese Text Processing Tool.
|
| 527 |
+
`http://jvntextpro.sourceforge.net/` .
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
Dat Quoc Nguyen, Mark Dras, and Mark Johnson.
|
| 531 |
+
2016a. An empirical study for Vietnamese dependency parsing. In _Proceedings of ALTA_ . pages 143–
|
| 532 |
+
149.
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
Dat Quoc Nguyen, Mark Dras, and Mark Johnson.
|
| 536 |
+
2017a. A Novel Neural Network Model for Joint
|
| 537 |
+
POS Tagging and Graph-based Dependency Parsing. In _Proceedings_ _of_ _the_ _CoNLL_ _2017_ _Shared_
|
| 538 |
+
_Task_ . pages 134–142.
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
Dat Quoc Nguyen, Dai Quoc Nguyen, Son Bao Pham,
|
| 542 |
+
Phuong-Thai Nguyen, and Minh Le Nguyen. 2014.
|
| 543 |
+
From Treebank Conversion to Automatic Dependency Parsing for Vietnamese. In _Proceedings_ _of_
|
| 544 |
+
_NLDB_ . pages 196–207.
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
Dat Quoc Nguyen, Dai Quoc Nguyen, Thanh Vu, Mark
|
| 548 |
+
Dras, and Mark Johnson. 2018. A Fast and Accurate Vietnamese Word Segmenter. In _Proceedings_
|
| 549 |
+
_of LREC_ . page to appear.
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
Dat Quoc Nguyen, Thanh Vu, Dai Quoc Nguyen, Mark
|
| 553 |
+
Dras, and Mark Johnson. 2017b. From Word Segmentation to POS Tagging for Vietnamese. In _Pro-_
|
| 554 |
+
_ceedings of ALTA_ . pages 108–113.
|
| 555 |
+
|
| 556 |
+
|
| 557 |
+
Phuong Thai Nguyen, Xuan Luong Vu, et al. 2009.
|
| 558 |
+
Building a Large Syntactically-Annotated Corpus of
|
| 559 |
+
Vietnamese. In _Proceedings_ _of_ _LAW_ . pages 182–
|
| 560 |
+
185.
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
Tuan-Phong Nguyen and Anh-Cuong Le. 2016. A Hybrid Approach to Vietnamese Word Segmentation.
|
| 564 |
+
In _Proceedings of RIVF_ . pages 114–119.
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
Tuan Phong Nguyen, Quoc Tuan Truong, Xuan Nam
|
| 568 |
+
Nguyen, and Anh Cuong Le. 2016b. An Experimental Investigation of Part-Of-Speech Taggers for Vietnamese. _VNU_ _Journal_ _of_ _Science:_ _Computer_ _Sci-_
|
| 569 |
+
_ence and Communication Engineering_ 32(3):11–25.
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
Joakim Nivre, Johan Hall, et al. 2007. MaltParser:
|
| 573 |
+
A language-independent system for data-driven dependency parsing. _Natural_ _Language_ _Engineering_
|
| 574 |
+
13(2):95–135.
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
Thai-Hoang Pham, Xuan-Khoai Pham, Tuan-Anh
|
| 578 |
+
Nguyen, and Phuong Le-Hong. 2017. NNVLP: A
|
| 579 |
+
Neural Network-Based Vietnamese Language Processing Toolkit. In _Proceedings of the IJCNLP 2017_
|
| 580 |
+
_System Demonstrations_ . pages 37–40.
|
| 581 |
+
|
| 582 |
+
|
| 583 |
+
Nils Reimers and Iryna Gurevych. 2017. Reporting Score Distributions Makes a Difference: Performance Study of LSTM-networks for Sequence Tagging. In _Proceedings of EMNLP_ . pages 338–348.
|
| 584 |
+
|
| 585 |
+
|
| 586 |
+
|
| 587 |
+
60
|
| 588 |
+
|
| 589 |
+
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1,1411 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Diversity-Aware Batch Active Learning for Dependency Parsing"
|
| 3 |
+
authors:
|
| 4 |
+
- "Tianze Shi"
|
| 5 |
+
- "Adrian Benton"
|
| 6 |
+
- "Igor Malioutov"
|
| 7 |
+
- "Ozan Irsoy"
|
| 8 |
+
year: 2021
|
| 9 |
+
venue: "NAACL 2021"
|
| 10 |
+
url: "https://aclanthology.org/2021.naacl-main.207/"
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# **Diversity-Aware Batch Active Learning for Dependency Parsing**
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
**Tianze Shi** _[∗]_
|
| 18 |
+
|
| 19 |
+
Cornell University
|
| 20 |
+
tianze@cs.cornell.edu
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
**Igor Malioutov**
|
| 24 |
+
Bloomberg L.P.
|
| 25 |
+
imalioutov@bloomberg.net
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
**Abstract**
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
While the predictive performance of modern
|
| 32 |
+
statistical dependency parsers relies heavily on
|
| 33 |
+
the availability of expensive expert-annotated
|
| 34 |
+
treebank data, not all annotations contribute
|
| 35 |
+
equally to the training of the parsers. In this
|
| 36 |
+
paper, we attempt to reduce the number of labeled examples needed to train a strong dependency parser using batch active learning
|
| 37 |
+
(AL). In particular, we investigate whether enforcing diversity in the sampled batches, using determinantal point processes (DPPs), can
|
| 38 |
+
improve over their diversity-agnostic counterparts. Simulation experiments on an English
|
| 39 |
+
newswire corpus show that selecting diverse
|
| 40 |
+
batches with DPPs is superior to strong selection strategies that do not enforce batch diversity, especially during the initial stages of the
|
| 41 |
+
learning process. Additionally, our diversityaware strategy is robust under a corpus duplication setting, where diversity-agnostic sampling
|
| 42 |
+
strategies exhibit significant degradation.
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
**1** **Introduction**
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
Though critical to parser training, data annotations
|
| 49 |
+
for dependency parsing are both expensive and
|
| 50 |
+
time-consuming to obtain. Syntactic analysis requires linguistic expertise and even after extensive
|
| 51 |
+
training, data annotation can still be burdensome.
|
| 52 |
+
The Penn Treebank project (Marcus et al., 1993)
|
| 53 |
+
reports that after two months of training, the annotators average 750 tokens per hour on the bracketing
|
| 54 |
+
task; the Prague Dependency Treebank (Bohmov¨ a´
|
| 55 |
+
et al., 2003) cost over $600 _,_ 000 and required 5
|
| 56 |
+
years to annotate roughly 90 _,_ 000 sentences (over
|
| 57 |
+
$5 per sentence). These high annotation costs
|
| 58 |
+
present a significant challenge to developing accurate dependency parsers for under-resourced languages and domains.
|
| 59 |
+
Active learning (AL; Settles, 2009) is a promising technique to reduce the annotation effort required to train a strong dependency parser by intel
|
| 60 |
+
|
| 61 |
+
_∗_ Work done during an internship at Bloomberg L.P.
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
**Adrian Benton**
|
| 66 |
+
Bloomberg L.P.
|
| 67 |
+
abenton10@bloomberg.net
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
**Ozan Irsoy** **[˙]**
|
| 71 |
+
Bloomberg L.P.
|
| 72 |
+
oirsoy@bloomberg.net
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
ligently selecting samples to annotate such that the
|
| 76 |
+
return of each annotator hour is as high as possible.
|
| 77 |
+
Popular selection strategies, such as uncertainty
|
| 78 |
+
sampling, associate each instance with a _quality_
|
| 79 |
+
measure based on the uncertainty or confidence
|
| 80 |
+
level of the current parser, and higher-quality instances are selected for annotation.
|
| 81 |
+
We focus on _batch_ _mode_ AL, since it is generally more efficient for annotators to label in
|
| 82 |
+
bulk. While early work in AL for parsing (Tang
|
| 83 |
+
et al., 2002; Hwa, 2000, 2004) cautions against
|
| 84 |
+
using individually-computed quality measures in
|
| 85 |
+
the batch setting, more recent work demonstrates
|
| 86 |
+
empirical success (e.g., Li et al., 2016) without explicitly handling intra-batch _diversity_ . In this paper,
|
| 87 |
+
we explore whether a diversity-aware approach can
|
| 88 |
+
improve the state of the art in AL for dependency
|
| 89 |
+
parsing. Specifically, we consider samples drawn
|
| 90 |
+
from determinantal point processes (DPPs) as a
|
| 91 |
+
query strategy to select batches of high-quality, yet
|
| 92 |
+
dissimilar instances (Kulesza and Taskar, 2012).
|
| 93 |
+
In this paper, we (1) propose a diversity-aware
|
| 94 |
+
batch AL query strategy for dependency parsing
|
| 95 |
+
compatible with existing selection strategies, (2)
|
| 96 |
+
empirically study three AL strategies with and without diversity factors, and (3) find that diversityaware selection strategies are superior to their
|
| 97 |
+
diversity-agnostic counterparts, especially during
|
| 98 |
+
the early stages of the learning process, in simulation experiments on an English newswire corpus.
|
| 99 |
+
This is critical in low-budget AL settings, which
|
| 100 |
+
we further confirm in a corpus duplication setting. [1]
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
**2** **Active Learning for Dependency**
|
| 104 |
+
**Parsing**
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
**2.1** **Dependency Parsing**
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
Dependency parsing (Kubler et al.¨, 2008) aims to
|
| 111 |
+
find the syntactic dependency structure, _y_, given a
|
| 112 |
+
length- _n_ input sentence _x_ = _x_ 1 _, x_ 2 _, . . ., xn_, where
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
[1Our code is publicly available at https://github.com/](https://github.com/tzshi/dpp-al-parsing-naacl21)
|
| 116 |
+
[tzshi/dpp-al-parsing-naacl21.](https://github.com/tzshi/dpp-al-parsing-naacl21)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
2616
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
_Proceedings of the 2021 Conference of the North American Chapter of the_
|
| 124 |
+
_Association for Computational Linguistics:_ _Human Language Technologies_, pages 2616–2626
|
| 125 |
+
June 6–11, 2021. ©2021 Association for Computational Linguistics
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
_y_ is a set of _n_ arcs over the tokens and the dummy
|
| 129 |
+
root symbol _x_ 0, and each arc ( _h, m_ ) _∈_ _y_ specifies
|
| 130 |
+
the head, _h_, and modifier word, _m_ . [2] In this work,
|
| 131 |
+
we adopt the conceptually-simple edge-factored
|
| 132 |
+
deep biaffine dependency parser (Dozat and Manning, 2017), which is competitive with the state
|
| 133 |
+
of the art in terms of accuracy, The parser assigns a locally-normalized attachment probability
|
| 134 |
+
_P_ att(head( _m_ ) = _h_ _|_ _x_ ) to each attachment candidate pair ( _h, m_ ) based on a biaffine scoring function. Refer to Appendix A for architecture details.
|
| 135 |
+
We define the score of the candidate parse tree
|
| 136 |
+
_s_ ( _y_ _|_ _x_ ) as [�] ( _h,m_ ) _∈y_ [log] _[ P]_ [att][(][head][(] _[m]_ [)] [=] _[h]_ _[|]_ _[x]_ [)][.]
|
| 137 |
+
The decoder finds the best scoring _y_ ˆ among all
|
| 138 |
+
valid trees _Y_ ( _x_ ): _y_ ˆ = arg max _y∈Y_ ( _x_ ) _s_ ( _y_ _| x_ ).
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
**2.2** **Active Learning (AL)**
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
We consider the pool-based batch AL scenario
|
| 145 |
+
where we assume a large collection of unlabeled
|
| 146 |
+
instances _U_ from which we sample a small subset
|
| 147 |
+
at a time to annotate after each round to form an
|
| 148 |
+
expanding labeled training set _L_ (Lewis and Gale,
|
| 149 |
+
1994). We use the superscript _i_ to denote the pool
|
| 150 |
+
of instances _U_ _[i]_ and _L_ _[i]_ after the _i_ -th round. _L_ [0]
|
| 151 |
+
|
| 152 |
+
is a small set of seed labeled instances to initiate
|
| 153 |
+
the process. Each iteration starts with training a
|
| 154 |
+
model _M_ _[i]_ based on _L_ _[i]_ . Next, all unlabeled data
|
| 155 |
+
instances in _U_ _[i]_ are parsed by _M_ _[i]_ and we select
|
| 156 |
+
a batch _U_ _[′]_ to annotate based on some criterion
|
| 157 |
+
_U_ _[′]_ = _C_ ( _M_ _[i]_ _, U_ _[i]_ ). The resulting labeled subset _L_ _[′]_
|
| 158 |
+
|
| 159 |
+
is added to _L_ _[i]_ [+1] = _L_ _[i]_ [ �] _L_ _[′]_ and _U_ _[i]_ [+1] = _U_ _[i]_ _−U_ _[′]_ .
|
| 160 |
+
The definition of the selection criterion _C_ is critical. A typical strategy associates each unlabeled
|
| 161 |
+
instance _Ui_ with a quality measure _qi_ based on, for
|
| 162 |
+
example, the model uncertainty level when parsing
|
| 163 |
+
_Ui_ . A _diversity-agnostic_ criterion sorts all unlabeled instances by their quality measures and takes
|
| 164 |
+
the top- _k_ as _U_ _[′]_ for a budget _k_ .
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
**2.3** **Quality Measures**
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
We consider three commonly-used quality measures adapted to the task of dependency parsing,
|
| 171 |
+
including uncertainty sampling, Bayesian active
|
| 172 |
+
learning, and a representativeness-based strategy.
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
**Average** **Marginal** **Probability** **(AMP)** measures parser uncertainty (Li et al., 2016):
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
AMP = 1 _−_ [1]
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
( _h,m_ [ˆ] ) _∈y_ ˆ _[P]_ [mar][(][head][(] _[m]_ [) = ˆ] _[h][ |][ x]_ [)] _[,]_
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
[1]
|
| 189 |
+
_n_
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
where _P_ mar is the marginal attachment probability
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
2For clarity, here we describe unlabeled parsing. In our
|
| 197 |
+
experiments, we train labeled dependency parsers, which additionally predict a dependency relation label _l_ for each arc.
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
_P_ mar(head( _m_ ) = _h | x_ ) = [�] ( _h,m_ ) _∈y_ _[P]_ [(] _[y]_ _[|][ x]_ [)] _[,]_
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
exp( _s_ ( _y|x_ ))
|
| 205 |
+
and _P_ ( _y_ _| x_ ) = - [The marginal]
|
| 206 |
+
_y_ _[′]_ _∈Y_ ( _x_ ) [exp(] _[s]_ [(] _[y][′][|][x]_ [))] [.]
|
| 207 |
+
|
| 208 |
+
probabilities can be derived efficiently using Kirchhoff’s theorem (Tutte, 1984; Koo et al., 2007).
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
**Bayesian** **Active** **Learning** **by** **Disagreement**
|
| 212 |
+
**(BALD)** measures the mutual information between the model parameters and the predictions.
|
| 213 |
+
We adopt the Monte Carlo dropout-based variant
|
| 214 |
+
(Gal et al., 2017; Siddhant and Lipton, 2018) and
|
| 215 |
+
measure the disagreement among predictions from
|
| 216 |
+
a neural model with _K_ different dropout masks,
|
| 217 |
+
which has been applied to active learning in NLP.
|
| 218 |
+
We adapt BALD to dependency parsing by aggregating disagreement at a token level:
|
| 219 |
+
|
| 220 |
+
BALD = 1 _−_ _n_ [1] - _m_ count(mode _K_ ( _h_ [1] _m_ _[,...,h][K]_ _m_ [))] _,_
|
| 221 |
+
|
| 222 |
+
where _h_ _[k]_ _m_ [denotes that][ (] _[h]_ _m_ _[k]_ _[, m]_ [)][ appears in the pre-]
|
| 223 |
+
diction given by the _k_ -th model.
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
**Information** **Density** **(ID)** mitigates the tendency of uncertainty sampling to favor outliers by
|
| 227 |
+
weighing examples by how _representative_ they are
|
| 228 |
+
of the entire dataset (Settles and Craven, 2008):
|
| 229 |
+
|
| 230 |
+
ID = AMP _×_ - _|U|_ 1 - _x_ _[′]_ _∈U_ [sim][cos][(] _[x, x][′]_ [)] - _,_
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
where cosine similarity is computed from the averaged contextualized features (§3.2).
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
**2.4** **Learning from Partial Annotations**
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
We follow Li et al. (2016) and select tokens to annotate their heads instead of annotating full sentences.
|
| 240 |
+
We first pick the most informative sentences and
|
| 241 |
+
then choose _p_ % tokens from them based on the
|
| 242 |
+
token-level versions of the quality measures (e.g.,
|
| 243 |
+
marginal probability instead of AMP).
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
**3** **Selecting Diverse Samples**
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
Near-duplicate examples are common in real-world
|
| 250 |
+
data (Broder et al., 1997; Manku et al., 2007), but
|
| 251 |
+
they provide overlapping utility to model training.
|
| 252 |
+
In the extreme case, with a diversity-agnostic strategy for active learning, identical examples will be
|
| 253 |
+
selected/excluded at the same time (Hwa, 2004).
|
| 254 |
+
To address this issue and to best utilize the annotation budget, it is important to consider diversity.
|
| 255 |
+
We adapt Bıyık et al. (2019) to explicitly model diversity using determinantal point processes (DPPs).
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
**3.1** **Determinantal Point Processes**
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
A DPP defines a probability distribution over subsets of some ground set of elements (Kulesza,
|
| 262 |
+
2012). In AL, the ground set is the unlabeled
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
2617
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
pool _U_ and a subset corresponds to a batch of
|
| 270 |
+
instances _U_ _[′]_ drawn from _U_ . DPPs provide an
|
| 271 |
+
explicit mechanism to ensure high-quality yet diverse sample selection by modeling both the quality measures and the similarities among examples. We adopt the _L_ -ensemble representation
|
| 272 |
+
of DPPs using the quality-diversity decomposition (Kulesza and Taskar, 2012) and parameterize the matrix _L_ as _Lij_ = _qiφiφ_ _[T]_ _j_ _[q][j]_ [,] [where] [each]
|
| 273 |
+
_qi_ _∈_ R is the quality measure for _Ui_ and each
|
| 274 |
+
_φi_ _∈_ R [1] _[×][d]_ is a _d_ -dimensional vector representation of _Ui_, which we refer to as _Ui_ ’s _diversity fea-_
|
| 275 |
+
_tures_ . [3] The probability of selecting a batch _B_ is
|
| 276 |
+
given by _P_ ( _B_ _⊆U_ ) _∝_ det( _LB_ ), where det( _·_ ) calculates the determinant and _LB_ is the submatrix of
|
| 277 |
+
_L_ indexed by elements in _B_ .
|
| 278 |
+
DPPs place high probability on diverse subsets
|
| 279 |
+
of high-quality items. Intuitively, the determinant
|
| 280 |
+
of _LB_ corresponds to the volume spanned by the
|
| 281 |
+
set of vectors _{qiφi_ _|_ _i_ _∈_ _B}_, and subsets with
|
| 282 |
+
larger _q_ values and orthogonal _φ_ vectors span larger
|
| 283 |
+
volumes than those with smaller _q_ values or similar
|
| 284 |
+
_φ_ vectors. We follow Kulesza (2012) and adapt
|
| 285 |
+
their greedy algorithm for finding the approximate
|
| 286 |
+
mode arg max _B P_ ( _B_ _⊆U_ ). This algorithm is
|
| 287 |
+
reproduced in Algorithm E1 in the appendix.
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
**3.2** **Diversity Features**
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
We consider two possibilities for the diversity features _φ_ . Each feature vector is unit-normalized.
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
**Averaged Contextualized Features** are defined
|
| 297 |
+
as _n_ [1] - _i_ **[x]** _[i]_ [, where] **[ x]** _[i]_ [ is a contextualized vector of]
|
| 298 |
+
|
| 299 |
+
_xi_ from the feature extractor used by the parser. By
|
| 300 |
+
this definition, we consider the instances to be similar to each other when the neural feature extractor
|
| 301 |
+
returns similar features such that the parser is likely
|
| 302 |
+
to predict similar structures for these instances.
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
**Predicted** **Subgraph** **Counts** explicitly represent the predicted tree structure. To balance richness and sparsity, we count the labeled but unlexicalized subgraph formed by the grandparent, the
|
| 306 |
+
parent and the token itself. Specifically, for each
|
| 307 |
+
token _m_, we can extract a subgraph denoted by
|
| 308 |
+
( _r_ 1 _, r_ 2), assuming the predicted dependency relation between its grandparent _g_ and its parent _h_ is
|
| 309 |
+
_r_ 1, and the relation between _h_ and _m_ is _r_ 2. The
|
| 310 |
+
parse tree for a length- _n_ sentence contains _n_ such
|
| 311 |
+
subgraphs. We apply tf-idf weighting to discount
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
3Although certain applications of DPPs may learn _q_ and _φ_
|
| 315 |
+
representations from supervision, we define _q_ and _φ a priori_,
|
| 316 |
+
since acquiring supervision in AL is, by definition, expensive.
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
Batch 5 10
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
Strategy w/o DPP w/ DPP w/o DPP w/ DPP
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
Random 85 _._ 68 _±._ 26 **86** _._ **61** _±._ 28 87 _._ 84 _±._ 26 **88** _._ **55** _±._ 23
|
| 327 |
+
AMP 85 _._ 98 _±._ 22 **86** _._ **77** _±._ 43 88 _._ 80 _±._ 18 **89** _._ **23** _±._ 29
|
| 328 |
+
BALD 86 _._ 24 _±._ 40 **86** _._ **86** _±._ 31 88 _._ 66 _±._ 36 **89** _._ **03** _±._ 10
|
| 329 |
+
ID **86** _._ **68** _±._ 26 86 _._ 56 _±._ 24 88 _._ 96 _±._ 20 **89** _._ **06** _±._ 16
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
Table 1: LAS after 5 and 10 rounds of annotation for strategies
|
| 333 |
+
with and without modeling diversity through DPP.
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
the influence from frequent subgraphs.
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
**4** **Experiments and Results**
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
**Dataset** We use the Revised English News Text
|
| 343 |
+
Treebank [4] (Bies et al., 2015) converted to Universal Dependencies 2.0 using the conversion tool included in Stanford Parser (Manning et al., 2014)
|
| 344 |
+
version 4.0.0. We use sections 02-21 for training,
|
| 345 |
+
22 for development and 23 for test.
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
**Setting** We perform experiments by simulating
|
| 349 |
+
the annotation process using treebank data. We
|
| 350 |
+
sample 128 sentences uniformly for the initial labeled pool and each following round selects 500
|
| 351 |
+
tokens for partial annotation. We run each setting
|
| 352 |
+
five times using different random initializations and
|
| 353 |
+
report the means and standard deviations of the labeled attachment scores (LAS). Appendix B has
|
| 354 |
+
unlabeled attachment score (UAS) results.
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
**Baselines** While we construct our own baselines for self-contained comparisons, the diversityagnostic AMP (w/o DPP) largely replicates the
|
| 358 |
+
state-of-the-art selection strategy of Li et al. (2016).
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
**Implementation** We finetune a pretrained multilingual XLM-RoBERTa base model (Conneau
|
| 362 |
+
et al., 2020) as our feature extractor. [5] See Appendix E for implementation details.
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
**Main Results** Table 1 compares LAS after 5 and
|
| 366 |
+
10 rounds of annotation. Our dependency parser
|
| 367 |
+
reaches 95 _._ 64 UAS and 94 _._ 06 LAS, when trained
|
| 368 |
+
with the full dataset (more than one million tokens).
|
| 369 |
+
Training data collected from 30 annotation rounds
|
| 370 |
+
( _≈_ 17 _,_ 500 tokens) correspond to roughly 2% of
|
| 371 |
+
the full dataset, but already support an LAS of up
|
| 372 |
+
to 92 through AL. We find that diversity-aware
|
| 373 |
+
strategies generally improve over their diversityagnostic counterparts. Even for a random selection
|
| 374 |
+
strategy, ensuring diversity with a DPP is superior
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
[4https://catalog.ldc.upenn.edu/LDC2015T13](https://catalog.ldc.upenn.edu/LDC2015T13)
|
| 378 |
+
5To construct the averaged contextualized features, we
|
| 379 |
+
also use the fine-tuned feature extractor. In our preliminary
|
| 380 |
+
experiments, we have tried freezing the feature extractors, but
|
| 381 |
+
this variant did not perform as well.
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
2618
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
92
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
90
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
88
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
86
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
84
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
0 _._ 4
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
0 _._ 2
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
82
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
Annotation round
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
Figure 1: Learning curves for our DPP-based diversity-aware
|
| 422 |
+
selection strategies, comparing predicted subgraph counts
|
| 423 |
+
versus averaged contextualized features as diversity features.
|
| 424 |
+
Both use AMP as their quality measures.
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
to simple random selection. With AMP and BALD,
|
| 428 |
+
our diversity-aware strategy sees a larger improvement earlier in the learning process. ID models
|
| 429 |
+
representativeness of instances, and our diversityaware strategy adds less utility compared with other
|
| 430 |
+
quality measures, although we do notice a large improvement after the first annotation round for ID:
|
| 431 |
+
82 _._ 40 _±._ 48 vs. 83 _._ 36 _±._ 54 (w/ DPP) – a similar trend
|
| 432 |
+
to AMP and BALD, but at an earlier stage of AL.
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
**Experiments** **with** **Different** **Diversity** **Features**
|
| 436 |
+
Figure 1 compares our two definitions of diversity features, and we find that predicted subgraph
|
| 437 |
+
counts provide stronger performance than that of
|
| 438 |
+
averaged contextualized features. We hypothesize
|
| 439 |
+
this is due to the fact that the subgraph counts represent structures more explicitly, thus they are more
|
| 440 |
+
useful in maintaining structural diversity in AL.
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
**Intra-Batch** **Diversity** To quantify intra-batch
|
| 444 |
+
diversity among the set of sentences _B_ picked by
|
| 445 |
+
the selection strategies, we adapt the measures used
|
| 446 |
+
by Chen et al. (2018) and define intra-batch average
|
| 447 |
+
distance (IBAD) and intra-batch minimal distance
|
| 448 |
+
(IBMD) as follows:
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
IBAD = mean
|
| 452 |
+
_i,j∈B,i_ = _j_ [(1] _[ −]_ [sim][cos][(] _[i, j]_ [))] _[,]_
|
| 453 |
+
|
| 454 |
+
|
| 455 |
+
IBMD = mean min
|
| 456 |
+
_i∈B_ _j∈B,i_ = _j_ [(1] _[ −]_ [sim][cos][(] _[i, j]_ [))] _[.]_
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
A higher value on these measures indicates better
|
| 460 |
+
intra-batch diversity. Figure 2 compares diversityagnostic and diversity-aware sampling strategies
|
| 461 |
+
using the two different diversity features. We confirm that DPPs indeed promote diverse samples
|
| 462 |
+
in the selected batches, while intra-batch diversity
|
| 463 |
+
naturally increases even for the diversity-agnostic
|
| 464 |
+
strategies. Additionally, we observe that the benefits of DPPs are more prominent when using pre
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
0
|
| 468 |
+
5 10 15 20
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
Annotation round
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
Figure 2: Intra-batch average distance (IBAD) and intrabatch minimal distance (IBMD) measures comparing diversityagnostic and diversity-aware AMP-based sample selection
|
| 475 |
+
strategies. The distances are derived from averaged contextualized features (top) and predicted subgraph counts (bottom).
|
| 476 |
+
A higher value indicates better intra-batch diversity.
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
dicted subgraph counts compared with averaged
|
| 480 |
+
contextualized features. This can help explain the
|
| 481 |
+
relative success of the former diversity features.
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
**Corpus** **Duplication** **Setting** In our qualitative
|
| 485 |
+
analysis (Appendix C), we find that diversityagnostic selection strategies tend to select nearduplicate sentences. To examine this phenomenon
|
| 486 |
+
in isolation, we repeat the training corpus twice and
|
| 487 |
+
observe the effect of diversity-aware strategies. The
|
| 488 |
+
corpus duplication technique has been previously
|
| 489 |
+
used to probe semantic models (Schofield et al.,
|
| 490 |
+
2017). Figure 3 shows learning curves for strategies under the original and corpus duplication settings. As expected, diversity-aware strategies consistently outperform their diversity-agnostic counterparts across both settings, while some diversityagnostic strategies (e.g., AMP) even underperform
|
| 491 |
+
uniform random selection in the duplicated setting.
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
**Interpreting** **the** **Effectiveness** **of** **Diversity-Ag-**
|
| 495 |
+
**nostic** **Models** Figure 4 visualizes the density
|
| 496 |
+
distributions of the top 200 data instances by AMP
|
| 497 |
+
over the diversity feature space reduced to two dimensions through t-SNE (van der Maaten and Hinton, 2008). During the initial stage of active learning, data with the highest quality measures are con
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
0
|
| 501 |
+
5 10 15 20
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
1
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
0 _._ 8
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
0 _._ 6
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
0 _._ 4
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
0 _._ 2
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
2619
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
92
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
90
|
| 530 |
+
|
| 531 |
+
|
| 532 |
+
88
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
86
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
84
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
|
| 549 |
+
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
|
| 553 |
+
|
| 554 |
+
92
|
| 555 |
+
|
| 556 |
+
|
| 557 |
+
90
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
88
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
86
|
| 564 |
+
|
| 565 |
+
|
| 566 |
+
84
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
92
|
| 571 |
+
|
| 572 |
+
|
| 573 |
+
90
|
| 574 |
+
|
| 575 |
+
|
| 576 |
+
88
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
86
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
84
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
|
| 586 |
+
82
|
| 587 |
+
10 20 30
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
|
| 591 |
+
82
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
|
| 595 |
+
82
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
|
| 599 |
+
Figure 3: Learning curves of different sampling strategies based on AMP (left), BALD (middle) and ID (right), comparing
|
| 600 |
+
diversity-aware (w/ DPP) and diversity-agnostic variants using the original and duplicated corpus (dup). The _x_ -axis shows the
|
| 601 |
+
number of rounds for annotation. Random (dup) curves overlap with those of Random and are omitted for readability.
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
60
|
| 606 |
+
|
| 607 |
+
|
| 608 |
+
40
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
20
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
0
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
20
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
40
|
| 621 |
+
|
| 622 |
+
|
| 623 |
+
60
|
| 624 |
+
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
80
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
70
|
| 631 |
+
|
| 632 |
+
|
| 633 |
+
60
|
| 634 |
+
|
| 635 |
+
|
| 636 |
+
50
|
| 637 |
+
|
| 638 |
+
|
| 639 |
+
40
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
30
|
| 643 |
+
|
| 644 |
+
|
| 645 |
+
20
|
| 646 |
+
|
| 647 |
+
|
| 648 |
+
10
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
Figure 4: t-SNE visualization of the distributions of the 200
|
| 653 |
+
highest-quality unlabeled sentences over the diversity feature
|
| 654 |
+
space after the 1 [st] (left) and the 10 [th] (right) annotation rounds
|
| 655 |
+
using AMP without DPPs. Darker region indicates more data
|
| 656 |
+
points residing in that diversity feature neighborhood. The
|
| 657 |
+
left figure contains a dense region, while the data in the right
|
| 658 |
+
figure are spread out in the feature space.
|
| 659 |
+
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
|
| 664 |
+
|
| 665 |
+
|
| 666 |
+
centrated within a small neighborhood. A diversityagnostic strategy will sample similar examples for
|
| 667 |
+
annotation. After a few rounds of annotation and
|
| 668 |
+
model training, the distribution of high quality examples spreads out, and an AMP selection strategy
|
| 669 |
+
is likely to sample a diverse set of examples without
|
| 670 |
+
explicitly modeling diversity. Our analysis corroborates previous findings (Thompson et al., 1999)
|
| 671 |
+
that small annotation batches are effective early
|
| 672 |
+
in uncertainty sampling, avoiding selecting many
|
| 673 |
+
near-duplicate examples when intra-batch diversity
|
| 674 |
+
is low, but a larger batch size is more efficient later
|
| 675 |
+
in training once intra-batch diversity increases.
|
| 676 |
+
|
| 677 |
+
|
| 678 |
+
**5** **Related Work**
|
| 679 |
+
|
| 680 |
+
|
| 681 |
+
Modeling diversity in batch-mode AL (Brinker,
|
| 682 |
+
2003) has recently attracted attention in the machine learning community. Kirsch et al. (2019)
|
| 683 |
+
introduce a Bayesian batch-mode selection strategy by estimating the mutual information between
|
| 684 |
+
a set of samples and the model parameters. Ash
|
| 685 |
+
et al. (2020) present a diversity-inducing sampling
|
| 686 |
+
method using gradient embeddings. Most related
|
| 687 |
+
to our work, Bıyık et al. (2019) first apply DPPs
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
to batch-mode AL. Building on their approach, we
|
| 692 |
+
flesh out a DPP treatment for AL for a structured
|
| 693 |
+
prediction task, dependency parsing. Previously,
|
| 694 |
+
Shen et al. (2018) consider named entity recognition but they report negative results for a diversityinducing variant of their sampling method.
|
| 695 |
+
Due to the high annotation cost, AL is a popular
|
| 696 |
+
technique for parsing and parse selection (Osborne
|
| 697 |
+
and Baldridge, 2004). Recent advances focus on
|
| 698 |
+
reducing full-sentence annotations to a subset of
|
| 699 |
+
tokens within a sentence (Sassano and Kurohashi,
|
| 700 |
+
2010; Mirroshandel and Nasr, 2011; Majidi and
|
| 701 |
+
Crane, 2013; Flannery and Mori, 2015; Li et al.,
|
| 702 |
+
2016). We show that AL for parsing can further
|
| 703 |
+
benefit from diversity-aware sampling strategies.
|
| 704 |
+
DPPs have previously been successfully applied
|
| 705 |
+
to the tasks of extractive text summarization (Cho
|
| 706 |
+
et al., 2019a,b) and modeling phoneme inventories
|
| 707 |
+
(Cotterell and Eisner, 2017). In this work, we show
|
| 708 |
+
that DPPs also provide a useful framework for understanding and modeling quality and diversity in
|
| 709 |
+
active learning for NLP tasks.
|
| 710 |
+
|
| 711 |
+
|
| 712 |
+
**6** **Conclusion**
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
We show that compared with their diversityagnostic counterparts, diversity-aware sampling
|
| 716 |
+
strategies not only lead to higher data efficiency, but
|
| 717 |
+
are also more robust under corpus duplication settings. Our work invites future research into methods, utility and success conditions for modeling
|
| 718 |
+
diversity in active learning for NLP tasks.
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
**Acknowledgements**
|
| 722 |
+
|
| 723 |
+
|
| 724 |
+
We thank the anonymous reviewers for their insightful reviews, and Prabhanjan Kambadur, ChenTse Tsai, and Minjie Xu for discussion and comments. Tianze Shi acknowledges support from
|
| 725 |
+
Bloomberg’s Data Science Ph.D. Fellowship.
|
| 726 |
+
|
| 727 |
+
|
| 728 |
+
|
| 729 |
+
2620
|
| 730 |
+
|
| 731 |
+
|
| 732 |
+
**References**
|
| 733 |
+
|
| 734 |
+
|
| 735 |
+
Jordan T. Ash, Chicheng Zhang, Akshay Krishnamurthy, John Langford, and Alekh Agarwal. 2020.
|
| 736 |
+
[Deep batch active learning by diverse, uncertain gra-](https://openreview.net/forum?id=ryghZJBKPS)
|
| 737 |
+
[dient lower bounds.](https://openreview.net/forum?id=ryghZJBKPS) In _International Conference on_
|
| 738 |
+
_Learning Representations_, Online. OpenReview.net.
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
Ann Bies, Justin Mott, and Colin Warner. 2015. [En-](https://catalog.ldc.upenn.edu/LDC2015T13)
|
| 742 |
+
glish news text [treebank:](https://catalog.ldc.upenn.edu/LDC2015T13) Penn Treebank revised
|
| 743 |
+
[(LDC2015T13).](https://catalog.ldc.upenn.edu/LDC2015T13)
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
Erdem Bıyık, Kenneth Wang, Nima Anari, and
|
| 747 |
+
Dorsa Sadigh. 2019. Batch active learning using [determinantal](https://arxiv.org/pdf/1906.07975.pdf) point processes. _arXiv_ _preprint_
|
| 748 |
+
_arXiv:1906.07975_ .
|
| 749 |
+
|
| 750 |
+
|
| 751 |
+
Alena B¨ohmov´a, Jan Hajiˇc, Eva Hajiˇcov´a, and Barbora
|
| 752 |
+
Hladk´a. 2003. [The Prague dependency treebank.](https://doi.org/10.1007/978-94-010-0201-1_7) In
|
| 753 |
+
Anne Abeill´e, editor, _Treebanks:_ _Building_ _and_ _Us-_
|
| 754 |
+
_ing_ _Parsed_ _Corpora_, Text, Speech and Language
|
| 755 |
+
Technology, pages 103–127. Springer Netherlands,
|
| 756 |
+
Dordrecht.
|
| 757 |
+
|
| 758 |
+
|
| 759 |
+
Klaus Brinker. 2003. Incorporating [diversity](https://www.aaai.org/Papers/ICML/2003/ICML03-011.pdf) in active learning with [support](https://www.aaai.org/Papers/ICML/2003/ICML03-011.pdf) vector machines. In _Pro-_
|
| 760 |
+
_ceedings_ _of_ _the_ _20th_ _International_ _Conference_ _on_
|
| 761 |
+
_Machine_ _Learning_, pages 59–66, Washington, DC,
|
| 762 |
+
USA. AAAI Press.
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
Andrei Z. Broder, Steven C. Glassman, Mark S. Manasse, and Geoffrey Zweig. 1997. [Syntactic](https://doi.org/10.1016/S0169-7552(97)00031-7) cluster[ing of the Web.](https://doi.org/10.1016/S0169-7552(97)00031-7) _Computer Networks and ISDN Sys-_
|
| 766 |
+
_tems_, 29(8):1157–1166.
|
| 767 |
+
|
| 768 |
+
|
| 769 |
+
Laming Chen, Guoxin Zhang, and Hanning Zhou.
|
| 770 |
+
2018. Fast greedy MAP [inference](https://dl.acm.org/doi/10.5555/3327345.3327465) for determinan[tal point process to improve](https://dl.acm.org/doi/10.5555/3327345.3327465) recommendation diver[sity.](https://dl.acm.org/doi/10.5555/3327345.3327465) In _Proceedings of the 32nd International Con-_
|
| 771 |
+
_ference_ _on_ _Neural_ _Information_ _Processing_ _Systems_,
|
| 772 |
+
pages 5627–5638, Montr´eal, Canada.
|
| 773 |
+
|
| 774 |
+
|
| 775 |
+
Sangwoo Cho, Logan Lebanoff, Hassan Foroosh, and
|
| 776 |
+
Fei Liu. 2019a. Improving the [similarity](https://doi.org/10.18653/v1/P19-1098) measure
|
| 777 |
+
[of determinantal point processes for extractive multi-](https://doi.org/10.18653/v1/P19-1098)
|
| 778 |
+
document [summarization.](https://doi.org/10.18653/v1/P19-1098) In _Proceedings_ _of_ _the_
|
| 779 |
+
_57th_ _Annual_ _Meeting_ _of_ _the_ _Association_ _for_ _Com-_
|
| 780 |
+
_putational_ _Linguistics_, pages 1027–1038, Florence,
|
| 781 |
+
Italy. Association for Computational Linguistics.
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
Sangwoo Cho, Chen Li, Dong Yu, Hassan Foroosh,
|
| 785 |
+
and Fei Liu. 2019b. [Multi-document](https://doi.org/10.18653/v1/D19-5412) summarization with determinantal [point](https://doi.org/10.18653/v1/D19-5412) processes and contextualized [representations.](https://doi.org/10.18653/v1/D19-5412) In _Proceedings_ _of_ _the_
|
| 786 |
+
_2nd_ _Workshop_ _on_ _New_ _Frontiers_ _in_ _Summarization_,
|
| 787 |
+
pages 98–103, Hong Kong, China. Association for
|
| 788 |
+
Computational Linguistics.
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
Yoeng-Jin Chu and Tseng-Hong Liu. 1965. On the
|
| 792 |
+
shortest arborescence of a directed graph. _Science_
|
| 793 |
+
_Sinica_, 14:1396–1400.
|
| 794 |
+
|
| 795 |
+
|
| 796 |
+
Alexis Conneau, Kartikay Khandelwal, Naman Goyal,
|
| 797 |
+
Vishrav Chaudhary, Guillaume Wenzek, Francisco
|
| 798 |
+
Guzm´an, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. 2020. [Unsupervised](https://doi.org/10.18653/v1/2020.acl-main.747)
|
| 799 |
+
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
cross-lingual [representation](https://doi.org/10.18653/v1/2020.acl-main.747) learning at scale. In
|
| 803 |
+
_Proceedings of the 58th Annual Meeting of the Asso-_
|
| 804 |
+
_ciation_ _for_ _Computational_ _Linguistics_, pages 8440–
|
| 805 |
+
8451, Online. Association for Computational Linguistics.
|
| 806 |
+
|
| 807 |
+
|
| 808 |
+
Ryan Cotterell and Jason Eisner. 2017. [Probabilistic](https://doi.org/10.18653/v1/P17-1109)
|
| 809 |
+
typology: [Deep generative models of vowel invento-](https://doi.org/10.18653/v1/P17-1109)
|
| 810 |
+
[ries.](https://doi.org/10.18653/v1/P17-1109) In _Proceedings of the 55th Annual Meeting of_
|
| 811 |
+
_the_ _Association_ _for_ _Computational_ _Linguistics_ _(Vol-_
|
| 812 |
+
_ume 1:_ _Long Papers)_, pages 1182–1192, Vancouver,
|
| 813 |
+
Canada. Association for Computational Linguistics.
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
Timothy Dozat and Christopher D. Manning. 2017.
|
| 817 |
+
|
| 818 |
+
Deep biaffine attention [for](https://openreview.net/forum?id=Hk95PK9le) neural dependency pars[ing.](https://openreview.net/forum?id=Hk95PK9le) In _International_ _Conference_ _on_ _Learning_ _Rep-_
|
| 819 |
+
_resentations_, Toulon, France. OpenReview.net.
|
| 820 |
+
|
| 821 |
+
|
| 822 |
+
Jack Edmonds. 1967. Optimum branchings. _Journal_
|
| 823 |
+
_of_ _Research_ _of_ _the_ _National_ _Bureau_ _of_ _Standards_,
|
| 824 |
+
71B(4):233–240.
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
Daniel Flannery and Shinsuke Mori. 2015. [Combin-](https://doi.org/10.18653/v1/W15-2202)
|
| 828 |
+
[ing active learning and partial annotation for domain](https://doi.org/10.18653/v1/W15-2202)
|
| 829 |
+
[adaptation of a Japanese dependency parser.](https://doi.org/10.18653/v1/W15-2202) In _Pro-_
|
| 830 |
+
_ceedings_ _of_ _the_ _14th_ _International_ _Conference_ _on_
|
| 831 |
+
_Parsing_ _Technologies_, pages 11–19, Bilbao, Spain.
|
| 832 |
+
Association for Computational Linguistics.
|
| 833 |
+
|
| 834 |
+
|
| 835 |
+
Yarin Gal, Riashat Islam, and Zoubin Ghahramani.
|
| 836 |
+
2017. Deep Bayesian [active](http://proceedings.mlr.press/v70/gal17a.html) learning with image
|
| 837 |
+
[data.](http://proceedings.mlr.press/v70/gal17a.html) In _Proceedings of the 34th International Con-_
|
| 838 |
+
_ference_ _on_ _Machine_ _Learning_, pages 1183–1192,
|
| 839 |
+
Sydney, Australia. PMLR.
|
| 840 |
+
|
| 841 |
+
|
| 842 |
+
Rebecca Hwa. 2000. Sample [selection](https://doi.org/10.3115/1117794.1117800) for statistical
|
| 843 |
+
grammar induction. In _Proceedings_ _of_ _the_ _2000_
|
| 844 |
+
_Joint SIGDAT Conference on Empirical Methods in_
|
| 845 |
+
_Natural_ _Language_ _Processing_ _and_ _Very_ _Large_ _Cor-_
|
| 846 |
+
_pora_, pages 45–52, Hong Kong, China. Association
|
| 847 |
+
for Computational Linguistics.
|
| 848 |
+
|
| 849 |
+
|
| 850 |
+
Rebecca Hwa. 2004. Sample [selection](https://doi.org/10.1162/0891201041850894) for statistical
|
| 851 |
+
[parsing.](https://doi.org/10.1162/0891201041850894) _Computational Linguistics_, 30(3):253–276.
|
| 852 |
+
|
| 853 |
+
|
| 854 |
+
Diederik P. Kingma and Jimmy Ba. 2015. [Adam:](https://arxiv.org/abs/1412.6980)
|
| 855 |
+
A method for [stochastic](https://arxiv.org/abs/1412.6980) optimization. In _Interna-_
|
| 856 |
+
_tional Conference on Learning Representations_, San
|
| 857 |
+
Diego, California, USA.
|
| 858 |
+
|
| 859 |
+
|
| 860 |
+
Andreas Kirsch, Joost van Amersfoort, and Yarin Gal.
|
| 861 |
+
2019. BatchBALD: [Efficient](http://papers.nips.cc/paper/8925-batchbald-efficient-and-diverse-batch-acquisition-for-deep-bayesian-active-learning.pdf) and diverse batch acquisition for deep [Bayesian](http://papers.nips.cc/paper/8925-batchbald-efficient-and-diverse-batch-acquisition-for-deep-bayesian-active-learning.pdf) active learning. In _Ad-_
|
| 862 |
+
_vances_ _in_ _Neural_ _Information_ _Processing_ _Systems_
|
| 863 |
+
_32_, pages 7026–7037, Vancouver, Canada. Curran
|
| 864 |
+
Associates, Inc.
|
| 865 |
+
|
| 866 |
+
|
| 867 |
+
Nikita Kitaev, Steven Cao, and Dan Klein. 2019. [Multi-](https://doi.org/10.18653/v1/P19-1340)
|
| 868 |
+
lingual constituency [parsing](https://doi.org/10.18653/v1/P19-1340) with self-attention and
|
| 869 |
+
[pre-training.](https://doi.org/10.18653/v1/P19-1340) In _Proceedings_ _of_ _the_ _57th_ _Annual_
|
| 870 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 871 |
+
_guistics_, pages 3499–3505, Florence, Italy. Association for Computational Linguistics.
|
| 872 |
+
|
| 873 |
+
|
| 874 |
+
|
| 875 |
+
2621
|
| 876 |
+
|
| 877 |
+
|
| 878 |
+
Terry Koo, Amir Globerson, Xavier Carreras, and
|
| 879 |
+
Michael Collins. 2007. Structured [prediction](https://www.aclweb.org/anthology/D07-1015) models via the [matrix-tree](https://www.aclweb.org/anthology/D07-1015) theorem. In _Proceedings_
|
| 880 |
+
_of_ _the_ _2007_ _Joint_ _Conference_ _on_ _Empirical_ _Meth-_
|
| 881 |
+
_ods_ _in_ _Natural_ _Language_ _Processing_ _and_ _Com-_
|
| 882 |
+
_putational_ _Natural_ _Language_ _Learning_ _(EMNLP-_
|
| 883 |
+
_CoNLL)_, pages 141–150, Prague, Czech Republic.
|
| 884 |
+
Association for Computational Linguistics.
|
| 885 |
+
|
| 886 |
+
|
| 887 |
+
Sandra K¨ubler, Ryan McDonald, and Joakim Nivre.
|
| 888 |
+
2008. _[Dependency](https://doi.org/10.2200/S00169ED1V01Y200901HLT002)_ _Parsing_, volume 2 of _Synthesis_
|
| 889 |
+
_Lectures_ _on_ _Human_ _Language_ _Technologies_ . Morgan and Claypool.
|
| 890 |
+
|
| 891 |
+
|
| 892 |
+
Taku Kudo and John Richardson. 2018. [SentencePiece:](https://doi.org/10.18653/v1/D18-2012)
|
| 893 |
+
A simple and language [independent](https://doi.org/10.18653/v1/D18-2012) subword tok[enizer and detokenizer for neural text processing.](https://doi.org/10.18653/v1/D18-2012) In
|
| 894 |
+
_Proceedings_ _of_ _the_ _2018_ _Conference_ _on_ _Empirical_
|
| 895 |
+
_Methods_ _in_ _Natural_ _Language_ _Processing:_ _System_
|
| 896 |
+
_Demonstrations_, pages 66–71, Brussels, Belgium.
|
| 897 |
+
Association for Computational Linguistics.
|
| 898 |
+
|
| 899 |
+
|
| 900 |
+
Alex Kulesza and Ben Taskar. 2012. Determinantal
|
| 901 |
+
point processes for machine learning. _Foundations_
|
| 902 |
+
_and Trends in Machine Learning_, 5(2–3):123–286.
|
| 903 |
+
|
| 904 |
+
|
| 905 |
+
John A. Kulesza. 2012. _Learning_ _with_ _Determinantal_
|
| 906 |
+
_Point_ _Processes_ . Ph.D. thesis, University of Pennsylvania.
|
| 907 |
+
|
| 908 |
+
|
| 909 |
+
David D. Lewis and William A. Gale. 1994. A sequential algorithm for training text classifiers. In
|
| 910 |
+
_Proceedings of the 17th Annual International ACM-_
|
| 911 |
+
_SIGIR Conference on Research and Development in_
|
| 912 |
+
_Information_ _Retrieval_, pages 3–12, Dublin, Ireland.
|
| 913 |
+
ACM/Springer.
|
| 914 |
+
|
| 915 |
+
|
| 916 |
+
Zhenghua Li, Min Zhang, Yue Zhang, Zhanyi Liu,
|
| 917 |
+
Wenliang Chen, Hua Wu, and Haifeng Wang. 2016.
|
| 918 |
+
[Active learning for dependency parsing with partial](https://www.aclweb.org/anthology/P16-1033)
|
| 919 |
+
[annotation.](https://www.aclweb.org/anthology/P16-1033) In _Proceedings of the 54th Annual Meet-_
|
| 920 |
+
_ing of the Association for Computational Linguistics_
|
| 921 |
+
_(Volume_ _1:_ _Long_ _Papers)_, pages 344–354, Berlin,
|
| 922 |
+
Germany.
|
| 923 |
+
|
| 924 |
+
|
| 925 |
+
Saeed Majidi and Gregory Crane. 2013. [Active](https://www.aclweb.org/anthology/W13-5711) learning for dependency [parsing](https://www.aclweb.org/anthology/W13-5711) by a committee of
|
| 926 |
+
[parsers.](https://www.aclweb.org/anthology/W13-5711) In _Proceedings_ _of_ _the_ _13th_ _International_
|
| 927 |
+
_Conference_ _on_ _Parsing_ _Technologies_ _(IWPT_ _2013)_,
|
| 928 |
+
pages 98–105, Nara, Japan. Assocation for Computational Linguistics.
|
| 929 |
+
|
| 930 |
+
|
| 931 |
+
Gurmeet Singh Manku, Arvind Jain, and Anish
|
| 932 |
+
Das Sarma. 2007. Detecting [near-duplicates](https://doi.org/10.1145/1242572.1242592) for
|
| 933 |
+
web [crawling.](https://doi.org/10.1145/1242572.1242592) In _Proceedings_ _of_ _the_ _16th_ _Interna-_
|
| 934 |
+
_tional_ _Conference_ _on_ _World_ _Wide_ _Web_, pages 141–
|
| 935 |
+
150, Banff, Alberta, Canada. Association for Computing Machinery.
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
Christopher Manning, Mihai Surdeanu, John Bauer,
|
| 939 |
+
Jenny Finkel, Steven Bethard, and David McClosky.
|
| 940 |
+
2014. [The Stanford CoreNLP natural language pro-](https://doi.org/10.3115/v1/P14-5010)
|
| 941 |
+
cessing toolkit. In _Proceedings_ _of_ _52nd_ _Annual_
|
| 942 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 943 |
+
_guistics:_ _System Demonstrations_, pages 55–60, Baltimore, Maryland, USA. Association for Computational Linguistics.
|
| 944 |
+
|
| 945 |
+
|
| 946 |
+
|
| 947 |
+
Mitchell P. Marcus, Beatrice Santorini, and Mary Ann
|
| 948 |
+
Marcinkiewicz. 1993. Building a [large](https://www.aclweb.org/anthology/J93-2004) annotated
|
| 949 |
+
corpus of English: The Penn Treebank. _Computa-_
|
| 950 |
+
_tional Linguistics_, 19(2):313–330.
|
| 951 |
+
|
| 952 |
+
|
| 953 |
+
Seyed Abolghasem Mirroshandel and Alexis Nasr.
|
| 954 |
+
2011. [Active learning for dependency parsing using](https://www.aclweb.org/anthology/W11-2917)
|
| 955 |
+
[partially annotated sentences.](https://www.aclweb.org/anthology/W11-2917) In _Proceedings of the_
|
| 956 |
+
_12th International Conference on Parsing Technolo-_
|
| 957 |
+
_gies_, pages 140–149, Dublin, Ireland. Association
|
| 958 |
+
for Computational Linguistics.
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
Miles Osborne and Jason Baldridge. 2004. [Ensemble-](https://www.aclweb.org/anthology/N04-1012)
|
| 962 |
+
based active [learning](https://www.aclweb.org/anthology/N04-1012) for parse selection. In _Pro-_
|
| 963 |
+
_ceedings_ _of_ _the_ _Human_ _Language_ _Technology_ _Con-_
|
| 964 |
+
_ference of the North American Chapter of the Asso-_
|
| 965 |
+
_ciation for Computational Linguistics: HLT-NAACL_
|
| 966 |
+
_2004_, pages 89–96, Boston, Massachusetts, USA.
|
| 967 |
+
Association for Computational Linguistics.
|
| 968 |
+
|
| 969 |
+
|
| 970 |
+
Adam Paszke, Sam Gross, Francisco Massa, Adam
|
| 971 |
+
Lerer, James Bradbury, Gregory Chanan, Trevor
|
| 972 |
+
Killeen, Zeming Lin, Natalia Gimelshein, Luca
|
| 973 |
+
Antiga, Alban Desmaison, Andreas Kopf, Edward
|
| 974 |
+
Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang,
|
| 975 |
+
Junjie Bai, and Soumith Chintala. 2019. [PyTorch:](http://papers.nips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf)
|
| 976 |
+
An imperative style, [high-performance](http://papers.nips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf) deep learn[ing library.](http://papers.nips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf) In _Advances in Neural Information Pro-_
|
| 977 |
+
_cessing_ _Systems_ _32_, pages 8026–8037, Vancouver,
|
| 978 |
+
Canada. Curran Associates, Inc.
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
Manabu Sassano and Sadao Kurohashi. 2010. [Using](https://www.aclweb.org/anthology/P10-1037)
|
| 982 |
+
smaller constituents [rather](https://www.aclweb.org/anthology/P10-1037) than sentences in active
|
| 983 |
+
learning for [Japanese](https://www.aclweb.org/anthology/P10-1037) dependency parsing. In _Pro-_
|
| 984 |
+
_ceedings_ _of_ _the_ _48th_ _Annual_ _Meeting_ _of_ _the_ _Asso-_
|
| 985 |
+
_ciation_ _for_ _Computational_ _Linguistics_, pages 356–
|
| 986 |
+
365, Uppsala, Sweden. Association for Computational Linguistics.
|
| 987 |
+
|
| 988 |
+
|
| 989 |
+
Alexandra Schofield, Laure Thompson, and David
|
| 990 |
+
Mimno. 2017. Quantifying the [effects](https://doi.org/10.18653/v1/D17-1290) of text duplication on [semantic](https://doi.org/10.18653/v1/D17-1290) models. In _Proceedings_ _of_
|
| 991 |
+
_the 2017 Conference on Empirical Methods in Natu-_
|
| 992 |
+
_ral Language Processing_, pages 2737–2747, Copenhagen, Denmark. Association for Computational
|
| 993 |
+
Linguistics.
|
| 994 |
+
|
| 995 |
+
|
| 996 |
+
Burr Settles. 2009. Active learning literature survey.
|
| 997 |
+
Computer Sciences Technical Report 1648, University of Wisconsin-Madison.
|
| 998 |
+
|
| 999 |
+
|
| 1000 |
+
Burr Settles and Mark Craven. 2008. [An analysis of ac-](https://www.aclweb.org/anthology/D08-1112)
|
| 1001 |
+
tive learning strategies [for](https://www.aclweb.org/anthology/D08-1112) sequence labeling tasks.
|
| 1002 |
+
In _Proceedings_ _of_ _the_ _2008_ _Conference_ _on_ _Empiri-_
|
| 1003 |
+
_cal Methods in Natural Language Processing_, pages
|
| 1004 |
+
1070–1079, Honolulu, Hawaii, USA. Association
|
| 1005 |
+
for Computational Linguistics.
|
| 1006 |
+
|
| 1007 |
+
|
| 1008 |
+
Yanyao Shen, Hyokun Yun, Zachary C. Lipton,
|
| 1009 |
+
Yakov Kronrod, and Animashree Anandkumar.
|
| 1010 |
+
2018. [Deep active learning for named entity recogni-](https://openreview.net/forum?id=ry018WZAZ)
|
| 1011 |
+
[tion.](https://openreview.net/forum?id=ry018WZAZ) In _International Conference on Learning Rep-_
|
| 1012 |
+
_resentations_, Vancouver, Canada. OpenReview.net.
|
| 1013 |
+
|
| 1014 |
+
|
| 1015 |
+
|
| 1016 |
+
2622
|
| 1017 |
+
|
| 1018 |
+
|
| 1019 |
+
Aditya Siddhant and Zachary C. Lipton. 2018. [Deep](https://doi.org/10.18653/v1/D18-1318)
|
| 1020 |
+
Bayesian active learning for natural language processing: Results of a [large-scale](https://doi.org/10.18653/v1/D18-1318) empirical study.
|
| 1021 |
+
In _Proceedings_ _of_ _the_ _2018_ _Conference_ _on_ _Em-_
|
| 1022 |
+
_pirical_ _Methods_ _in_ _Natural_ _Language_ _Processing_,
|
| 1023 |
+
pages 2904–2909, Brussels, Belgium. Association
|
| 1024 |
+
for Computational Linguistics.
|
| 1025 |
+
|
| 1026 |
+
|
| 1027 |
+
Min Tang, Xiaoqiang Luo, and Salim Roukos. 2002.
|
| 1028 |
+
|
| 1029 |
+
[Active learning for statistical natural language pars-](https://doi.org/10.3115/1073083.1073105)
|
| 1030 |
+
[ing.](https://doi.org/10.3115/1073083.1073105) In _Proceedings_ _of_ _the_ _40th_ _Annual_ _Meeting_
|
| 1031 |
+
_of_ _the_ _Association_ _for_ _Computational_ _Linguistics_,
|
| 1032 |
+
pages 120–127, Philadelphia, Pennsylvania, USA.
|
| 1033 |
+
Association for Computational Linguistics.
|
| 1034 |
+
|
| 1035 |
+
|
| 1036 |
+
Cynthia A. Thompson, Mary Elaine Califf, and Raymond J. Mooney. 1999. [Active learning for natural](https://www.cs.utexas.edu/~ml/papers/active-nll-ml99.pdf)
|
| 1037 |
+
[language parsing and information extraction.](https://www.cs.utexas.edu/~ml/papers/active-nll-ml99.pdf) In _Pro-_
|
| 1038 |
+
_ceedings_ _of_ _the_ _Sixteenth_ _International_ _Conference_
|
| 1039 |
+
_on Machine Learning_, pages 406–414, Bled, Slovenia. Morgan Kaufmann Publishers Inc.
|
| 1040 |
+
|
| 1041 |
+
|
| 1042 |
+
William T. Tutte. 1984. _Graph_ _Theory_ . AddisonWesley Publishing Company.
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
Laurens van der Maaten and Geoffrey Hinton. 2008.
|
| 1046 |
+
|
| 1047 |
+
Visualizing [data](https://jmlr.org/papers/volume9/vandermaaten08a/vandermaaten08a.pdf) using t-SNE. _Journal_ _of_ _machine_
|
| 1048 |
+
_learning research_, 9(Nov):2579–2605.
|
| 1049 |
+
|
| 1050 |
+
|
| 1051 |
+
2623
|
| 1052 |
+
|
| 1053 |
+
|
| 1054 |
+
**Appendix A** **Dependency Parser**
|
| 1055 |
+
|
| 1056 |
+
|
| 1057 |
+
We adopt the deep biaffine dependency parser proposed by Dozat and Manning (2017). The parser is
|
| 1058 |
+
conceptually simple and yet competitive with stateof-the-art dependency parsers. The parser has three
|
| 1059 |
+
components: feature extraction, unlabeled parsing
|
| 1060 |
+
and relation labeler.
|
| 1061 |
+
|
| 1062 |
+
|
| 1063 |
+
**Feature Extraction** For a length- _n_ sentence _x_ =
|
| 1064 |
+
_x_ 0 _, x_ 1 _, x_ 2 _, . . ., xn_, where _x_ 0 is the dummy root
|
| 1065 |
+
symbol, we extract contextualized features at each
|
| 1066 |
+
word position. In our experiments, we use a pretrained multilingual XLM-RoBERTa base model
|
| 1067 |
+
(Conneau et al., 2020), and fine-tune the feature
|
| 1068 |
+
extractor along with the rest of our parser:
|
| 1069 |
+
|
| 1070 |
+
|
| 1071 |
+
[ **x** 0 _,_ **x** 1 _, . . .,_ **x** _n_ ] = XLM-R( _x_ 0 _, x_ 1 _, . . ., xn_ ) _._
|
| 1072 |
+
|
| 1073 |
+
|
| 1074 |
+
Each word input to the XLM-RoBERTa model is
|
| 1075 |
+
processed with the SentencePiece tokenizer (Kudo
|
| 1076 |
+
and Richardson, 2018), and we follow Kitaev et al.
|
| 1077 |
+
(2019) and retain the vectors corresponding to the
|
| 1078 |
+
last sub-word units as their representations. For **x** 0,
|
| 1079 |
+
we use the vector of the [CLS] token, which is
|
| 1080 |
+
appended by XLM-RoBERTa to the beginning of
|
| 1081 |
+
each sentence.
|
| 1082 |
+
|
| 1083 |
+
|
| 1084 |
+
**Unlabeled** **Parser** The parser uses a deep biaffine attention mechanism to derive locallynormalized attachment probabilities for all potential head-dependent pairs:
|
| 1085 |
+
|
| 1086 |
+
|
| 1087 |
+
**h** [arc-head] _i_ = MLP [arc-head] ( **x** _i_ )
|
| 1088 |
+
|
| 1089 |
+
**h** [arc-dep] _j_ = MLP [arc-dep] ( **x** _j_ )
|
| 1090 |
+
|
| 1091 |
+
_si,j_ = [ **h** [arc-head] _i_ ; 1] _[⊤]_ _U_ [arc] [ **h** [arc-dep] _j_ ; 1]
|
| 1092 |
+
|
| 1093 |
+
_P_ att(head(j) = _i | x_ ) = softmax _i_ ( _s_ : _,j_ ) _,_
|
| 1094 |
+
|
| 1095 |
+
|
| 1096 |
+
where MLP [arc-head] and MLP [arc-dep] are two multilayer perceptrons (MLPs) projecting **x** vectors into
|
| 1097 |
+
_d_ [arc] -dimensional **h** vectors, [; 1] appends an element of 1 at the end of the vectors, and _U_ [arc] _∈_
|
| 1098 |
+
R [(] _[d]_ [arc][+1)] _[×]_ [(] _[d]_ [arc][+1)] is a bilinear scoring matrix. This
|
| 1099 |
+
component is trained with cross-entropy loss of
|
| 1100 |
+
the gold-standard attachments. During inference,
|
| 1101 |
+
we use the Chu-Liu-Edmonds algorithm (Chu and
|
| 1102 |
+
Liu, 1965; Edmonds, 1967) to find the spanning
|
| 1103 |
+
tree with the highest product of locally-normalized
|
| 1104 |
+
attachment probabilities.
|
| 1105 |
+
|
| 1106 |
+
|
| 1107 |
+
**Relation Labeler** The relation labeling component employs a similar deep biaffine scoring func
|
| 1108 |
+
|
| 1109 |
+
|
| 1110 |
+
Round # 5 10
|
| 1111 |
+
|
| 1112 |
+
|
| 1113 |
+
Strategy w/o DPP w/ DPP w/o DPP w/ DPP
|
| 1114 |
+
|
| 1115 |
+
|
| 1116 |
+
Random 89 _._ 01 _±._ 28 **89** _._ **67** _±._ 30 90 _._ 78 _±._ 27 **91** _._ **22** _±._ 22
|
| 1117 |
+
AMP 89 _._ 67 _±._ 29 **90** _._ **24** _±._ 39 92 _._ 03 _±._ 10 **92** _._ **17** _±._ 22
|
| 1118 |
+
BALD 89 _._ 82 _±._ 36 **90** _._ **29** _±._ 20 91 _._ 87 _±._ 36 **92** _._ **00** _±._ 08
|
| 1119 |
+
ID **90** _._ **24** _±._ 20 90 _._ 03 _±._ 18 **92** _._ **16** _±._ 17 92 _._ 06 _±._ 16
|
| 1120 |
+
|
| 1121 |
+
|
| 1122 |
+
Table B1: UAS after 5 and 10 rounds of annotation (roughly
|
| 1123 |
+
5 _,_ 000 and 7 _,_ 000 training tokens respectively), comparing
|
| 1124 |
+
strategies with and without modeling diversity through DPP.
|
| 1125 |
+
|
| 1126 |
+
|
| 1127 |
+
tion as the unlabeled parsing component:
|
| 1128 |
+
|
| 1129 |
+
|
| 1130 |
+
**h** [rel-head] _i_ = MLP [rel-head] ( **x** _i_ )
|
| 1131 |
+
|
| 1132 |
+
**h** [rel-dep] _j_ = MLP [rel-dep] ( **x** _j_ )
|
| 1133 |
+
|
| 1134 |
+
_ti,j,r_ = [ **h** [rel-head] _i_ ; 1] _[⊤]_ _Ur_ [rel][[] **[h]** _j_ [rel-dep] ; 1]
|
| 1135 |
+
|
| 1136 |
+
|
| 1137 |
+
_P_ (rel( _i, j_ ) = _r_ ) = softmax _r_ ( _ti,j,_ :) _,_
|
| 1138 |
+
|
| 1139 |
+
|
| 1140 |
+
where each _Ur_ [rel] _∈_ R [(] _[d]_ [rel][+1)] _[×]_ [(] _[d]_ [rel][+1)], and there are
|
| 1141 |
+
as many such matrices as the size of the dependency
|
| 1142 |
+
relation label set _|R|_ . The relation labeler is trained
|
| 1143 |
+
using cross entropy loss on the gold-standard headdependent pairs. During inference, the labeling
|
| 1144 |
+
decision for each arc is made independently given
|
| 1145 |
+
the predicted unlabeled parse tree.
|
| 1146 |
+
|
| 1147 |
+
|
| 1148 |
+
**Appendix B** **Results with UAS**
|
| 1149 |
+
**Evaluation**
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
We also evaluate different learning strategies based
|
| 1153 |
+
on unlabeled attachment scores (UAS), and the
|
| 1154 |
+
results are shown in Table B1. In line with LASbased experiments, we find that modeling diversity
|
| 1155 |
+
is more helpful during initial stages of learning.
|
| 1156 |
+
For ID, we observe this effect even earlier than the
|
| 1157 |
+
fifth round of annotation: 86 _._ 57 _±._ 44 vs. 87 _._ 40 _±._ 51
|
| 1158 |
+
after the first annotation round.
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
**Appendix C** **Sentence Selection**
|
| 1162 |
+
**Examples**
|
| 1163 |
+
|
| 1164 |
+
|
| 1165 |
+
In Table C2 we compare batches sampled by a
|
| 1166 |
+
diversity-aware selection strategy with a diversityagnostic one. We observe that by modeling diversity in the sample selection process, DPPs avoid
|
| 1167 |
+
selecting duplicate or near-duplicate sentences and
|
| 1168 |
+
thus the annotation budget can be maximally utilized.
|
| 1169 |
+
|
| 1170 |
+
|
| 1171 |
+
**Appendix D** **BALD under High**
|
| 1172 |
+
**Duplication Setting**
|
| 1173 |
+
|
| 1174 |
+
|
| 1175 |
+
Figure D1 shows the learning curves for BALDbased selection strategies under a high corpus
|
| 1176 |
+
duplication setting where the corpus is repeated
|
| 1177 |
+
|
| 1178 |
+
|
| 1179 |
+
|
| 1180 |
+
2624
|
| 1181 |
+
|
| 1182 |
+
|
| 1183 |
+
**Sentences selected by AMP (highest-quality ones first):**
|
| 1184 |
+
Downgraded by Moody ’s were Houston Lighting ’s first - mortgage bonds and secured pollution - control bonds to single - A - 3 from single - A - 2 ; unsecured pollution control bonds to Baa - 1 from single - A - 3 ; preferred stock to single - A - 3 from single - A - 2 ; a shelf registration for preferred stock to a preliminary rating of single - A - 3
|
| 1185 |
+
from a preliminary rating of single - A - 2 ; two shelf registrations for collateralized debt securities to a preliminary rating of single - A - 3 from a preliminary rating of single A - 2, and the unit ’s rating for commercial paper to Prime - 2 from Prime - 1 .
|
| 1186 |
+
For a while in the 1970s it seemed Mr. Moon was on a spending spree, with such purchases as the former New Yorker Hotel and its adjacent Manhattan Center ; a fishing
|
| 1187 |
+
/ processing conglomerate with branches in Alaska, Massachusetts, Virginia and Louisiana ; a former Christian Brothers monastery and the Seagram family mansion ( both
|
| 1188 |
+
picturesquely situated on the Hudson River ) ; shares in banks from Washington to Uruguay ; a motion picture production company, and newspapers, such as the Washington
|
| 1189 |
+
Times, the New York City Tribune ( originally the News World ), and the successful Spanish - language Noticias del Mundo .
|
| 1190 |
+
_→_ LONDON LATE EURODOLLARS : 8 11/16 % to 8 9/16 % one month ; 8 5/8 % to 8 1/2 % two months ; 8 5/8 % to 8 1/2 % three months ; 8 9/16 % to 8 7/16 % four months ;
|
| 1191 |
+
8 1/2 % to 8 3/8 % five months ; 8 1/2 % to 8 3/8 % six months .
|
| 1192 |
+
_→_ LONDON LATE EURODOLLARS : 8 3/4 % to 8 5/8 % one month ; 8 3/4 % to 8 5/8 % two months ; 8 11/16 % to 8 9/16 % three months ; 8 9/16 % to 8 7/16 % four months ;
|
| 1193 |
+
8 1/2 % to 8 3/8 % five months ; 8 7/16 % to 8 5/16 % six months .
|
| 1194 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.40 % 30 to 44 days ; 8.325 % 45 to 59 days ; 8.10 % 60 to 89 days ; 8 % 90 to 119 days ;
|
| 1195 |
+
|
| 1196 |
+
- 7.85 % 120 to 149 days ; 7.70 % 150 to 179 days ; 7.375 % 180 to 270 days .
|
| 1197 |
+
4 . When a RICO TRO is being sought, the prosecutor is required, at the earliest appropriate time, to state publicly that the government ’s request for a TRO, and eventual
|
| 1198 |
+
forfeiture, is made in full recognition of the rights of third parties – that is, in requesting the TRO, the government will not seek to disrupt the normal, legitimate business
|
| 1199 |
+
activities of the defendant ; will not seek through use of the relation - back doctrine to take from third parties assets legitimately transferred to them ; will not seek to vitiate
|
| 1200 |
+
legitimate business transactions occurring between the defendant and third parties ; and will, in all other respects, assist the court in ensuring that the rights of third parties are
|
| 1201 |
+
protected, through proceeding under RICO and otherwise .
|
| 1202 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.50 % 30 to 44 days ; 8.25 % 45 to 62 days ; 8.375 % 63 to 89 days ; 8 % 90 to 119 days ;
|
| 1203 |
+
|
| 1204 |
+
- 7.90 % 120 to 149 days ; 7.80 % 150 to 179 days ; 7.55 % 180 to 270 days .
|
| 1205 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.50 % 30 to 44 days ; 8.25 % 45 to 65 days ; 8.375 % 66 to 89 days ; 8 % 90 to 119 days ;
|
| 1206 |
+
|
| 1207 |
+
- 7.875 % 120 to 149 days ; 7.75 % 150 to 179 days ; 7.50 % 180 to 270 days .
|
| 1208 |
+
_→_ LONDON LATE EURODOLLARS : 8 11/16 % to 8 9/16 % one month ; 8 5/8 % to 8 1/2 % two months ; 8 5/8 % to 8 1/2 % three months ; 8 9/16 % to 8 7/16 % four months ;
|
| 1209 |
+
8 1/2 % to 8 3/8 % five months ; 8 7/16 % to 8 5/16 % six months .
|
| 1210 |
+
_→_ LONDON LATE EURODOLLARS : 8 11/16 % to 8 9/16 % one month ; 8 9/16 % to 8 7/16 % two months ; 8 5/8 % to 8 1/2 % three months ; 8 1/2 % to 8 3/8 % four months ;
|
| 1211 |
+
8 7/16 % to 8 5/16 % five months ; 8 7/16 % to 8 5/16 % six months .
|
| 1212 |
+
The new edition lists the top 10 metropolitan areas as Anaheim - Santa Ana, Calif. ; Boston ; Louisville, Ky. ; Nassau - Suffolk, N.Y. ; New York ; Pittsburgh ; San Diego ;
|
| 1213 |
+
San Francisco ; Seattle ; and Washington .
|
| 1214 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.45 % 30 to 44 days ; 8.20 % 45 to 67 days ; 8.325 % 68 to 89 days ; 8 % 90 to 119 days ;
|
| 1215 |
+
|
| 1216 |
+
- 7.875 % 120 to 149 days ; 7.75 % 150 to 179 days ; 7.50 % 180 to 270 days .
|
| 1217 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.50 % 2 to 44 days ; 8.25 % 45 to 69 days ; 8.40 % 70 to 89 days ; 8.20 % 90 to 119 days ;
|
| 1218 |
+
|
| 1219 |
+
- 8.05 % 120 to 149 days ; 7.90 % 150 to 179 days ; 7.50 % 180 to 270 days .
|
| 1220 |
+
Five officials of this investment banking firm were elected directors : E. Garrett Bewkes III, a 38 - year - old managing director in the mergers and acquisitions department ;
|
| 1221 |
+
Michael R. Dabney, 44, a managing director who directs the principal activities group which provides funding for leveraged acquisitions ; Richard Harriton, 53, a general
|
| 1222 |
+
partner who heads the correspondent clearing services ; Michael Minikes, 46, a general partner who is treasurer ; and William J. Montgoris, 42, a general partner who is also
|
| 1223 |
+
senior vice president of finance and chief financial officer .
|
| 1224 |
+
_→_ LONDON LATE EURODOLLARS : 8 11/16 % to 8 9/16 % one month ; 8 5/8 % to 8 1/2 % two months ; 8 11/16 % to 8 9/16 % three months ; 8 9/16 % to 8 7/16 % four
|
| 1225 |
+
months ; 8 1/2 % to 8 3/8 % five months ; 8 7/16 % to 8 5/16 % six months .
|
| 1226 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.55 % 30 to 44 days ; 8.25 % 45 to 59 days ; 8.40 % 60 to 89 days ; 8 % 90 to 119 days ; 7.90
|
| 1227 |
+
|
| 1228 |
+
- % 120 to 149 days ; 7.80 % 150 to 179 days ; 7.55 % 180 to 270 days .
|
| 1229 |
+
They transferred some $ 28 million from the Community Development Block Grant program designated largely for low - and moderate - income projects and funneled it into
|
| 1230 |
+
such items as : - $ 1.2 million for a performing - arts center in Newark, – $ 1.3 million for “ job retention ” in Hawaiian sugar mills . - $ 400,000 for a collapsing utility tunnel
|
| 1231 |
+
in Salisbury, - $ 500,000 for “ equipment and landscaping to deter crime and aid police surveillance ” at a Michigan park . - $ 450,000 for “ integrated urban data based in
|
| 1232 |
+
seven cities . ” No other details . - $ 390,000 for a library and recreation center at Mackinac Island, Mich .
|
| 1233 |
+
_→_ LONDON LATE EURODOLLARS : 8 3/4 % to 8 5/8 % one month ; 8 13/16 % to 8 11/16 % two months ; 8 11/16 % to 8 9/16 % three months ; 8 9/16 % to 8 7/16 % four
|
| 1234 |
+
months ; 8 1/2 % to 8 3/8 % five months ; 8 7/16 % to 8 5/16 % six months .
|
| 1235 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.45 % 30 to 44 days ; 8.25 % 45 to 68 days ; 8.30 % 69 to 89 days ; 8.125 % 90 to 119 days ;
|
| 1236 |
+
|
| 1237 |
+
- 8 % 120 to 149 days ; 7.875 % 150 to 179 days ; 7.50 % 180 to 270 days .
|
| 1238 |
+
|
| 1239 |
+
|
| 1240 |
+
**Sentences selected by AMP with diversity-inducing DPP:**
|
| 1241 |
+
Downgraded by Moody ’s were Houston Lighting ’s first - mortgage bonds and secured pollution - control bonds to single - A - 3 from single - A - 2 ; unsecured pollution control bonds to Baa - 1 from single - A - 3 ; preferred stock to single - A - 3 from single - A - 2 ; a shelf registration for preferred stock to a preliminary rating of single - A - 3
|
| 1242 |
+
from a preliminary rating of single - A - 2 ; two shelf registrations for collateralized debt securities to a preliminary rating of single - A - 3 from a preliminary rating of single A - 2, and the unit ’s rating for commercial paper to Prime - 2 from Prime - 1 .
|
| 1243 |
+
4 . When a RICO TRO is being sought, the prosecutor is required, at the earliest appropriate time, to state publicly that the government ’s request for a TRO, and eventual
|
| 1244 |
+
forfeiture, is made in full recognition of the rights of third parties – that is, in requesting the TRO, the government will not seek to disrupt the normal, legitimate business
|
| 1245 |
+
activities of the defendant ; will not seek through use of the relation - back doctrine to take from third parties assets legitimately transferred to them ; will not seek to vitiate
|
| 1246 |
+
legitimate business transactions occurring between the defendant and third parties ; and will, in all other respects, assist the court in ensuring that the rights of third parties are
|
| 1247 |
+
protected, through proceeding under RICO and otherwise .
|
| 1248 |
+
COMMERCIAL PAPER placed directly by General Motors Acceptance Corp. : 8.40 % 30 to 44 days ; 8.325 % 45 to 59 days ; 8.10 % 60 to 89 days ; 8 % 90 to 119 days ;
|
| 1249 |
+
|
| 1250 |
+
- 7.85 % 120 to 149 days ; 7.70 % 150 to 179 days ; 7.375 % 180 to 270 days .
|
| 1251 |
+
Moreover, the process is n’t without its headaches .
|
| 1252 |
+
For a while in the 1970s it seemed Mr. Moon was on a spending spree, with such purchases as the former New Yorker Hotel and its adjacent Manhattan Center ; a fishing
|
| 1253 |
+
/ processing conglomerate with branches in Alaska, Massachusetts, Virginia and Louisiana ; a former Christian Brothers monastery and the Seagram family mansion ( both
|
| 1254 |
+
picturesquely situated on the Hudson River ) ; shares in banks from Washington to Uruguay ; a motion picture production company, and newspapers, such as the Washington
|
| 1255 |
+
Times, the New York City Tribune ( originally the News World ), and the successful Spanish - language Noticias del Mundo .
|
| 1256 |
+
Within the paper sector, Mead climbed 2 3/8 to 38 3/4 on 1.3 million shares, Union Camp rose 2 3/4 to 37 3/4, Federal Paper Board added 1 3/4 to 23 7/8, Bowater gained 1
|
| 1257 |
+
1/2 to 27 1/2, Stone Container rose 1 to 26 1/8 and Temple - Inland jumped 3 3/4 to 62 1/4 .
|
| 1258 |
+
We finally rendezvoused with our balloon, which had come to rest on a dirt road amid a clutch of Epinalers who watched us disassemble our craft – another half - an - hour of
|
| 1259 |
+
non-flight activity – that included the precision routine of yanking the balloon to the ground, punching all the air out of it, rolling it up and cramming it and the basket into the
|
| 1260 |
+
trailer .
|
| 1261 |
+
These are the 26 states, including the commonwealth of Puerto Rico, that have settled with Drexel : Alaska, Arkansas, Delaware, Georgia, Hawaii, Idaho, Indiana, Iowa,
|
| 1262 |
+
Kansas, Kentucky, Maine, Maryland, Minnesota, Mississippi, New Hampshire, New Mexico, North Dakota, Oklahoma, Oregon, South Carolina, South Dakota, Utah,
|
| 1263 |
+
Vermont, Washington, Wyoming and Puerto Rico .
|
| 1264 |
+
It is the stuff of dreams, but also of traumas .
|
| 1265 |
+
An inquiry into his handling of Lincoln S&L inevitably will drag in Sen. Cranston and the four others, Sens. Dennis DeConcini ( D., Ariz. ), John McCain ( R., Ariz. ), John
|
| 1266 |
+
Glenn ( D., Ohio ) and Donald Riegle ( D., Mich . ) .
|
| 1267 |
+
Five officials of this investment banking firm were elected directors : E. Garrett Bewkes III, a 38 - year - old managing director in the mergers and acquisitions department ;
|
| 1268 |
+
Michael R. Dabney, 44, a managing director who directs the principal activities group which provides funding for leveraged acquisitions ; Richard Harriton, 53, a general
|
| 1269 |
+
partner who heads the correspondent clearing services ; Michael Minikes, 46, a general partner who is treasurer ; and William J. Montgoris, 42, a general partner who is also
|
| 1270 |
+
senior vice president of finance and chief financial officer .
|
| 1271 |
+
But as they hurl fireballs that smolder rather than burn, and relive old duels in the sun, it ’s clear that most are there to make their fans cheer again or recapture the camaraderie
|
| 1272 |
+
of seasons past or prove to themselves and their colleagues that they still have it – or something close to it .
|
| 1273 |
+
They are : “ A Payroll to Meet : A Story of Greed, Corruption and Football at SMU ” ( Macmillan, 221 pages, $ 18.95 ) by David Whitford ; “ Big Red Confidential : Inside
|
| 1274 |
+
Nebraska Football ” ( Contemporary, 231 pages, $ 17.95 ) by Armen Keteyian ; and “ Never Too Young to Die : The Death of Len Bias ” ( Pantheon, 252 pages, $ 18.95 ) by
|
| 1275 |
+
Lewis Cole .
|
| 1276 |
+
He says he told NewsEdge to look for stories containing such words as takeover, acquisition, acquire, LBO, tender, merger, junk and halted .
|
| 1277 |
+
It is no coincidence that from 1844 to 1914, when the Bank of England was an independent private bank, the pound was never devalued and payment of gold for pound notes
|
| 1278 |
+
was never suspended, but with the subsequent nationalization of the Bank of England, the pound was devalued with increasing frequency and its use as an international medium
|
| 1279 |
+
of exchange declined .
|
| 1280 |
+
The $ 4 billion in bonds break down as follows : $ 1 billion in five - year bonds with a coupon rate of 8.25 % and a yield to maturity of 8.33 % ; $ 1 billion in 10 - year bonds
|
| 1281 |
+
with a coupon rate of 8.375 % and a yield to maturity of 8.42 % ; $ 2 billion in 30 - year bonds with five - year call protection, a coupon rate of 8.75 % and a yield to maturity
|
| 1282 |
+
of 9.06 % .
|
| 1283 |
+
Hecla Mining rose 5/8 to 14 ; Battle Mountain Gold climbed 3/4 to 16 3/4 ; Homestake Mining rose 1 1/8 to 16 7/8 ; Lac Minerals added 5/8 to 11 ; Placer Dome went up 7/8
|
| 1284 |
+
to 16 3/4, and ASA Ltd. jumped 3 5/8 to 49 5/8 .
|
| 1285 |
+
|
| 1286 |
+
|
| 1287 |
+
Table C2: Sentences picked by a diversity-agnostic (top) and a diversity-aware (bottom) selection strategy from the same
|
| 1288 |
+
unlabeled pool after the intial round of model training on the seed sentences. The diversity-agnostic strategy selects many
|
| 1289 |
+
near-duplicate sentences (the two near-duplicate clusters are marked by red2625 _→_ and blue ), effectively wasting the annotation
|
| 1290 |
+
budget, where DPPs largely alleviate this issue by enforcing diversity.
|
| 1291 |
+
|
| 1292 |
+
|
| 1293 |
+
92
|
| 1294 |
+
|
| 1295 |
+
|
| 1296 |
+
90
|
| 1297 |
+
|
| 1298 |
+
|
| 1299 |
+
88
|
| 1300 |
+
|
| 1301 |
+
|
| 1302 |
+
86
|
| 1303 |
+
|
| 1304 |
+
|
| 1305 |
+
84
|
| 1306 |
+
|
| 1307 |
+
|
| 1308 |
+
|
| 1309 |
+
|
| 1310 |
+
|
| 1311 |
+
82
|
| 1312 |
+
10 20 30
|
| 1313 |
+
|
| 1314 |
+
|
| 1315 |
+
Annotation round
|
| 1316 |
+
|
| 1317 |
+
|
| 1318 |
+
Figure D1: Learning curves for BALD-based selection strategies under a five-fold corpus duplication setting.
|
| 1319 |
+
|
| 1320 |
+
|
| 1321 |
+
**Algorithm E1:** Greedy MAP inference for
|
| 1322 |
+
DPP with a size budget, adapted from
|
| 1323 |
+
Kulesza (2012).
|
| 1324 |
+
|
| 1325 |
+
|
| 1326 |
+
**Input:** candidate item set _X_ (sentences or tokens),
|
| 1327 |
+
DPP represented by matrix _L_, size budget _b_
|
| 1328 |
+
_U_ _←_ _X_ ;
|
| 1329 |
+
_Y_ _←∅_ ;
|
| 1330 |
+
**while** _U_ = _∅_ **do**
|
| 1331 |
+
|
| 1332 |
+
_i ←_ arg max _i′∈U_ det( _LY ∪{i′}_ );
|
| 1333 |
+
**if** [�] _y∈Y_ [size][(] _[y]_ [)] _[ < b]_ **[ then]**
|
| 1334 |
+
|
| 1335 |
+
_Y_ _←_ _Y_ _∪{i}_ ;
|
| 1336 |
+
**else**
|
| 1337 |
+
|
| 1338 |
+
break;
|
| 1339 |
+
**end**
|
| 1340 |
+
**end**
|
| 1341 |
+
**Output:** selected items _Y_
|
| 1342 |
+
|
| 1343 |
+
|
| 1344 |
+
five times. In this extreme setting, the diversityagnostic strategy significantly underperforms the
|
| 1345 |
+
diversity-aware one. We posit that the relative success of BALD compared to AMP in the twiceduplicated setting is due to the fact that BALD
|
| 1346 |
+
randomly draws dropout masks to estimate model
|
| 1347 |
+
uncertainty, so that identical examples could still
|
| 1348 |
+
have different quality measures.
|
| 1349 |
+
|
| 1350 |
+
|
| 1351 |
+
**Appendix E** **Implementation Details and**
|
| 1352 |
+
**Hyperparameters**
|
| 1353 |
+
|
| 1354 |
+
|
| 1355 |
+
We do not tune our hyperparameters since in practice, active learning systems only have a single shot
|
| 1356 |
+
at success, without tuning. Instead, we follow recommendations from relevant prior work in setting
|
| 1357 |
+
our learning details and hyperparameters.
|
| 1358 |
+
|
| 1359 |
+
|
| 1360 |
+
**Active Learning** Following Li et al. (2016), our
|
| 1361 |
+
active learning set-up proceeds in two stages for
|
| 1362 |
+
each annotation round. In the first stage, we select
|
| 1363 |
+
sentences filling in a budget of 2500 tokens; in the
|
| 1364 |
+
second stage, we pick 500 tokens out of the subset
|
| 1365 |
+
of sentences. For a diversity-agnostic strategy, we
|
| 1366 |
+
choose the top- _k_ highest-quality candidates within
|
| 1367 |
+
the token budget, while our diversity-aware selec
|
| 1368 |
+
|
| 1369 |
+
|
| 1370 |
+
tion strategy uses a separate DPP for each stage.
|
| 1371 |
+
The active learning process is bootstraped with a
|
| 1372 |
+
seed set of 128 labeled sentences. For the BALD
|
| 1373 |
+
quality measure, we set _K_ = 5.
|
| 1374 |
+
|
| 1375 |
+
|
| 1376 |
+
**Greedy** **MAP** **Inference** **for** **DPPs** Algorithm E1 illustrates the procedure for selecting
|
| 1377 |
+
items from DPPs under a budget constraint. This
|
| 1378 |
+
greedy MAP inference algorithm is adapted from
|
| 1379 |
+
Kulesza (2012). During sentence selection, the
|
| 1380 |
+
size of a sentence is its number of tokens, and each
|
| 1381 |
+
token has a size of 1 in the token selection stage.
|
| 1382 |
+
|
| 1383 |
+
|
| 1384 |
+
**Dependency Parser** We set the hyperparameters
|
| 1385 |
+
according to Dozat and Manning (2017). All the
|
| 1386 |
+
MLPs in the deep biaffine attention architecture
|
| 1387 |
+
have single hidden layers with ReLU activation
|
| 1388 |
+
functions and a dropout probability of 0 _._ 33, and
|
| 1389 |
+
we set _d_ [arc] and _d_ [rel] to be 500 and 100 respectively.
|
| 1390 |
+
|
| 1391 |
+
|
| 1392 |
+
**Training and Optimization** Each training batch
|
| 1393 |
+
contains 16 sentences and gradient norms are
|
| 1394 |
+
clipped to 5 _._ 0. We use the Adam optimizer
|
| 1395 |
+
(Kingma and Ba, 2015) with a learning rate of 10 _[−]_ [5]
|
| 1396 |
+
|
| 1397 |
+
with 640 warmup steps with a linearly-increasing
|
| 1398 |
+
learning rate starting from 0.
|
| 1399 |
+
|
| 1400 |
+
|
| 1401 |
+
**Implementation** Our implementation is in PyTorch (Paszke et al., 2019), and we use the
|
| 1402 |
+
transformers package [6] to interface with the pretrained XLM-RoBERTa model.
|
| 1403 |
+
|
| 1404 |
+
|
| 1405 |
+
[6https://github.com/huggingface/transformers](https://github.com/huggingface/transformers)
|
| 1406 |
+
|
| 1407 |
+
|
| 1408 |
+
|
| 1409 |
+
2626
|
| 1410 |
+
|
| 1411 |
+
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1,2665 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Data-efficient Active Learning for Structured Prediction with Partial Annotation and Self-Training"
|
| 3 |
+
authors:
|
| 4 |
+
- "Zhisong Zhang"
|
| 5 |
+
- "Emma Strubell"
|
| 6 |
+
- "Eduard Hovy"
|
| 7 |
+
year: 2023
|
| 8 |
+
venue: "Findings of EMNLP 2023"
|
| 9 |
+
url: "https://aclanthology.org/2023.findings-emnlp.865/"
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# **Data-efficient Active Learning for Structured Prediction with** **Partial Annotation and Self-Training**
|
| 13 |
+
|
| 14 |
+
**Zhisong Zhang, Emma Strubell, Eduard Hovy**
|
| 15 |
+
Language Technologies Institute, Carnegie Mellon University
|
| 16 |
+
zhisongz@cs.cmu.edu, strubell@cmu.edu, hovy@cmu.edu
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
**Abstract**
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
In this work we propose a pragmatic method
|
| 24 |
+
that reduces the annotation cost for structured
|
| 25 |
+
label spaces using active learning. Our approach leverages partial annotation, which reduces labeling costs for structured outputs
|
| 26 |
+
by selecting only the most informative substructures for annotation. We also utilize selftraining to incorporate the current model’s automatic predictions as pseudo-labels for unannotated sub-structures. A key challenge in
|
| 27 |
+
effectively combining partial annotation with
|
| 28 |
+
self-training to reduce annotation cost is determining which sub-structures to select to label.
|
| 29 |
+
To address this challenge, we adopt an error
|
| 30 |
+
estimator to adaptively decide the partial selection ratio according to the current model’s capability. In evaluations spanning four structured
|
| 31 |
+
prediction tasks, we show that our combination
|
| 32 |
+
of partial annotation and self-training using an
|
| 33 |
+
adaptive selection ratio reduces annotation cost
|
| 34 |
+
over strong full annotation baselines under a
|
| 35 |
+
fair comparison scheme that takes reading time
|
| 36 |
+
into consideration.
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
**1** **Introduction**
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
Structured prediction (Smith, 2011) is a fundamental problem in NLP, wherein the label space consists of complex structured outputs with groups of
|
| 43 |
+
interdependent variables. It covers a wide range of
|
| 44 |
+
NLP tasks, including sequence labeling, syntactic
|
| 45 |
+
parsing and information extraction (IE). Modern
|
| 46 |
+
structured predictors are developed in a data-driven
|
| 47 |
+
way, by training statistical models with suitable
|
| 48 |
+
annotated data. Recent developments in neural
|
| 49 |
+
models and especially pre-trained language models
|
| 50 |
+
(Peters et al., 2018; Devlin et al., 2019; Liu et al.,
|
| 51 |
+
2019; Yang et al., 2019) have greatly improved system performance on these tasks. Nevertheless, the
|
| 52 |
+
success of these models still relies on the availability of sufficient manually annotated data, which is
|
| 53 |
+
often expensive and time-consuming to obtain.
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|Model Prediction for Annotation for<br>Highly-confident Parts Ambigious Parts<br>✘<br>✔<br>He saw the man with a backpack|Col2|
|
| 58 |
+
|---|---|
|
| 59 |
+
|He saw the man with a<br>✔<br>✘<br>_Model Prediction for_<br>_Highly-confident Parts_|backpack<br>_Annotation for_<br>_Ambigious Parts_|
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
Figure 1: Example partial annotations of a dependency
|
| 63 |
+
tree. Manual annotation is requested only for the uncertain sub-structures (red), whereas model predictions can
|
| 64 |
+
be used to annotate the highly-confident edges (blue).
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
To mitigate such data bottlenecks, active learning (AL), which allows the model to select the
|
| 68 |
+
most informative data instances to annotate, has
|
| 69 |
+
been demonstrated to achieve good model accuracy while requiring fewer labels (Settles, 2009).
|
| 70 |
+
When applying AL to structured prediction, one
|
| 71 |
+
natural strategy is to perform full annotation (FA)
|
| 72 |
+
for the output structures, for example, annotating a
|
| 73 |
+
full sequence of labels or a full syntax tree. Due to
|
| 74 |
+
its simplicity, FA has been widely adopted in AL
|
| 75 |
+
approaches for structured prediction tasks (Hwa,
|
| 76 |
+
2004; Settles and Craven, 2008; Shen et al., 2018).
|
| 77 |
+
Nevertheless, a structured object can usually be decomposed into smaller sub-structures having nonuniform difficulty and informativeness. For example, as shown in Figure 1, in a dependency tree,
|
| 78 |
+
edges such as functional relations are relatively
|
| 79 |
+
easy to learn, requiring fewer manual annotations,
|
| 80 |
+
while prepositional attachment links may be more
|
| 81 |
+
informative and thus more worthwhile to annotate.
|
| 82 |
+
The non-uniform distribution of informative substructures naturally suggests AL with partial annotation (PA), where the annotation budget can be
|
| 83 |
+
preserved by only choosing a portion of informative
|
| 84 |
+
sub-structures to annotate rather than laboriously
|
| 85 |
+
labeling entire sentence structures. This idea has
|
| 86 |
+
been explored in previous work, covering typical
|
| 87 |
+
structured prediction tasks such as sequence labeling (Shen et al., 2004; Marcheggiani and Artières,
|
| 88 |
+
2014; Chaudhary et al., 2019; Radmard et al., 2021)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
12991
|
| 93 |
+
|
| 94 |
+
_Findings of the Association for Computational Linguistics:_ _EMNLP 2023_, pages 12991–13008
|
| 95 |
+
December 6-10, 2023 ©2023 Association for Computational Linguistics
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
**Algorithm 1** AL Procedure.
|
| 99 |
+
|
| 100 |
+
**Input:** Seed dataset _L_ 0, dev dataset _D_, unlabeled pool _U_, total budget _t_, batch selection size _b_, annotation _strategy_ .
|
| 101 |
+
**Output:** Final labeled dataset _L_, trained model _M_ .
|
| 102 |
+
|
| 103 |
+
1: _L_ _←L_ 0 # Initialize
|
| 104 |
+
2: **while** _t >_ 0 **do** # Until out of budget
|
| 105 |
+
3: _M_ _←_ train( _L,_ _U_ ) # Model training
|
| 106 |
+
4: _S_ _←_ sentence-query( _M,_ _U_ ) # Sentence selection
|
| 107 |
+
5: **if** _strategy_ == “partial” **then**
|
| 108 |
+
6: _r_ _←_ auto-ratio( _S, D_ ) # Decide adaptive ratio
|
| 109 |
+
7: partial-annotate( _S, r_ ) # Partial annotation
|
| 110 |
+
8: **else**
|
| 111 |
+
9: full-annotate( _S_ ) # Full annotation
|
| 112 |
+
10: _U_ _←U_ _−S_ ; _L_ _←L ∪S_ ; _t_ _←_ _t −_ _b_
|
| 113 |
+
11: _M_ _←_ train( _L,_ _U_ ) # Final model training
|
| 114 |
+
12: **return** _L,_ _M_
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
and dependency parsing (Sassano and Kurohashi,
|
| 118 |
+
2010; Mirroshandel and Nasr, 2011; Flannery and
|
| 119 |
+
Mori, 2015; Li et al., 2016). Our work follows this
|
| 120 |
+
direction and investigates the central question in
|
| 121 |
+
AL with PA of how to decide which sub-structures
|
| 122 |
+
to select. Most previous work uses a pre-defined
|
| 123 |
+
fixed selection criterion, such as a threshold or ratio, which may be hard to decide in practice. In this
|
| 124 |
+
work, we adopt a performance predictor to estimate
|
| 125 |
+
the error rate of the queried instances and decide
|
| 126 |
+
the ratio of partial selection accordingly. In this
|
| 127 |
+
way, our approach can automatically and adaptively
|
| 128 |
+
adjust the amount of partial selection throughout
|
| 129 |
+
the AL process.
|
| 130 |
+
Another interesting question for AL is how
|
| 131 |
+
to better leverage unlabeled data. In this work,
|
| 132 |
+
we investigate a simple semi-supervised method,
|
| 133 |
+
self-training (Yarowsky, 1995), which adopts the
|
| 134 |
+
model’s automatic predictions on the unlabeled
|
| 135 |
+
data as extra training signals. Self-training naturally complements AL in the typical pool-based
|
| 136 |
+
setting where we assume access to a pool of unlabeled data (Settles, 2009). It is particularly compatible with PA-based AL since the un-selected substructures are typically also highly-confident under
|
| 137 |
+
the current model and likely to be predicted correctly without requiring additional annotation. We
|
| 138 |
+
revisit this idea from previous work (Tomanek and
|
| 139 |
+
Hahn, 2009; Majidi and Crane, 2013) and investigate its applicability with modern neural models
|
| 140 |
+
and our adaptive partial selection approach.
|
| 141 |
+
We perform a comprehensive empirical investigation on the effectiveness of different AL strategies for typical structured prediction tasks. We
|
| 142 |
+
perform fair comparisons that account for the hidden cost of reading time by keeping the context
|
| 143 |
+
size the same for all the strategies in each AL cy
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
cle. With evaluations on four benchmark tasks for
|
| 147 |
+
structured prediction (named entity recognition, dependency parsing, event extraction, and relation
|
| 148 |
+
extraction), we show that PA can obtain roughly
|
| 149 |
+
the same benefits as FA with the same reading cost
|
| 150 |
+
but less sub-structure labeling cost, leading to better data efficiency. We also demonstrate that the
|
| 151 |
+
adaptive partial selection scheme and self-training
|
| 152 |
+
play crucial and complementary roles.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
**2** **Method**
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
**2.1** **AL for Structured Prediction**
|
| 159 |
+
|
| 160 |
+
We adopt the conventional pool-based AL setting,
|
| 161 |
+
which iteratively selects and annotates instances
|
| 162 |
+
from an unlabeled pool. Please refer to Settles
|
| 163 |
+
(2009) for the basics and details of AL; our main
|
| 164 |
+
illustration focuses more specifically on applying
|
| 165 |
+
AL to structured prediction.
|
| 166 |
+
Algorithm 1 illustrates the overall AL process.
|
| 167 |
+
We focus on sentence-level tasks. In FA, each sentence is annotated with a full structured object (for
|
| 168 |
+
example, a label sequence or a syntax tree). In PA,
|
| 169 |
+
annotation granularity is at the sub-structure level
|
| 170 |
+
(for example, a sub-sequence of labels or a partial
|
| 171 |
+
tree). We adopt a two-step selection approach for
|
| 172 |
+
all the strategies by first choosing a batch of sentences and then annotating within this batch. This
|
| 173 |
+
approach is natural for FA since the original aim
|
| 174 |
+
is to label full sentences, and it is also commonly
|
| 175 |
+
adopted in previous PA work (Mirroshandel and
|
| 176 |
+
Nasr, 2011; Flannery and Mori, 2015; Li et al.,
|
| 177 |
+
2016). Moreover, this approach makes it easier to
|
| 178 |
+
control the reading context size for fair comparisons of different strategies as described in §3.2.
|
| 179 |
+
Without loss of generality, we take sequence
|
| 180 |
+
labeling as an example and illustrate several key
|
| 181 |
+
points in the AL process. Other tasks follow similar
|
| 182 |
+
treatment, with details provided in Appendix A.
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
- **Model** . We adopt a standard BERT-based model
|
| 186 |
+
with a CRF output layer for structured output
|
| 187 |
+
modeling (Lafferty et al., 2001), together with
|
| 188 |
+
the BIO tagging scheme.
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
- **Querying** **Strategy** . We utilize the query-byuncertainty strategy with the margin-based metric, which has been shown effective in AL for
|
| 192 |
+
structured prediction (Marcheggiani and Artières,
|
| 193 |
+
2014; Li et al., 2016). Specifically, each token
|
| 194 |
+
obtains an uncertainty score with the difference
|
| 195 |
+
between the (marginal) probabilities of the most
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
12992
|
| 200 |
+
|
| 201 |
+
|
| 202 |
+
and second most likely label. We also tried several other strategies, such as least-confidence or
|
| 203 |
+
max-entropy, but did not find obvious benefits. [1]
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
- **Sentence** **selection** . For both FA and PA, selecting a batch of uncertain sentences is the first
|
| 207 |
+
querying step. We use the number of total tokens
|
| 208 |
+
to measure batch size since sentences may have
|
| 209 |
+
variant lengths. The sentence-level uncertainty
|
| 210 |
+
is obtained by averaging the token-level ones.
|
| 211 |
+
This length normalization heuristic is commonly
|
| 212 |
+
adopted to avoid biases towards longer sentences
|
| 213 |
+
(Hwa, 2004; Shen et al., 2018).
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
- **Token selection** . In PA, a subset of highly uncertain tokens is further chosen for annotation. One
|
| 217 |
+
important question is how many tokens to select.
|
| 218 |
+
Instead of using a pre-defined fixed selection criterion, we develop an adaptive strategy to decide
|
| 219 |
+
the amount, as will be described in §2.2.
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
- **Annotation** . Sequence labeling is usually
|
| 223 |
+
adopted for tasks involving mention extraction,
|
| 224 |
+
where annotations are over spans rather than individual tokens. Previous work explores subsequence querying (Chaudhary et al., 2019; Radmard et al., 2021), which brings further complexities. Since we mainly explore tasks with short
|
| 225 |
+
mention spans, we adopt a simple annotation protocol: Labeling the full spans where any inside
|
| 226 |
+
token is queried. Note that for annotation cost
|
| 227 |
+
measurement, we also include the extra labeled
|
| 228 |
+
tokens in addition to the queried ones.
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
- **Model learning** . For FA, we adopt the standard
|
| 232 |
+
log-likelihood as the training loss. For PA, we
|
| 233 |
+
follow previous work (Scheffer et al., 2001; Wanvarie et al., 2011; Marcheggiani and Artières,
|
| 234 |
+
2014) and adopt marginalized likelihood to learn
|
| 235 |
+
from incomplete annotations (Tsuboi et al., 2008;
|
| 236 |
+
Greenberg et al., 2018). More details are provided in Appendix C.
|
| 237 |
+
|
| 238 |
+
**2.2** **Adaptive Partial Selection**
|
| 239 |
+
|
| 240 |
+
PA adopts a second selection stage to choose highly
|
| 241 |
+
uncertain sub-structures within the selected sentences. One crucial question here is how many
|
| 242 |
+
|
| 243 |
+
1Please refer to Appendix D.1 for more results. Note that
|
| 244 |
+
our main focus is on AL for structured prediction, where AL
|
| 245 |
+
selection involves not only what instances to select (acquisition function), but also at what granularity to select and
|
| 246 |
+
annotate. In contrast with most AL work that focuses on the
|
| 247 |
+
first aspect (and classification tasks), we mainly investigate
|
| 248 |
+
the second one and explore better partial selection strategies.
|
| 249 |
+
Exploring more advanced acquisition functions is mostly orthogonal to our main focus and is left to future work.
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
sub-structures to select. Typical solutions in previous work include setting an uncertainty threshold
|
| 254 |
+
(Tomanek and Hahn, 2009) or specifying a selection ratio (Li et al., 2016). The threshold or ratio is
|
| 255 |
+
usually pre-defined with a fixed hyper-parameter.
|
| 256 |
+
This fixed selecting scheme might not be an ideal
|
| 257 |
+
one. First, it is usually hard to specify such fixed
|
| 258 |
+
values in practice. If too many sub-structures are
|
| 259 |
+
selected, there will be little difference between FA
|
| 260 |
+
and PA, whereas if too few, the annotation amount
|
| 261 |
+
is insufficient to train good models. Moreover, this
|
| 262 |
+
scheme is not adaptive to the model. As the model
|
| 263 |
+
is trained with more data throughout the AL process, the informative sub-structures become less
|
| 264 |
+
dense as the model improves. Thus, the number of
|
| 265 |
+
selected sub-structures should be adjusted accordingly. To mitigate these shortcomings, we develop
|
| 266 |
+
a dynamic strategy that can decide the selection in
|
| 267 |
+
an automatic and adaptive way.
|
| 268 |
+
We adopt the ratio-based strategy which enables
|
| 269 |
+
straightforward control of the selected amount.
|
| 270 |
+
Specifically, we rank the sub-structures by the uncertainty score and choose those scoring highest
|
| 271 |
+
by the ratio. Our decision on the selecting ratio
|
| 272 |
+
is based on the hypothesis that a reasonable ratio
|
| 273 |
+
should roughly correspond to the current model’s
|
| 274 |
+
error rate on all the candidates. The intuition is that
|
| 275 |
+
incorrectly predicted sub-structures are the most informative ones that can help to correct the model’s
|
| 276 |
+
mistakes.
|
| 277 |
+
Since the queried instances come from the unlabeled pool without annotations, the error rate cannot be directly obtained, requiring estimation. [2] We
|
| 278 |
+
adopt a simple one-dimensional logistic regression
|
| 279 |
+
model for this purpose. The input to the model is
|
| 280 |
+
the uncertainty score [3] and the output is a binary prediction of whether its prediction is confidently correct [4] or not. The estimator is trained using all the
|
| 281 |
+
sub-structures together with their correctness on the
|
| 282 |
+
development set [5] and then applied to the queried
|
| 283 |
+
candidates. For each candidate sub-structure _s_, the
|
| 284 |
+
estimator will give it a correctness probability. We
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
2Directly using uncertainty is another option, but the main
|
| 288 |
+
trouble is that the model is not well-calibrated. We also tried
|
| 289 |
+
model calibration by temperature scaling (Guo et al., 2017),
|
| 290 |
+
but did not find better results.
|
| 291 |
+
3We transform the input with a logarithm, which leads to
|
| 292 |
+
better estimation according to preliminary experiments.
|
| 293 |
+
4The specific criterion is that the arg max prediction
|
| 294 |
+
matches the gold one and its margin is greater than 0.5. Since
|
| 295 |
+
neural models are usually over-confident, it is hard to decide a
|
| 296 |
+
confidence threshold. Nevertheless, we find 0.5 a reasonable
|
| 297 |
+
value for the ratio decision here.
|
| 298 |
+
5We re-use the development set for the task model training.
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
12993
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
estimate the overall error rate as one minus the average correctness probability over all the candidates
|
| 306 |
+
in the query set _Q_ (all sub-structures in the selected
|
| 307 |
+
sentences), and set the selection ratio _r_ as this error
|
| 308 |
+
rate:
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
_r_ = 1
|
| 313 |
+
_−_ _n_ [1]
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
_p_ ( _correct_ = 1 _|s_ )
|
| 322 |
+
_s∈Q_
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
In this way, the selection ratio can be set adaptively according to the current model’s capability.
|
| 327 |
+
If the model is weak and makes many mistakes,
|
| 328 |
+
we will have a larger ratio which can lead to more
|
| 329 |
+
dense annotations and richer training signals. As
|
| 330 |
+
the model is trained with more data and makes
|
| 331 |
+
fewer errors, the ratio will be tuned down correspondingly to avoid wasting annotation budget on
|
| 332 |
+
already-correctly-predicted sub-structures. As we
|
| 333 |
+
will see in later experiments, this adaptive scheme
|
| 334 |
+
is suitable for AL (§3.3).
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
**2.3** **Self-training**
|
| 338 |
+
|
| 339 |
+
Better utilization of unlabeled data is a promising
|
| 340 |
+
direction to further enhance model training in AL
|
| 341 |
+
since unlabeled data are usually freely available
|
| 342 |
+
from the unlabeled pool. In this work, we adopt
|
| 343 |
+
self-training (Yarowsky, 1995) for this purpose.
|
| 344 |
+
The main idea of self-training is to enhance the
|
| 345 |
+
model training with pseudo labels that are predicted
|
| 346 |
+
by the current model on the unlabeled data. It
|
| 347 |
+
has been shown effective for various NLP tasks
|
| 348 |
+
(Yarowsky, 1995; McClosky et al., 2006; He et al.,
|
| 349 |
+
2020; Du et al., 2021). For the training of AL models, self-training can be seamlessly incorporated.
|
| 350 |
+
For FA, the application of self-training is no different than that in the conventional scenarios by
|
| 351 |
+
applying the current model to all the un-annotated
|
| 352 |
+
instances in the unlabeled pool. The more interesting case is on the partially annotated instances
|
| 353 |
+
in the PA regime. The same motivation from the
|
| 354 |
+
adaptive ratio scheme (§2.2) also applies here: We
|
| 355 |
+
select the highly-uncertain sub-structures that are
|
| 356 |
+
error-prone and the remaining un-selected parts
|
| 357 |
+
are likely to be correctly predicted; therefore we
|
| 358 |
+
can trust the predictions on the un-selected substructures and include them for training. One more
|
| 359 |
+
enhancement to apply here is that we could further
|
| 360 |
+
perform re-inference by incorporating the updated
|
| 361 |
+
annotations over the selected sub-structures, which
|
| 362 |
+
can enhance the predictions of un-annotated substructures through output dependencies.
|
| 363 |
+
In this work, we adopt a soft version of selftraining through knowledge distillation (KD; Hin
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
ton et al., 2015). This choice is because we want to
|
| 367 |
+
avoid the potential negative influences of ambiguous predictions (mostly in completely unlabeled
|
| 368 |
+
instances). One way to mitigate this is to set an
|
| 369 |
+
uncertainty threshold and only utilize the highlyconfident sub-structures. However, it is unclear
|
| 370 |
+
how to set a proper value, similar to the scenarios
|
| 371 |
+
in query selection. Therefore, we take the model’s
|
| 372 |
+
full output predictions as the training targets without further processing.
|
| 373 |
+
Specifically, our self-training objective function
|
| 374 |
+
is the cross-entropy between the output distributions predicted by the previous model _m_ _[′]_ before
|
| 375 |
+
training and the current model _m_ being trained:
|
| 376 |
+
|
| 377 |
+
= _pm′_ ( _y_ _x_ ) log _pm_ ( _y_ _x_ )
|
| 378 |
+
_L_ _−_ _|_ _|_
|
| 379 |
+
|
| 380 |
+
_y∈Y_
|
| 381 |
+
|
| 382 |
+
Several points are notable here: 1) The previous
|
| 383 |
+
model is kept unchanged, and we can simply cache
|
| 384 |
+
its predictions before training; 2) Over the instances
|
| 385 |
+
that have partial annotations, the predictions should
|
| 386 |
+
reflect these annotations by incorporating corresponding constraints at inference time; 3) For tasks
|
| 387 |
+
with CRF based models, the output space _Y_ is usually exponentially large and infeasible to explicitly
|
| 388 |
+
enumerate; we utilize special algorithms (Wang
|
| 389 |
+
et al., 2021) to deal with this, and more details are
|
| 390 |
+
presented in Appendix C.
|
| 391 |
+
Finally, we find it beneficial to include both the
|
| 392 |
+
pseudo labels and the real annotated gold labels for
|
| 393 |
+
the model training. With the gold data, the original
|
| 394 |
+
training loss is adopted, while the KD objective
|
| 395 |
+
is utilized with the pseudo labels. We simply mix
|
| 396 |
+
these two types of data with a ratio of 1:1 in the
|
| 397 |
+
training process, which we find works well.
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
**3** **Experiments**
|
| 401 |
+
|
| 402 |
+
**3.1** **Main Settings**
|
| 403 |
+
|
| 404 |
+
**Tasks and data.** Our experiments [6] are conducted
|
| 405 |
+
over four English tasks. The first two are named
|
| 406 |
+
entity recognition (NER) and dependency parsing
|
| 407 |
+
(DPAR), which are representative structured prediction tasks for predicting sequence and tree structures. We adopt the CoNLL-2003 English dataset
|
| 408 |
+
(Tjong Kim Sang and De Meulder, 2003) for NER
|
| 409 |
+
and the English Web Treebank (EWT) from Universal Dependencies v2.10 (Nivre et al., 2020) for
|
| 410 |
+
DPAR. Moreover, we explore two more complex
|
| 411 |
+
IE tasks: Event extraction and relation extraction.
|
| 412 |
+
|
| 413 |
+
6Our implementation is available at [https://github.](https://github.com/zzsfornlp/zmsp/.)
|
| 414 |
+
[com/zzsfornlp/zmsp/.](https://github.com/zzsfornlp/zmsp/.)
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
12994
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
Each task involves two pipelined sub-tasks: The
|
| 422 |
+
first aims to extract the event trigger and/or entity
|
| 423 |
+
mentions, and the second predicts links between
|
| 424 |
+
these mentions as event arguments or entity relations. We utilize the ACE05 dataset (Walker et al.,
|
| 425 |
+
2006) for these IE tasks.
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
**AL.** For the AL procedure, we adopt settings following conventional practices. We use the original
|
| 429 |
+
training set as the unlabeled data pool to select instances. Unless otherwise noted, we set the AL
|
| 430 |
+
batch size (for sentence selection) to 4K tokens,
|
| 431 |
+
which roughly corresponds to 2% of the total pool
|
| 432 |
+
size for most of the datasets we use. The initial seed
|
| 433 |
+
training set and the development set are randomly
|
| 434 |
+
sampled (with FA) using this batch size. Unless
|
| 435 |
+
otherwise noted, we run 14 AL cycles for each experiment. In each AL cycle, we re-train our model
|
| 436 |
+
since we find incremental updating does not perform well. Following most AL work, annotation
|
| 437 |
+
is simulated by checking and assigning the labels
|
| 438 |
+
from the original dataset. In FA, we annotate all
|
| 439 |
+
the sub-structures for the selected sentences. In PA,
|
| 440 |
+
we first decide the selection ratio and apply it to the
|
| 441 |
+
selected sentences. We further adopt a heuristic [7]
|
| 442 |
+
|
| 443 |
+
that selects the union of sentence-wise uncertain
|
| 444 |
+
sub-structures as well as global ones since both
|
| 445 |
+
may contain informative sub-structures. Finally, all
|
| 446 |
+
the presented results are averaged over five runs
|
| 447 |
+
with different random seeds.
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
**Model and training.** For the models, we adopt
|
| 451 |
+
standard architectures by stacking task-specific
|
| 452 |
+
structured predictors over pre-trained RoBERTabase
|
| 453 |
+
(Liu et al., 2019) and the full models are fine-tuned
|
| 454 |
+
at each training iteration. After obtaining new annotations in each AL cycle, we first train a model
|
| 455 |
+
based on all the available full or partial annotations. When using self-training, we further apply this newly trained model to assign pseudo soft
|
| 456 |
+
labels to all un-annotated instances and combine
|
| 457 |
+
them with the existing annotations to train another
|
| 458 |
+
model. Compared to using the old model from the
|
| 459 |
+
last AL cycle, this strategy can give more accurate pseudo labels since the newly updated model
|
| 460 |
+
usually performs better by learning from more annotations. For PA, pseudo soft labels are assigned
|
| 461 |
+
to both un-selected sentences and the un-annotated
|
| 462 |
+
sub-structures in the selected sentences.
|
| 463 |
+
|
| 464 |
+
|
| 465 |
+
7This heuristic will increase the actual selecting ratio, but
|
| 466 |
+
it will only be slightly larger since there are large overlaps between sentence-wise and global highly-ranked sub-structures.
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
**3.2** **Comparison Scheme**
|
| 471 |
+
|
| 472 |
+
Since FA and PA annotate at different granularities,
|
| 473 |
+
we need a common cost measurement to compare
|
| 474 |
+
their effectiveness properly. A reasonable metric
|
| 475 |
+
is the number of the labeled sub-structures; for
|
| 476 |
+
instance, the number of labeled tokens for sequence
|
| 477 |
+
labeling or edges for dependency parsing. This
|
| 478 |
+
metric is commonly adopted in previous PA work
|
| 479 |
+
(Tomanek and Hahn, 2009; Flannery and Mori,
|
| 480 |
+
2015; Li et al., 2016; Radmard et al., 2021).
|
| 481 |
+
Nevertheless, evaluating only by sub-structures
|
| 482 |
+
ignores a crucial hidden cost: The reading time of
|
| 483 |
+
the contexts. For example, in sequence labeling
|
| 484 |
+
with PA, although not every token in the sentence
|
| 485 |
+
needs to be tagged, the annotator may still need to
|
| 486 |
+
read the whole sentence to understand its meaning.
|
| 487 |
+
Therefore, if performing comparisons only by the
|
| 488 |
+
amount of annotated sub-structures, it will be unfair
|
| 489 |
+
for the FA baseline because more contexts must be
|
| 490 |
+
read to carry out PA.
|
| 491 |
+
In this work, we adopt a simple two-facet comparison scheme that considers both reading and
|
| 492 |
+
labeling costs. We first control the reading cost
|
| 493 |
+
by choosing the same size of contexts in the sentence selection step of each AL cycle (Line 4 in
|
| 494 |
+
Algorithm 1). Then, we further compare by the
|
| 495 |
+
sub-structure labeling cost, measured by the substructure annotation cost. If PA can roughly reach
|
| 496 |
+
the FA performance with the same reading cost but
|
| 497 |
+
fewer sub-structures annotated, it would be fair to
|
| 498 |
+
say that PA can help reduce cost over FA. A better
|
| 499 |
+
comparing scheme should evaluate against a unified estimation of the real annotation costs (Settles
|
| 500 |
+
et al., 2008). This usually requires actual annotation exercises rather than simulations, which we
|
| 501 |
+
leave to future work.
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
**3.3** **NER and DPAR**
|
| 505 |
+
|
| 506 |
+
**Settings.** We compare primarily three strategies:
|
| 507 |
+
FA, PA, and a baseline where randomly selected
|
| 508 |
+
sentences are fully annotated (Rand). We also include a supervised result (Super.) which is obtained
|
| 509 |
+
from a model trained with the full original training
|
| 510 |
+
set. We measure reading cost by the total number
|
| 511 |
+
of tokens in the selected sentences. For labeling
|
| 512 |
+
cost, we further adopt metrics with practical considerations. In NER, lots of tokens, such as functional
|
| 513 |
+
words, can be easily judged as the ‘O’ (non-entity)
|
| 514 |
+
tag. To avoid over-estimating the costs of such
|
| 515 |
+
easy tokens for FA, we filter tokens by their partof-speech (POS) tags and only count the ones that
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
12995
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
92
|
| 523 |
+
|
| 524 |
+
91
|
| 525 |
+
|
| 526 |
+
90
|
| 527 |
+
|
| 528 |
+
89
|
| 529 |
+
|
| 530 |
+
88
|
| 531 |
+
|
| 532 |
+
87
|
| 533 |
+
|
| 534 |
+
86
|
| 535 |
+
|
| 536 |
+
|
| 537 |
+
90
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
88
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
86
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
84
|
| 547 |
+
|
| 548 |
+
|
| 549 |
+
|
| 550 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|
|
| 551 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 552 |
+
|||||||||||||
|
| 553 |
+
||||||||||Rand<br>|Rand<br>|Rand<br>|
|
| 554 |
+
|||||||||||||
|
| 555 |
+
||||||||||Rand+S<br>~~FA~~|Rand+S<br>~~FA~~|T|
|
| 556 |
+
|||||||||||||
|
| 557 |
+
||||||||||FA+ST<br>|FA+ST<br>||
|
| 558 |
+
|||||||||||||
|
| 559 |
+
||||||||||~~PA~~<br>PA+ST|~~PA~~<br>PA+ST||
|
| 560 |
+
||||||||||Super.|Super.||
|
| 561 |
+
|||||||||||||
|
| 562 |
+
|||||||||||||
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
4000 12000 20000 28000 36000 44000 52000 60000
|
| 566 |
+
Token Count
|
| 567 |
+
|
| 568 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|
|
| 569 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 570 |
+
|||||||||||||
|
| 571 |
+
|||||||||||||
|
| 572 |
+
|||||||||||||
|
| 573 |
+
||||||||||~~Rand~~<br>Rand+S<br>~~FA~~|~~Rand~~<br>Rand+S<br>~~FA~~|T|
|
| 574 |
+
|||||||||||||
|
| 575 |
+
||||||||||FA+ST<br>PA<br>|FA+ST<br>PA<br>||
|
| 576 |
+
|||||||||||||
|
| 577 |
+
|||||||||||||
|
| 578 |
+
||||||||||PA+ST<br>Super.|PA+ST<br>Super.||
|
| 579 |
+
|||||||||||||
|
| 580 |
+
|||||||||||||
|
| 581 |
+
|||||||||||||
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
Token Count
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
92
|
| 590 |
+
|
| 591 |
+
91
|
| 592 |
+
|
| 593 |
+
90
|
| 594 |
+
|
| 595 |
+
89
|
| 596 |
+
|
| 597 |
+
88
|
| 598 |
+
|
| 599 |
+
87
|
| 600 |
+
|
| 601 |
+
86
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
90
|
| 605 |
+
|
| 606 |
+
|
| 607 |
+
88
|
| 608 |
+
|
| 609 |
+
|
| 610 |
+
86
|
| 611 |
+
|
| 612 |
+
|
| 613 |
+
84
|
| 614 |
+
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|
|
| 618 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 619 |
+
||||||||||and<br>|
|
| 620 |
+
||||||||R<br>|R<br>|R<br>|
|
| 621 |
+
||||||||R<br>~~F~~|R<br>~~F~~|and+ST<br>|
|
| 622 |
+
||||||||F<br>|F<br>|A+ST<br>|
|
| 623 |
+
||||||||~~P~~<br>P|~~P~~<br>P|+ST|
|
| 624 |
+
||||||||Su|Su|per.|
|
| 625 |
+
|||||||||||
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
0 2500 5000 7500 10000 12500 15000
|
| 629 |
+
Sub-structure Count
|
| 630 |
+
|
| 631 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|Col13|
|
| 632 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 633 |
+
||||||||||||||
|
| 634 |
+
||||||||||||||
|
| 635 |
+
||||||||||||||
|
| 636 |
+
|||||||||||~~Rand~~<br>Rand+<br>~~FA~~|~~Rand~~<br>Rand+<br>~~FA~~|ST|
|
| 637 |
+
|||||||||||FA+S<br>PA<br>|FA+S<br>PA<br>|T<br>|
|
| 638 |
+
|||||||||||PA+S<br>Super.|PA+S<br>Super.|T|
|
| 639 |
+
||||||||||||||
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
|
| 643 |
+
Sub-structure Count
|
| 644 |
+
|
| 645 |
+
|
| 646 |
+
|
| 647 |
+
Figure 2: Comparisons according to reading and labeling cost. Each node indicates one AL cycle. For _x_ -axis,
|
| 648 |
+
reading cost (left) is measured by token numbers, while labeling cost (right) is task-specific (§3.3). NER is evaluated
|
| 649 |
+
with labeled F1 scores on CoNLL-2003, while DPAR is with LAS scores on UD-EWT. Results are averaged over
|
| 650 |
+
five runs with different seeds, and the shaded areas indicate standard deviations. The overall unlabeled pool contains
|
| 651 |
+
around 200K tokens. Using AL, good performance can be obtained with less than 30% (60K) annotated.
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
are likely to be inside an entity mention. [8] For PA,
|
| 656 |
+
we still count every queried token. For the task of
|
| 657 |
+
DPAR, similarly, different dependency links can
|
| 658 |
+
have variant annotation difficulties. We utilize the
|
| 659 |
+
surface distance between the head and modifier
|
| 660 |
+
of the dependency edge as the measure of labeling cost, considering that the decisions for longer
|
| 661 |
+
dependencies are usually harder.
|
| 662 |
+
|
| 663 |
+
|
| 664 |
+
**Main Results.** The main test results are shown
|
| 665 |
+
in Figure 2, where the patterns on both tasks are
|
| 666 |
+
similar. First, AL brings clear improvements over
|
| 667 |
+
the random baseline and can roughly reach the fully
|
| 668 |
+
supervised performance with only a small portion
|
| 669 |
+
of data annotated (around 18% for CoNLL-2003
|
| 670 |
+
and 30% for UD-EWT). Moreover, self-training
|
| 671 |
+
(+ST) is helpful for all the strategies, boosting performance without the need for extra manual annotations. Finally, with the help of self-training, the PA
|
| 672 |
+
strategy can roughly match the performance of FA
|
| 673 |
+
with the same amount of reading cost (according to
|
| 674 |
+
the left figures) while labeling fewer sub-structures
|
| 675 |
+
(according to the right figures). This indicates that
|
| 676 |
+
PA can help to further reduce annotation costs over
|
| 677 |
+
the strong FA baselines.
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
8The POS tags are assigned by Stanza (Qi et al., 2020).
|
| 681 |
+
For CoNLL-2003, we filter by PROPN and ADJ, which cover
|
| 682 |
+
more than 95% of the entity tokens.
|
| 683 |
+
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
**Ratio** **Analysis.** We further analyze the effectiveness of our adaptive ratio scheme with DPAR
|
| 687 |
+
as the case study. We compare the adaptive scheme
|
| 688 |
+
to schemes with fixed ratio _r_, and the results [9] are
|
| 689 |
+
shown in Figure 3. For the fixed-ratio schemes,
|
| 690 |
+
if the value is too small (such as 0.1), although
|
| 691 |
+
its improving speed is the fastest at the beginning,
|
| 692 |
+
its performance lags behind others with the same
|
| 693 |
+
reading contexts due to fewer sub-structures annotated. If the value is too large (such as 0.5), it grows
|
| 694 |
+
slowly, probably because too many uninformative
|
| 695 |
+
sub-structures are annotated. The fixed scheme
|
| 696 |
+
with _r_ = 0 _._ 3 seems a good choice; however, it is
|
| 697 |
+
unclear how to find this sweet spot in realistic AL
|
| 698 |
+
processes. The adaptive scheme provides a reasonable solution by automatically deciding the ratio
|
| 699 |
+
according to the model performance.
|
| 700 |
+
|
| 701 |
+
|
| 702 |
+
**Error and Uncertainty Analysis.** We further analyze the error rates and uncertainties of the queried
|
| 703 |
+
sub-structures. We still take DPAR as a case study
|
| 704 |
+
and Figure 4 shows the results along the AL cycles
|
| 705 |
+
in PA mode. First, though adopting a simple model,
|
| 706 |
+
the performance predictor can give reasonable estimations for the overall error rates. Moreover, by
|
| 707 |
+
further breaking down the error rates into selected
|
| 708 |
+
|
| 709 |
+
|
| 710 |
+
9Here, we use self-training (+ST) for all the strategies.
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
12996
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
error(S)
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
0.8
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
0.6
|
| 724 |
+
|
| 725 |
+
|
| 726 |
+
0.4
|
| 727 |
+
|
| 728 |
+
|
| 729 |
+
0.2
|
| 730 |
+
|
| 731 |
+
|
| 732 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|
|
| 733 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 734 |
+
|||||||||r=0.1<br>r=0.3<br>~~r=0.5~~<br>Adapti<br>|ve|
|
| 735 |
+
|||||||||||
|
| 736 |
+
|||||||||||
|
| 737 |
+
|||||||||Super.||
|
| 738 |
+
|||||||||||
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|
|
| 742 |
+
|---|---|---|---|---|---|---|
|
| 743 |
+
||||||||
|
| 744 |
+
||||||||
|
| 745 |
+
||||||||
|
| 746 |
+
||||||||
|
| 747 |
+
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
0.0
|
| 751 |
+
1 3 5 7 9 1113
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
|
| 755 |
+
margin
|
| 756 |
+
|
| 757 |
+
|
| 758 |
+
|
| 759 |
+
90
|
| 760 |
+
|
| 761 |
+
|
| 762 |
+
88
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
86
|
| 766 |
+
|
| 767 |
+
|
| 768 |
+
84
|
| 769 |
+
|
| 770 |
+
|
| 771 |
+
90
|
| 772 |
+
|
| 773 |
+
|
| 774 |
+
88
|
| 775 |
+
|
| 776 |
+
|
| 777 |
+
86
|
| 778 |
+
|
| 779 |
+
|
| 780 |
+
84
|
| 781 |
+
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
Token Count
|
| 785 |
+
|
| 786 |
+
|
| 787 |
+
DPAR Labeling Cost
|
| 788 |
+
0.50
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|r=0<br>r=0|.1<br>.3|
|
| 793 |
+
|---|---|---|---|---|---|---|---|
|
| 794 |
+
|||||||~~r=~~<br>Ad<br>Su|~~.5~~<br>aptive<br>er.<br><br>|
|
| 795 |
+
|||||||||
|
| 796 |
+
|||||||||
|
| 797 |
+
|
| 798 |
+
|
| 799 |
+
Sub-structure Count
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
pred
|
| 804 |
+
|
| 805 |
+
|
| 806 |
+
1 3 5 7 9 1113
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
|
| 811 |
+
|
| 812 |
+
Figure 3: Comparisons of different strategies to decide
|
| 813 |
+
the partial ratio. The first three utilize fixed ratio _r_,
|
| 814 |
+
while “Adaptive” adopts the dynamic scheme. The grey
|
| 815 |
+
curve (corresponding to the right _y_ -axis) denotes the
|
| 816 |
+
actual selection ratios with the adaptive scheme.
|
| 817 |
+
|
| 818 |
+
|
| 819 |
+
(S) and non-selected (N) groups, we can see that
|
| 820 |
+
the selected ones contain many errors, indicating
|
| 821 |
+
the need for manual corrections. On the other hand,
|
| 822 |
+
the error rates on the non-selected sub-structures
|
| 823 |
+
are much lower, verifying the effectiveness of using model-predicted pseudo labels on them in selftraining. Finally, the overall margin of the selected
|
| 824 |
+
sentences keeps increasing towards 1, indicating
|
| 825 |
+
that there are many non-ambiguous sub-structures
|
| 826 |
+
even in highly-uncertain sentences. The margins
|
| 827 |
+
of the selected sub-structures are much lower, suggesting that annotating them could provide more
|
| 828 |
+
informative signals for model training.
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+
**Domain-transfer Experiments.** We further investigate a domain-transfer scenario: in addition to
|
| 832 |
+
unlabeled in-domain data, we assume abundant outof-domain annotated data and perform AL on the
|
| 833 |
+
target domain. We adopt tweet texts as the target
|
| 834 |
+
domain, using Broad Twitter Corpus (BTC; Derczynski et al., 2016) for NER and Tweebank (Liu
|
| 835 |
+
et al., 2018) for DPAR. We assume we have models
|
| 836 |
+
trained from a richly-annotated source domain and
|
| 837 |
+
continue performing AL on the target domain. The
|
| 838 |
+
source domains are the datasets that we utilize in
|
| 839 |
+
our main experiments: CoNLL03 for NER and UDEWT for DPAR. We adopt a simple model-transfer
|
| 840 |
+
|
| 841 |
+
|
| 842 |
+
|
| 843 |
+
Figure 4: Analyses of error rates and uncertainties (margins) of the DPAR sub-structures in the queried sentences along the AL cycles ( _x_ -axis). Here, ‘pred’ denotes the predicted error rate, ‘error’ denotes the actual
|
| 844 |
+
error rate and ‘margin’ denotes the uncertainty (margin)
|
| 845 |
+
scores. For the suffixes, ‘(S)’ indicates partially selected
|
| 846 |
+
sub-structures, and ‘(N)’ indicates non-selected ones.
|
| 847 |
+
‘Margin(N)’ is omitted since it is always close to 1.
|
| 848 |
+
|
| 849 |
+
|
| 850 |
+
approach by initializing the model from the one
|
| 851 |
+
trained with the source data and further fine-tuning
|
| 852 |
+
it with the target data. Since the target data size
|
| 853 |
+
is small, we reduce the AL batch sizes for BTC
|
| 854 |
+
and Tweebank to 2000 and 1000 tokens, respectively. The results for these experiments are shown
|
| 855 |
+
in Figure 5. In these experiments, we also include
|
| 856 |
+
the no-transfer results, adopting the “FA+ST” but
|
| 857 |
+
without model transfer. For NER, without transfer
|
| 858 |
+
learning, the results are generally worse, especially
|
| 859 |
+
in early AL stages, where there is a small amount of
|
| 860 |
+
annotated data to provide training signals. In these
|
| 861 |
+
cases, knowledge learned from the source domain
|
| 862 |
+
can provide extra information to boost the results.
|
| 863 |
+
For DPAR, we can see even larger benefits of using
|
| 864 |
+
transfer learning; there are still clear gaps between
|
| 865 |
+
transfer and no-transfer strategies when the former
|
| 866 |
+
already reaches the supervised performance. These
|
| 867 |
+
results indicate that the benefits of AL and transfer
|
| 868 |
+
learning can be orthogonal, and combining them
|
| 869 |
+
can lead to promising results.
|
| 870 |
+
|
| 871 |
+
|
| 872 |
+
**3.4** **Information Extraction**
|
| 873 |
+
|
| 874 |
+
We further explore more complex IE tasks that involve multiple types of output. Specifically, we
|
| 875 |
+
investigate event extraction and relation extraction.
|
| 876 |
+
We adopt a classical pipelined approach, [10] which
|
| 877 |
+
splits the full task into two sub-tasks: the first performs mention extraction, while the second examines mention pairs and predicts relations. While
|
| 878 |
+
|
| 879 |
+
|
| 880 |
+
10Please refer to Appendix A for more task-specific details.
|
| 881 |
+
|
| 882 |
+
|
| 883 |
+
|
| 884 |
+
12997
|
| 885 |
+
|
| 886 |
+
|
| 887 |
+
82
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
80
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
78
|
| 894 |
+
|
| 895 |
+
|
| 896 |
+
76
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
74
|
| 900 |
+
|
| 901 |
+
|
| 902 |
+
86
|
| 903 |
+
|
| 904 |
+
|
| 905 |
+
84
|
| 906 |
+
|
| 907 |
+
|
| 908 |
+
82
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
80
|
| 912 |
+
|
| 913 |
+
|
| 914 |
+
78
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 919 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 920 |
+
||||||||||Rand<br>||
|
| 921 |
+
||||||||||~~Rand+S~~<br>FA<br>~~FA+ST~~||
|
| 922 |
+
||||||||||PA<br>PA+ST||
|
| 923 |
+
||||||||||NoTransf<br>Super.|er|
|
| 924 |
+
||||||||||||
|
| 925 |
+
|
| 926 |
+
|
| 927 |
+
Token Count
|
| 928 |
+
|
| 929 |
+
|
| 930 |
+
|
| 931 |
+
82
|
| 932 |
+
|
| 933 |
+
|
| 934 |
+
80
|
| 935 |
+
|
| 936 |
+
|
| 937 |
+
78
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
76
|
| 941 |
+
|
| 942 |
+
|
| 943 |
+
74
|
| 944 |
+
|
| 945 |
+
|
| 946 |
+
86
|
| 947 |
+
|
| 948 |
+
|
| 949 |
+
84
|
| 950 |
+
|
| 951 |
+
|
| 952 |
+
82
|
| 953 |
+
|
| 954 |
+
|
| 955 |
+
80
|
| 956 |
+
|
| 957 |
+
|
| 958 |
+
78
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
|
| 962 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|
|
| 963 |
+
|---|---|---|---|---|---|---|---|
|
| 964 |
+
|||||||Rand<br>||
|
| 965 |
+
|||||||||
|
| 966 |
+
|||||||~~Rand+S~~<br>FA<br>~~FA+ST~~||
|
| 967 |
+
|||||||||
|
| 968 |
+
|||||||PA<br>PA+ST||
|
| 969 |
+
|||||||||
|
| 970 |
+
|||||||||
|
| 971 |
+
|||||||NoTransf<br>Super.|er|
|
| 972 |
+
|||||||||
|
| 973 |
+
|||||||||
|
| 974 |
+
|||||||||
|
| 975 |
+
|
| 976 |
+
|
| 977 |
+
Sub-structure Count
|
| 978 |
+
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
|
| 983 |
+
60
|
| 984 |
+
|
| 985 |
+
|
| 986 |
+
50
|
| 987 |
+
|
| 988 |
+
|
| 989 |
+
40
|
| 990 |
+
|
| 991 |
+
|
| 992 |
+
30
|
| 993 |
+
|
| 994 |
+
|
| 995 |
+
|
| 996 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|Col13|Col14|Col15|
|
| 997 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 998 |
+
||||||||||||||||
|
| 999 |
+
||||||||||||||||
|
| 1000 |
+
|||||||||||||Rand<br>|Rand<br>|Rand<br>|
|
| 1001 |
+
|||||||||||||~~Rand+ST~~<br>FA<br>FA+ST|~~Rand+ST~~<br>FA<br>FA+ST||
|
| 1002 |
+
|||||||||||||PA<br>PA+ST<br>|PA<br>PA+ST<br>||
|
| 1003 |
+
|||||||||||||~~NoTransf~~<br>Super.|~~NoTransf~~<br>Super.|~~r~~|
|
| 1004 |
+
||||||||||||||||
|
| 1005 |
+
|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|1000<br>3000<br>5000<br>7000<br>9000<br>11000<br>13000<br>15000<br>Token Count<br>: AL results in domain-transfer settings (C<br> Notations are the same as in Figure 2, exce<br> here no transfer learning is applied (FA+ST<br>EventArgument Reading Cost|
|
| 1006 |
+
||||||||||||||||
|
| 1007 |
+
||||||||||||||||
|
| 1008 |
+
|||||||||||||Rand<br>|Rand<br>||
|
| 1009 |
+
||||||||||||||||
|
| 1010 |
+
|||||||||||||Rand+S<br>FA<br>FA+ST<br>|Rand+S<br>FA<br>FA+ST<br>|T|
|
| 1011 |
+
||||||||||||||||
|
| 1012 |
+
||||||||||||||||
|
| 1013 |
+
|||||||||||||PA<br>PA+ST<br>Super.|PA<br>PA+ST<br>Super.||
|
| 1014 |
+
||||||||||||||||
|
| 1015 |
+
||||||||||||||||
|
| 1016 |
+
||||||||||||||||
|
| 1017 |
+
||||||||||||||||
|
| 1018 |
+
|
| 1019 |
+
|
| 1020 |
+
Token Count
|
| 1021 |
+
|
| 1022 |
+
|
| 1023 |
+
|
| 1024 |
+
60
|
| 1025 |
+
|
| 1026 |
+
|
| 1027 |
+
50
|
| 1028 |
+
|
| 1029 |
+
|
| 1030 |
+
40
|
| 1031 |
+
|
| 1032 |
+
|
| 1033 |
+
30
|
| 1034 |
+
|
| 1035 |
+
|
| 1036 |
+
|
| 1037 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 1038 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 1039 |
+
||||||||||||
|
| 1040 |
+
||||||||||||
|
| 1041 |
+
||||||||||||
|
| 1042 |
+
||||||||~~Rand~~<br>FA<br>FA+S|~~Rand~~<br>FA<br>FA+S|~~ST~~<br>T|~~ST~~<br>T|
|
| 1043 |
+
||||||||PA<br>PA+S<br>|PA<br>PA+S<br>|T<br>|T<br>|
|
| 1044 |
+
||||||||~~NoTr~~<br>Super|~~NoTr~~<br>Super|~~nsfer~~<br>.|~~nsfer~~<br>.|
|
| 1045 |
+
||||||||||||
|
| 1046 |
+
|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|0<br>10000<br>20000<br>30000<br>40000<br>50000<br>Sub-structure Count<br> _→_BTC for NER and UD-EWT _→_Tweeb<br> re is one more curve of “NoTransfer” denot<br>EventArgument Labeling Cost|
|
| 1047 |
+
||||||||||||
|
| 1048 |
+
||||||||||||
|
| 1049 |
+
|||||||||Rand<br>|Rand<br>||
|
| 1050 |
+
|||||||||Rand+<br>FA<br>FA+ST<br>|Rand+<br>FA<br>FA+ST<br>|T|
|
| 1051 |
+
|||||||||PA<br>PA+ST<br>Super.|PA<br>PA+ST<br>Super.||
|
| 1052 |
+
||||||||||||
|
| 1053 |
+
|
| 1054 |
+
|
| 1055 |
+
Sub-structure Count
|
| 1056 |
+
|
| 1057 |
+
|
| 1058 |
+
|
| 1059 |
+
Figure 6: Results of event argument extraction on ACE05. Notations are the same as in Figure 2.
|
| 1060 |
+
|
| 1061 |
+
|
| 1062 |
+
|
| 1063 |
+
previous work investigates multi-task AL with FA
|
| 1064 |
+
(Reichart et al., 2008; Zhu et al., 2020; Rotman and
|
| 1065 |
+
Reichart, 2022), this work is the first to explore PA
|
| 1066 |
+
in this challenging setting.
|
| 1067 |
+
We extend our PA scheme to this multi-task scenario with several modifications. First, for the
|
| 1068 |
+
sentence-selection stage, we obtain a sentence-wise
|
| 1069 |
+
uncertainty score UNC( _x_ ) with a weighted combination of the two sub-tasks’ uncertainty scores:
|
| 1070 |
+
|
| 1071 |
+
|
| 1072 |
+
UNC( _x_ ) = _β ·_ UNC-Mention( _x_ )
|
| 1073 |
+
|
| 1074 |
+
+ (1 _−_ _β_ ) _·_ UNC-Relation( _x_ )
|
| 1075 |
+
|
| 1076 |
+
Following Rotman and Reichart (2022), we set _β_
|
| 1077 |
+
to a relatively large value (0.9), which is found to
|
| 1078 |
+
be helpful for the second relational sub-task.
|
| 1079 |
+
Moreover, for partial selection, we separately select sub-structures for the two sub-tasks according
|
| 1080 |
+
to the adaptive selection scheme. Since the second
|
| 1081 |
+
|
| 1082 |
+
|
| 1083 |
+
|
| 1084 |
+
relational sub-task depends on the mentions extracted from the first sub-task, we utilize predicted
|
| 1085 |
+
mentions and view each feasible mention pair as a
|
| 1086 |
+
querying candidate. A special annotation protocol
|
| 1087 |
+
is adopted to deal with the incorrectly predicted
|
| 1088 |
+
mentions. For each queried relation, we first examine its mentions and perform corrections if there
|
| 1089 |
+
are mention errors that can be fixed by matching
|
| 1090 |
+
the gold ones. If neither of the two mentions can
|
| 1091 |
+
be corrected, we discard this query.
|
| 1092 |
+
Finally, to compensate for the influences of errors in mention extraction, we adopt further heuristics of increasing the partial ratio by the estimated
|
| 1093 |
+
percentage of queries with incorrect mentions, as
|
| 1094 |
+
well as including a second annotation stage with
|
| 1095 |
+
queries over newly annotated mentions. Please
|
| 1096 |
+
refer to Appendix A.2 for more details.
|
| 1097 |
+
We show the results of event argument extraction
|
| 1098 |
+
in Figure 6, where the overall trends are similar to
|
| 1099 |
+
|
| 1100 |
+
|
| 1101 |
+
|
| 1102 |
+
12998
|
| 1103 |
+
|
| 1104 |
+
|
| 1105 |
+
those in NER and DPAR. Here, labeling cost is
|
| 1106 |
+
simply measured as the number of candidate argument links. Overall, self-training is helpful for
|
| 1107 |
+
all AL strategies, indicating the benefits of making
|
| 1108 |
+
better use of unlabeled data. If measured by the
|
| 1109 |
+
labeling cost, PA learns the fastest and costs only
|
| 1110 |
+
around half of the annotated arguments of FA to
|
| 1111 |
+
reach the supervised result. On the other hand, PA
|
| 1112 |
+
is also competitive concerning reading cost and can
|
| 1113 |
+
generally match the FA results in later AL stages.
|
| 1114 |
+
There is still a gap between PA and FA in the earlier
|
| 1115 |
+
AL stages, which may be influenced by the errors
|
| 1116 |
+
produced by the first sub-task of mention extraction. We leave further investigations on improving
|
| 1117 |
+
early AL stages to future work. The results for
|
| 1118 |
+
the relation extraction task share similar trends and
|
| 1119 |
+
are presented in Appendix D.2, together with the
|
| 1120 |
+
results of mention extraction.
|
| 1121 |
+
|
| 1122 |
+
|
| 1123 |
+
**4** **Related Work**
|
| 1124 |
+
|
| 1125 |
+
|
| 1126 |
+
**Self-training.** Self-training is a commonly utilized semi-supervised method to incorporate unlabeled data. It has been shown effective for a variety
|
| 1127 |
+
of NLP tasks, including word sense disambiguation (Yarowsky, 1995), parsing (McClosky et al.,
|
| 1128 |
+
2006), named entity recognition (Meng et al., 2021;
|
| 1129 |
+
Huang et al., 2021), text generation (He et al., 2020;
|
| 1130 |
+
Mehta et al., 2022) as well as natural language
|
| 1131 |
+
understanding (Du et al., 2021). Moreover, selftraining can be especially helpful for low-resource
|
| 1132 |
+
scenarios, such as in few-shot learning (Vu et al.,
|
| 1133 |
+
2021; Chen et al., 2021). Self-training has also
|
| 1134 |
+
been a commonly adopted strategy to enhance active learning (Tomanek and Hahn, 2009; Majidi
|
| 1135 |
+
and Crane, 2013; Yu et al., 2022).
|
| 1136 |
+
|
| 1137 |
+
|
| 1138 |
+
**PA.** Learning from incomplete annotations has
|
| 1139 |
+
been well-explored for structured prediction. For
|
| 1140 |
+
CRF models, taking the marginal likelihood as the
|
| 1141 |
+
objective function has been one of the most utilized techniques (Tsuboi et al., 2008; Täckström
|
| 1142 |
+
et al., 2013; Yang and Vozila, 2014; Greenberg
|
| 1143 |
+
et al., 2018). There are also other methods to
|
| 1144 |
+
deal with incomplete annotations, such as adopting local models (Neubig and Mori, 2010; Flannery et al., 2011), max-margin objective (Fernandes and Brefeld, 2011), learning with constraints
|
| 1145 |
+
(Ning et al., 2018, 2019; Mayhew et al., 2019) and
|
| 1146 |
+
negative sampling (Li et al., 2022).
|
| 1147 |
+
|
| 1148 |
+
|
| 1149 |
+
**AL for structured prediction.** AL has been investigated for various structured prediction tasks in
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
|
| 1153 |
+
NLP, such as sequence labeling (Settles and Craven,
|
| 1154 |
+
2008; Shen et al., 2018), parsing (Hwa, 2004), semantic role labeling (Wang et al., 2017; Myers
|
| 1155 |
+
and Palmer, 2021) and machine translation (Haffari
|
| 1156 |
+
et al., 2009; Zeng et al., 2019). While most previous work adopt FA, that is, annotating full structured objects for the inputs, PA can help to further
|
| 1157 |
+
reduce the annotation cost. Typical examples of PA
|
| 1158 |
+
sub-structures include tokens and subsequences for
|
| 1159 |
+
tagging (Marcheggiani and Artières, 2014; Chaudhary et al., 2019; Radmard et al., 2021), word-wise
|
| 1160 |
+
head edges for dependency parsing (Flannery and
|
| 1161 |
+
Mori, 2015; Li et al., 2016) and mention links for
|
| 1162 |
+
coreference resolution (Li et al., 2020; Espeland
|
| 1163 |
+
et al., 2020).
|
| 1164 |
+
|
| 1165 |
+
|
| 1166 |
+
**5** **Conclusion**
|
| 1167 |
+
|
| 1168 |
+
|
| 1169 |
+
In this work, we investigate better AL strategies
|
| 1170 |
+
for structured prediction in NLP, adopting a performance estimator to automatically decide suitable
|
| 1171 |
+
ratios for partial sub-structure selection and utilizing self-training to make better use of the available
|
| 1172 |
+
unlabeled data pool. With comprehensive experiments on various tasks, we show that the combination of PA and self-training can be more dataefficient than strong full AL baselines.
|
| 1173 |
+
|
| 1174 |
+
|
| 1175 |
+
**Limitations**
|
| 1176 |
+
|
| 1177 |
+
|
| 1178 |
+
This work has several limitations. First, the AL
|
| 1179 |
+
experiments in this work are based on simulations
|
| 1180 |
+
with existing annotations, following previous AL
|
| 1181 |
+
work. Our error estimator also requires a small
|
| 1182 |
+
development set and the proper setting of a hyperparameter. Nevertheless, we tried our best to make
|
| 1183 |
+
the settings practical and the evaluation fair, especially taking reading time into consideration. Second, in our experiments, we mainly focus on investigating how much data is needed to reach the fullysupervised results and continue the AL cycles until
|
| 1184 |
+
this happens. In practice, it may be interesting to
|
| 1185 |
+
more carefully examine the early AL stages, where
|
| 1186 |
+
most of the performance improvements happen. Finally, for the IE tasks with multiple output types,
|
| 1187 |
+
we mainly focus on the second relational sub-task
|
| 1188 |
+
and adopt a simple weighting setting to combine
|
| 1189 |
+
the uncertainties of the two sub-tasks. More explorations on the dynamic balancing of the two subtasks in pipelined models (Roth and Small, 2008)
|
| 1190 |
+
would be an interesting direction for future work.
|
| 1191 |
+
|
| 1192 |
+
|
| 1193 |
+
|
| 1194 |
+
12999
|
| 1195 |
+
|
| 1196 |
+
|
| 1197 |
+
**References**
|
| 1198 |
+
|
| 1199 |
+
Leonard E Baum, Ted Petrie, George Soules, and Norman Weiss. 1970. A maximization technique occurring in the statistical analysis of probabilistic functions of markov chains. _The annals of mathematical_
|
| 1200 |
+
_statistics_, 41(1):164–171.
|
| 1201 |
+
|
| 1202 |
+
|
| 1203 |
+
Aditi Chaudhary, Jiateng Xie, Zaid Sheikh, Graham
|
| 1204 |
+
Neubig, and Jaime Carbonell. 2019. [A little annota-](https://doi.org/10.18653/v1/D19-1520)
|
| 1205 |
+
tion does a lot of good: [A study in bootstrapping low-](https://doi.org/10.18653/v1/D19-1520)
|
| 1206 |
+
[resource named entity recognizers.](https://doi.org/10.18653/v1/D19-1520) In _Proceedings_
|
| 1207 |
+
_of the 2019 Conference on Empirical Methods in Nat-_
|
| 1208 |
+
_ural Language Processing and the 9th International_
|
| 1209 |
+
_Joint Conference on Natural Language Processing_
|
| 1210 |
+
_(EMNLP-IJCNLP)_, pages 5164–5174, Hong Kong,
|
| 1211 |
+
China. Association for Computational Linguistics.
|
| 1212 |
+
|
| 1213 |
+
|
| 1214 |
+
Yiming Chen, Yan Zhang, Chen Zhang, Grandee Lee,
|
| 1215 |
+
Ran Cheng, and Haizhou Li. 2021. [Revisiting self-](https://doi.org/10.18653/v1/2021.emnlp-main.718)
|
| 1216 |
+
training for few-shot [learning](https://doi.org/10.18653/v1/2021.emnlp-main.718) of language model.
|
| 1217 |
+
In _Proceedings_ _of_ _the_ _2021_ _Conference_ _on_ _Empir-_
|
| 1218 |
+
_ical Methods in Natural Language Processing_, pages
|
| 1219 |
+
9125–9135, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 1220 |
+
|
| 1221 |
+
|
| 1222 |
+
Leon Derczynski, Kalina Bontcheva, and Ian Roberts.
|
| 1223 |
+
2016. Broad Twitter corpus: [A diverse named entity](https://aclanthology.org/C16-1111)
|
| 1224 |
+
[recognition](https://aclanthology.org/C16-1111) resource. In _Proceedings_ _of_ _COLING_
|
| 1225 |
+
_2016, the 26th International Conference on Compu-_
|
| 1226 |
+
_tational Linguistics:_ _Technical Papers_, pages 1169–
|
| 1227 |
+
1179, Osaka, Japan. The COLING 2016 Organizing
|
| 1228 |
+
Committee.
|
| 1229 |
+
|
| 1230 |
+
|
| 1231 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and
|
| 1232 |
+
Kristina Toutanova. 2019. BERT: [Pre-training](https://doi.org/10.18653/v1/N19-1423) of
|
| 1233 |
+
[deep bidirectional transformers for language under-](https://doi.org/10.18653/v1/N19-1423)
|
| 1234 |
+
[standing.](https://doi.org/10.18653/v1/N19-1423) In _Proceedings of the 2019 Conference of_
|
| 1235 |
+
_the North American Chapter of the Association for_
|
| 1236 |
+
_Computational Linguistics:_ _Human Language Tech-_
|
| 1237 |
+
_nologies, Volume 1 (Long and Short Papers)_, pages
|
| 1238 |
+
4171–4186, Minneapolis, Minnesota. Association for
|
| 1239 |
+
Computational Linguistics.
|
| 1240 |
+
|
| 1241 |
+
|
| 1242 |
+
Timothy Dozat and Christopher D. Manning. 2017.
|
| 1243 |
+
Deep biaffine attention for neural dependency parsing. In _ICLR_ .
|
| 1244 |
+
|
| 1245 |
+
|
| 1246 |
+
Jingfei Du, Edouard Grave, Beliz Gunel, Vishrav Chaudhary, Onur Celebi, Michael Auli, Veselin Stoyanov,
|
| 1247 |
+
and Alexis Conneau. 2021. [Self-training improves](https://doi.org/10.18653/v1/2021.naacl-main.426)
|
| 1248 |
+
[pre-training for natural language understanding.](https://doi.org/10.18653/v1/2021.naacl-main.426) In
|
| 1249 |
+
_Proceedings_ _of_ _the_ _2021_ _Conference_ _of_ _the_ _North_
|
| 1250 |
+
_American Chapter of the Association for Computa-_
|
| 1251 |
+
_tional Linguistics:_ _Human Language Technologies_,
|
| 1252 |
+
pages 5408–5418, Online. Association for Computational Linguistics.
|
| 1253 |
+
|
| 1254 |
+
|
| 1255 |
+
Vebjørn Espeland, Beatrice Alex, and Benjamin Bach.
|
| 1256 |
+
2020. Enhanced labelling [in](https://aclanthology.org/2020.crac-1.12) active learning for
|
| 1257 |
+
[coreference](https://aclanthology.org/2020.crac-1.12) resolution. In _Proceedings_ _of_ _the_
|
| 1258 |
+
_Third_ _Workshop_ _on_ _Computational_ _Models_ _of_ _Ref-_
|
| 1259 |
+
_erence, Anaphora and Coreference_, pages 111–121,
|
| 1260 |
+
Barcelona, Spain (online). Association for Computational Linguistics.
|
| 1261 |
+
|
| 1262 |
+
|
| 1263 |
+
|
| 1264 |
+
Eraldo R Fernandes and Ulf Brefeld. 2011. Learning from partially annotated sequences. In _Joint_
|
| 1265 |
+
_European_ _Conference_ _on_ _Machine_ _Learning_ _and_
|
| 1266 |
+
_Knowledge Discovery in Databases_, pages 407–422.
|
| 1267 |
+
Springer.
|
| 1268 |
+
|
| 1269 |
+
|
| 1270 |
+
Daniel Flannery, Yusuke Miayo, Graham Neubig, and
|
| 1271 |
+
Shinsuke Mori. 2011. [Training dependency parsers](https://aclanthology.org/I11-1087)
|
| 1272 |
+
[from partially annotated corpora.](https://aclanthology.org/I11-1087) In _Proceedings of_
|
| 1273 |
+
_5th International Joint Conference on Natural Lan-_
|
| 1274 |
+
_guage Processing_, pages 776–784, Chiang Mai, Thailand. Asian Federation of Natural Language Processing.
|
| 1275 |
+
|
| 1276 |
+
|
| 1277 |
+
Daniel Flannery and Shinsuke Mori. 2015. [Combin-](https://doi.org/10.18653/v1/W15-2202)
|
| 1278 |
+
[ing active learning and partial annotation for domain](https://doi.org/10.18653/v1/W15-2202)
|
| 1279 |
+
[adaptation of a Japanese dependency parser.](https://doi.org/10.18653/v1/W15-2202) In _Pro-_
|
| 1280 |
+
_ceedings_ _of_ _the_ _14th_ _International_ _Conference_ _on_
|
| 1281 |
+
_Parsing_ _Technologies_, pages 11–19, Bilbao, Spain.
|
| 1282 |
+
Association for Computational Linguistics.
|
| 1283 |
+
|
| 1284 |
+
|
| 1285 |
+
Nathan Greenberg, Trapit Bansal, Patrick Verga, and Andrew McCallum. 2018. [Marginal likelihood training](https://doi.org/10.18653/v1/D18-1306)
|
| 1286 |
+
[of BiLSTM-CRF for biomedical named entity recog-](https://doi.org/10.18653/v1/D18-1306)
|
| 1287 |
+
[nition from disjoint label sets.](https://doi.org/10.18653/v1/D18-1306) In _Proceedings of the_
|
| 1288 |
+
_2018 Conference on Empirical Methods in Natural_
|
| 1289 |
+
_Language_ _Processing_, pages 2824–2829, Brussels,
|
| 1290 |
+
Belgium. Association for Computational Linguistics.
|
| 1291 |
+
|
| 1292 |
+
|
| 1293 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In _International conference on machine learn-_
|
| 1294 |
+
_ing_, pages 1321–1330. PMLR.
|
| 1295 |
+
|
| 1296 |
+
|
| 1297 |
+
Gholamreza Haffari, Maxim Roy, and Anoop Sarkar.
|
| 1298 |
+
2009. Active learning for [statistical](https://aclanthology.org/N09-1047) phrase-based
|
| 1299 |
+
[machine translation.](https://aclanthology.org/N09-1047) In _Proceedings of Human Lan-_
|
| 1300 |
+
_guage Technologies:_ _The 2009 Annual Conference of_
|
| 1301 |
+
_the North American Chapter of the Association for_
|
| 1302 |
+
_Computational Linguistics_, pages 415–423, Boulder,
|
| 1303 |
+
Colorado. Association for Computational Linguistics.
|
| 1304 |
+
|
| 1305 |
+
|
| 1306 |
+
Junxian He, Jiatao Gu, Jiajun Shen, and Marc’Aurelio
|
| 1307 |
+
Ranzato. 2020. Revisiting [self-training](https://openreview.net/forum?id=SJgdnAVKDH) for neural
|
| 1308 |
+
[sequence generation.](https://openreview.net/forum?id=SJgdnAVKDH) In _International Conference on_
|
| 1309 |
+
_Learning Representations_ .
|
| 1310 |
+
|
| 1311 |
+
|
| 1312 |
+
Geoffrey Hinton, Oriol Vinyals, Jeff Dean, et al. 2015.
|
| 1313 |
+
Distilling the knowledge in a neural network. _arXiv_
|
| 1314 |
+
_preprint arXiv:1503.02531_, 2(7).
|
| 1315 |
+
|
| 1316 |
+
|
| 1317 |
+
Neil Houlsby, Ferenc Huszár, Zoubin Ghahramani, and
|
| 1318 |
+
Máté Lengyel. 2011. Bayesian active learning for
|
| 1319 |
+
classification and preference learning. _arXiv preprint_
|
| 1320 |
+
_arXiv:1112.5745_ .
|
| 1321 |
+
|
| 1322 |
+
|
| 1323 |
+
Jiaxin Huang, Chunyuan Li, Krishan Subudhi, Damien
|
| 1324 |
+
Jose, Shobana Balakrishnan, Weizhu Chen, Baolin
|
| 1325 |
+
Peng, Jianfeng Gao, and Jiawei Han. 2021. [Few-](https://doi.org/10.18653/v1/2021.emnlp-main.813)
|
| 1326 |
+
[shot named entity recognition:](https://doi.org/10.18653/v1/2021.emnlp-main.813) An empirical baseline
|
| 1327 |
+
[study.](https://doi.org/10.18653/v1/2021.emnlp-main.813) In _Proceedings_ _of_ _the_ _2021_ _Conference_ _on_
|
| 1328 |
+
_Empirical_ _Methods_ _in_ _Natural_ _Language_ _Process-_
|
| 1329 |
+
_ing_, pages 10408–10423, Online and Punta Cana,
|
| 1330 |
+
Dominican Republic. Association for Computational
|
| 1331 |
+
Linguistics.
|
| 1332 |
+
|
| 1333 |
+
|
| 1334 |
+
|
| 1335 |
+
13000
|
| 1336 |
+
|
| 1337 |
+
|
| 1338 |
+
Rebecca Hwa. 2004. Sample [selection](https://doi.org/10.1162/0891201041850894) for statistical
|
| 1339 |
+
[parsing.](https://doi.org/10.1162/0891201041850894) _Computational Linguistics_, 30(3):253–276.
|
| 1340 |
+
|
| 1341 |
+
|
| 1342 |
+
Terry Koo, Amir Globerson, Xavier Carreras, and
|
| 1343 |
+
Michael Collins. 2007. [Structured prediction models](https://aclanthology.org/D07-1015)
|
| 1344 |
+
[via the matrix-tree theorem.](https://aclanthology.org/D07-1015) In _Proceedings of the_
|
| 1345 |
+
_2007 Joint Conference on Empirical Methods in Nat-_
|
| 1346 |
+
_ural Language Processing and Computational Nat-_
|
| 1347 |
+
_ural_ _Language_ _Learning_ _(EMNLP-CoNLL)_, pages
|
| 1348 |
+
141–150, Prague, Czech Republic. Association for
|
| 1349 |
+
Computational Linguistics.
|
| 1350 |
+
|
| 1351 |
+
|
| 1352 |
+
John D Lafferty, Andrew McCallum, and Fernando CN
|
| 1353 |
+
Pereira. 2001. Conditional random fields: Probabilistic models for segmenting and labeling sequence
|
| 1354 |
+
data. In _Proceedings of the Eighteenth International_
|
| 1355 |
+
_Conference on Machine Learning_, pages 282–289.
|
| 1356 |
+
|
| 1357 |
+
|
| 1358 |
+
Belinda Z. Li, Gabriel Stanovsky, and Luke Zettlemoyer.
|
| 1359 |
+
2020. [Active learning for coreference resolution us-](https://doi.org/10.18653/v1/2020.acl-main.738)
|
| 1360 |
+
[ing discrete annotation.](https://doi.org/10.18653/v1/2020.acl-main.738) In _Proceedings of the 58th_
|
| 1361 |
+
_Annual Meeting of the Association for Computational_
|
| 1362 |
+
_Linguistics_, pages 8320–8331, Online. Association
|
| 1363 |
+
for Computational Linguistics.
|
| 1364 |
+
|
| 1365 |
+
|
| 1366 |
+
Yangming Li, Lemao Liu, and Shuming Shi. 2022. [Re-](https://doi.org/10.18653/v1/2022.acl-long.497)
|
| 1367 |
+
[thinking negative sampling for handling missing en-](https://doi.org/10.18653/v1/2022.acl-long.497)
|
| 1368 |
+
[tity annotations.](https://doi.org/10.18653/v1/2022.acl-long.497) In _Proceedings of the 60th Annual_
|
| 1369 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 1370 |
+
_guistics (Volume 1:_ _Long Papers)_, pages 7188–7197,
|
| 1371 |
+
Dublin, Ireland. Association for Computational Linguistics.
|
| 1372 |
+
|
| 1373 |
+
|
| 1374 |
+
Zhenghua Li, Min Zhang, Yue Zhang, Zhanyi Liu, Wenliang Chen, Hua Wu, and Haifeng Wang. 2016. [Ac-](https://doi.org/10.18653/v1/P16-1033)
|
| 1375 |
+
[tive learning for dependency parsing with partial an-](https://doi.org/10.18653/v1/P16-1033)
|
| 1376 |
+
[notation.](https://doi.org/10.18653/v1/P16-1033) In _Proceedings of the 54th Annual Meeting_
|
| 1377 |
+
_of the Association for Computational Linguistics (Vol-_
|
| 1378 |
+
_ume 1:_ _Long Papers)_, pages 344–354, Berlin, Germany. Association for Computational Linguistics.
|
| 1379 |
+
|
| 1380 |
+
|
| 1381 |
+
Ying Lin, Heng Ji, Fei Huang, and Lingfei Wu. 2020.
|
| 1382 |
+
|
| 1383 |
+
[A joint neural model for information extraction with](https://doi.org/10.18653/v1/2020.acl-main.713)
|
| 1384 |
+
[global features.](https://doi.org/10.18653/v1/2020.acl-main.713) In _Proceedings of the 58th Annual_
|
| 1385 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 1386 |
+
_guistics_, pages 7999–8009, Online. Association for
|
| 1387 |
+
Computational Linguistics.
|
| 1388 |
+
|
| 1389 |
+
|
| 1390 |
+
Yijia Liu, Yi Zhu, Wanxiang Che, Bing Qin, Nathan
|
| 1391 |
+
Schneider, and Noah A. Smith. 2018. [Parsing tweets](https://doi.org/10.18653/v1/N18-1088)
|
| 1392 |
+
[into Universal Dependencies.](https://doi.org/10.18653/v1/N18-1088) In _Proceedings of the_
|
| 1393 |
+
_2018 Conference of the North American Chapter of_
|
| 1394 |
+
_the Association for Computational Linguistics:_ _Hu-_
|
| 1395 |
+
_man_ _Language_ _Technologies,_ _Volume_ _1_ _(Long_ _Pa-_
|
| 1396 |
+
_pers)_, pages 965–975, New Orleans, Louisiana. Association for Computational Linguistics.
|
| 1397 |
+
|
| 1398 |
+
|
| 1399 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis,
|
| 1400 |
+
Luke Zettlemoyer, and Veselin Stoyanov. 2019.
|
| 1401 |
+
Roberta: A robustly optimized bert pretraining approach. _arXiv preprint arXiv:1907.11692_ .
|
| 1402 |
+
|
| 1403 |
+
|
| 1404 |
+
Saeed Majidi and Gregory Crane. 2013. [Active learning](https://aclanthology.org/W13-5711)
|
| 1405 |
+
[for dependency parsing by a committee of parsers.](https://aclanthology.org/W13-5711) In
|
| 1406 |
+
|
| 1407 |
+
|
| 1408 |
+
|
| 1409 |
+
_Proceedings of the 13th International Conference on_
|
| 1410 |
+
_Parsing Technologies (IWPT 2013)_, pages 98–105,
|
| 1411 |
+
Nara, Japan. Assocation for Computational Linguistics.
|
| 1412 |
+
|
| 1413 |
+
|
| 1414 |
+
Diego Marcheggiani and Thierry Artières. 2014. [An](https://doi.org/10.3115/v1/D14-1097)
|
| 1415 |
+
[experimental comparison of active learning strategies](https://doi.org/10.3115/v1/D14-1097)
|
| 1416 |
+
for partially [labeled](https://doi.org/10.3115/v1/D14-1097) sequences. In _Proceedings_ _of_
|
| 1417 |
+
_the 2014 Conference on Empirical Methods in Natu-_
|
| 1418 |
+
_ral Language Processing (EMNLP)_, pages 898–906,
|
| 1419 |
+
Doha, Qatar. Association for Computational Linguistics.
|
| 1420 |
+
|
| 1421 |
+
|
| 1422 |
+
Stephen Mayhew, Snigdha Chaturvedi, Chen-Tse Tsai,
|
| 1423 |
+
and Dan Roth. 2019. [Named entity recognition with](https://doi.org/10.18653/v1/K19-1060)
|
| 1424 |
+
partially [annotated](https://doi.org/10.18653/v1/K19-1060) training data. In _Proceedings_
|
| 1425 |
+
_of_ _the_ _23rd_ _Conference_ _on_ _Computational_ _Natural_
|
| 1426 |
+
_Language Learning (CoNLL)_, pages 645–655, Hong
|
| 1427 |
+
Kong, China. Association for Computational Linguistics.
|
| 1428 |
+
|
| 1429 |
+
|
| 1430 |
+
David McClosky, Eugene Charniak, and Mark Johnson.
|
| 1431 |
+
2006. [Effective self-training for parsing.](https://aclanthology.org/N06-1020) In _Proceed-_
|
| 1432 |
+
_ings of the Human Language Technology Conference_
|
| 1433 |
+
_of_ _the_ _NAACL,_ _Main_ _Conference_, pages 152–159,
|
| 1434 |
+
New York City, USA. Association for Computational
|
| 1435 |
+
Linguistics.
|
| 1436 |
+
|
| 1437 |
+
|
| 1438 |
+
Ryan McDonald and Giorgio Satta. 2007. On the
|
| 1439 |
+
[complexity of non-projective data-driven dependency](https://aclanthology.org/W07-2216)
|
| 1440 |
+
[parsing.](https://aclanthology.org/W07-2216) In _Proceedings of the Tenth International_
|
| 1441 |
+
_Conference on Parsing Technologies_, pages 121–132,
|
| 1442 |
+
Prague, Czech Republic. Association for Computational Linguistics.
|
| 1443 |
+
|
| 1444 |
+
|
| 1445 |
+
Sanket Vaibhav Mehta, Jinfeng Rao, Yi Tay, Mihir Kale,
|
| 1446 |
+
Ankur Parikh, and Emma Strubell. 2022. [Improving](https://doi.org/10.18653/v1/2022.acl-long.289)
|
| 1447 |
+
compositional [generalization](https://doi.org/10.18653/v1/2022.acl-long.289) with self-training for
|
| 1448 |
+
[data-to-text generation.](https://doi.org/10.18653/v1/2022.acl-long.289) In _Proceedings of the 60th_
|
| 1449 |
+
_Annual Meeting of the Association for Computational_
|
| 1450 |
+
_Linguistics_ _(Volume_ _1:_ _Long_ _Papers)_, pages 4205–
|
| 1451 |
+
4219, Dublin, Ireland. Association for Computational
|
| 1452 |
+
Linguistics.
|
| 1453 |
+
|
| 1454 |
+
|
| 1455 |
+
Yu Meng, Yunyi Zhang, Jiaxin Huang, Xuan Wang,
|
| 1456 |
+
Yu Zhang, Heng Ji, and Jiawei Han. 2021. [Distantly-](https://doi.org/10.18653/v1/2021.emnlp-main.810)
|
| 1457 |
+
supervised named [entity](https://doi.org/10.18653/v1/2021.emnlp-main.810) recognition with noise[robust learning and language model augmented self-](https://doi.org/10.18653/v1/2021.emnlp-main.810)
|
| 1458 |
+
[training.](https://doi.org/10.18653/v1/2021.emnlp-main.810) In _Proceedings of the 2021 Conference on_
|
| 1459 |
+
_Empirical_ _Methods_ _in_ _Natural_ _Language_ _Process-_
|
| 1460 |
+
_ing_, pages 10367–10378, Online and Punta Cana,
|
| 1461 |
+
Dominican Republic. Association for Computational
|
| 1462 |
+
Linguistics.
|
| 1463 |
+
|
| 1464 |
+
|
| 1465 |
+
Seyed Abolghasem Mirroshandel and Alexis Nasr. 2011.
|
| 1466 |
+
|
| 1467 |
+
Active learning for [dependency](https://aclanthology.org/W11-2917) parsing using partially [annotated](https://aclanthology.org/W11-2917) sentences. In _Proceedings_ _of_ _the_
|
| 1468 |
+
_12th International Conference on Parsing Technolo-_
|
| 1469 |
+
_gies_, pages 140–149, Dublin, Ireland. Association for
|
| 1470 |
+
Computational Linguistics.
|
| 1471 |
+
|
| 1472 |
+
|
| 1473 |
+
Skatje Myers and Martha Palmer. 2021. [Tuning deep](https://aclanthology.org/2021.iwcs-1.20)
|
| 1474 |
+
active learning for [semantic](https://aclanthology.org/2021.iwcs-1.20) role labeling. In _Pro-_
|
| 1475 |
+
_ceedings_ _of_ _the_ _14th_ _International_ _Conference_ _on_
|
| 1476 |
+
_Computational_ _Semantics_ _(IWCS)_, pages 212–221,
|
| 1477 |
+
|
| 1478 |
+
|
| 1479 |
+
|
| 1480 |
+
13001
|
| 1481 |
+
|
| 1482 |
+
|
| 1483 |
+
Groningen, The Netherlands (online). Association
|
| 1484 |
+
for Computational Linguistics.
|
| 1485 |
+
|
| 1486 |
+
|
| 1487 |
+
Graham Neubig and Shinsuke Mori. 2010. [Word-based](http://www.lrec-conf.org/proceedings/lrec2010/pdf/408_Paper.pdf)
|
| 1488 |
+
[partial annotation for efficient corpus construction.](http://www.lrec-conf.org/proceedings/lrec2010/pdf/408_Paper.pdf) In
|
| 1489 |
+
_Proceedings of the Seventh International Conference_
|
| 1490 |
+
_on Language Resources and Evaluation (LREC’10)_,
|
| 1491 |
+
Valletta, Malta. European Language Resources Association (ELRA).
|
| 1492 |
+
|
| 1493 |
+
|
| 1494 |
+
Qiang Ning, Hangfeng He, Chuchu Fan, and Dan Roth.
|
| 1495 |
+
2019. Partial or [complete,](https://doi.org/10.18653/v1/N19-1227) that’s the question. In
|
| 1496 |
+
_Proceedings_ _of_ _the_ _2019_ _Conference_ _of_ _the_ _North_
|
| 1497 |
+
_American Chapter of the Association for Computa-_
|
| 1498 |
+
_tional Linguistics:_ _Human Language Technologies,_
|
| 1499 |
+
_Volume 1 (Long and Short Papers)_, pages 2190–2200,
|
| 1500 |
+
Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 1501 |
+
|
| 1502 |
+
|
| 1503 |
+
Qiang Ning, Zhongzhi Yu, Chuchu Fan, and Dan Roth.
|
| 1504 |
+
2018. [Exploiting partially annotated data in temporal](https://doi.org/10.18653/v1/S18-2018)
|
| 1505 |
+
relation [extraction.](https://doi.org/10.18653/v1/S18-2018) In _Proceedings_ _of_ _the_ _Seventh_
|
| 1506 |
+
_Joint Conference on Lexical and Computational Se-_
|
| 1507 |
+
_mantics_, pages 148–153, New Orleans, Louisiana.
|
| 1508 |
+
Association for Computational Linguistics.
|
| 1509 |
+
|
| 1510 |
+
|
| 1511 |
+
Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Jan Hajiˇc, Christopher D. Manning, Sampo
|
| 1512 |
+
Pyysalo, Sebastian Schuster, Francis Tyers, and
|
| 1513 |
+
Daniel Zeman. 2020. Universal [Dependencies](https://aclanthology.org/2020.lrec-1.497) v2:
|
| 1514 |
+
[An evergrowing multilingual treebank collection.](https://aclanthology.org/2020.lrec-1.497) In
|
| 1515 |
+
_Proceedings of the Twelfth Language Resources and_
|
| 1516 |
+
_Evaluation Conference_, pages 4034–4043, Marseille,
|
| 1517 |
+
France. European Language Resources Association.
|
| 1518 |
+
|
| 1519 |
+
|
| 1520 |
+
Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt
|
| 1521 |
+
Gardner, Christopher Clark, Kenton Lee, and Luke
|
| 1522 |
+
Zettlemoyer. 2018. [Deep contextualized word repre-](https://doi.org/10.18653/v1/N18-1202)
|
| 1523 |
+
[sentations.](https://doi.org/10.18653/v1/N18-1202) In _Proceedings of the 2018 Conference of_
|
| 1524 |
+
_the North American Chapter of the Association for_
|
| 1525 |
+
_Computational Linguistics:_ _Human Language Tech-_
|
| 1526 |
+
_nologies, Volume 1 (Long Papers)_, pages 2227–2237,
|
| 1527 |
+
New Orleans, Louisiana. Association for Computational Linguistics.
|
| 1528 |
+
|
| 1529 |
+
|
| 1530 |
+
Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and
|
| 1531 |
+
Christopher D. Manning. 2020. Stanza: [A](https://doi.org/10.18653/v1/2020.acl-demos.14) python
|
| 1532 |
+
[natural language processing toolkit for many human](https://doi.org/10.18653/v1/2020.acl-demos.14)
|
| 1533 |
+
[languages.](https://doi.org/10.18653/v1/2020.acl-demos.14) In _Proceedings of the 58th Annual Meet-_
|
| 1534 |
+
_ing of the Association for Computational Linguistics:_
|
| 1535 |
+
_System Demonstrations_, pages 101–108, Online. Association for Computational Linguistics.
|
| 1536 |
+
|
| 1537 |
+
|
| 1538 |
+
Puria Radmard, Yassir Fathullah, and Aldo Lipani. 2021.
|
| 1539 |
+
|
| 1540 |
+
[Subsequence based deep active learning for named](https://doi.org/10.18653/v1/2021.acl-long.332)
|
| 1541 |
+
[entity recognition.](https://doi.org/10.18653/v1/2021.acl-long.332) In _Proceedings of the 59th Annual_
|
| 1542 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 1543 |
+
_guistics and the 11th International Joint Conference_
|
| 1544 |
+
_on Natural Language Processing (Volume 1:_ _Long_
|
| 1545 |
+
_Papers)_, pages 4310–4321, Online. Association for
|
| 1546 |
+
Computational Linguistics.
|
| 1547 |
+
|
| 1548 |
+
|
| 1549 |
+
Roi Reichart, Katrin Tomanek, Udo Hahn, and Ari Rappoport. 2008. [Multi-task active learning for linguistic](https://aclanthology.org/P08-1098)
|
| 1550 |
+
[annotations.](https://aclanthology.org/P08-1098) In _Proceedings of ACL-08:_ _HLT_, pages
|
| 1551 |
+
|
| 1552 |
+
|
| 1553 |
+
|
| 1554 |
+
861–869, Columbus, Ohio. Association for Computational Linguistics.
|
| 1555 |
+
|
| 1556 |
+
|
| 1557 |
+
Dan Roth and Kevin Small. 2008. Active learning for
|
| 1558 |
+
pipeline models. In _AAAI_, pages 683–688.
|
| 1559 |
+
|
| 1560 |
+
|
| 1561 |
+
Guy Rotman and Roi Reichart. 2022. [Multi-task active](https://doi.org/10.1162/tacl_a_00515)
|
| 1562 |
+
learning for pre-trained [transformer-based](https://doi.org/10.1162/tacl_a_00515) models.
|
| 1563 |
+
_Transactions of the Association for Computational_
|
| 1564 |
+
_Linguistics_, 10:1209–1228.
|
| 1565 |
+
|
| 1566 |
+
|
| 1567 |
+
Manabu Sassano and Sadao Kurohashi. 2010. [Using](https://aclanthology.org/P10-1037)
|
| 1568 |
+
[smaller constituents rather than sentences in active](https://aclanthology.org/P10-1037)
|
| 1569 |
+
[learning for Japanese dependency parsing.](https://aclanthology.org/P10-1037) In _Pro-_
|
| 1570 |
+
_ceedings of the 48th Annual Meeting of the Associa-_
|
| 1571 |
+
_tion for Computational Linguistics_, pages 356–365,
|
| 1572 |
+
Uppsala, Sweden. Association for Computational
|
| 1573 |
+
Linguistics.
|
| 1574 |
+
|
| 1575 |
+
|
| 1576 |
+
Tobias Scheffer, Christian Decomain, and Stefan Wrobel. 2001. Active hidden markov models for information extraction. In _International_ _Symposium_ _on_
|
| 1577 |
+
_Intelligent Data Analysis_, pages 309–318. Springer.
|
| 1578 |
+
|
| 1579 |
+
|
| 1580 |
+
Burr Settles. 2009. Active learning literature survey.
|
| 1581 |
+
|
| 1582 |
+
|
| 1583 |
+
Burr Settles and Mark Craven. 2008. An [analysis](https://aclanthology.org/D08-1112) of
|
| 1584 |
+
[active learning strategies for sequence labeling tasks.](https://aclanthology.org/D08-1112)
|
| 1585 |
+
In _Proceedings_ _of_ _the_ _2008_ _Conference_ _on_ _Empiri-_
|
| 1586 |
+
_cal Methods in Natural Language Processing_, pages
|
| 1587 |
+
1070–1079, Honolulu, Hawaii. Association for Computational Linguistics.
|
| 1588 |
+
|
| 1589 |
+
|
| 1590 |
+
Burr Settles, Mark Craven, and Lewis Friedland. 2008.
|
| 1591 |
+
Active learning with real annotation costs. In _Pro-_
|
| 1592 |
+
_ceedings_ _of_ _the_ _NIPS_ _workshop_ _on_ _cost-sensitive_
|
| 1593 |
+
_learning_, volume 1.
|
| 1594 |
+
|
| 1595 |
+
|
| 1596 |
+
Dan Shen, Jie Zhang, Jian Su, Guodong Zhou, and
|
| 1597 |
+
Chew-Lim Tan. 2004. [Multi-criteria-based](https://doi.org/10.3115/1218955.1219030) active
|
| 1598 |
+
[learning for named entity recognition.](https://doi.org/10.3115/1218955.1219030) In _Proceed-_
|
| 1599 |
+
_ings of the 42nd Annual Meeting of the Association_
|
| 1600 |
+
_for Computational Linguistics (ACL-04)_, pages 589–
|
| 1601 |
+
596, Barcelona, Spain.
|
| 1602 |
+
|
| 1603 |
+
|
| 1604 |
+
Yanyao Shen, Hyokun Yun, Zachary C. Lipton, Yakov
|
| 1605 |
+
Kronrod, and Animashree Anandkumar. 2018. [Deep](https://openreview.net/forum?id=ry018WZAZ)
|
| 1606 |
+
[active learning for named entity recognition.](https://openreview.net/forum?id=ry018WZAZ) In _Inter-_
|
| 1607 |
+
_national Conference on Learning Representations_ .
|
| 1608 |
+
|
| 1609 |
+
|
| 1610 |
+
David A. Smith and Noah A. Smith. 2007. [Probabilistic](https://aclanthology.org/D07-1014)
|
| 1611 |
+
[models of nonprojective dependency trees.](https://aclanthology.org/D07-1014) In _Pro-_
|
| 1612 |
+
_ceedings of the 2007 Joint Conference on Empirical_
|
| 1613 |
+
_Methods in Natural Language Processing and Com-_
|
| 1614 |
+
_putational_ _Natural_ _Language_ _Learning_ _(EMNLP-_
|
| 1615 |
+
_CoNLL)_, pages 132–140, Prague, Czech Republic.
|
| 1616 |
+
Association for Computational Linguistics.
|
| 1617 |
+
|
| 1618 |
+
|
| 1619 |
+
Noah A Smith. 2011. Linguistic structure prediction.
|
| 1620 |
+
_Synthesis lectures on human language technologies_,
|
| 1621 |
+
4(2):1–274.
|
| 1622 |
+
|
| 1623 |
+
|
| 1624 |
+
Oscar Täckström, Dipanjan Das, Slav Petrov, Ryan McDonald, and Joakim Nivre. 2013. Token [and](https://doi.org/10.1162/tacl_a_00205) type
|
| 1625 |
+
[constraints for cross-lingual part-of-speech tagging.](https://doi.org/10.1162/tacl_a_00205)
|
| 1626 |
+
_Transactions of the Association for Computational_
|
| 1627 |
+
_Linguistics_, 1:1–12.
|
| 1628 |
+
|
| 1629 |
+
|
| 1630 |
+
|
| 1631 |
+
13002
|
| 1632 |
+
|
| 1633 |
+
|
| 1634 |
+
Erik F. Tjong Kim Sang and Fien De Meulder.
|
| 1635 |
+
2003. [Introduction to the CoNLL-2003 shared task:](https://aclanthology.org/W03-0419)
|
| 1636 |
+
[Language-independent named entity recognition.](https://aclanthology.org/W03-0419) In
|
| 1637 |
+
_Proceedings of the Seventh Conference on Natural_
|
| 1638 |
+
_Language Learning at HLT-NAACL 2003_, pages 142–
|
| 1639 |
+
147.
|
| 1640 |
+
|
| 1641 |
+
|
| 1642 |
+
Katrin Tomanek and Udo Hahn. 2009. [Semi-supervised](https://aclanthology.org/P09-1117)
|
| 1643 |
+
[active learning for sequence labeling.](https://aclanthology.org/P09-1117) In _Proceedings_
|
| 1644 |
+
_of the Joint Conference of the 47th Annual Meeting_
|
| 1645 |
+
_of_ _the_ _ACL_ _and_ _the_ _4th_ _International_ _Joint_ _Confer-_
|
| 1646 |
+
_ence on Natural Language Processing of the AFNLP_,
|
| 1647 |
+
pages 1039–1047, Suntec, Singapore. Association
|
| 1648 |
+
for Computational Linguistics.
|
| 1649 |
+
|
| 1650 |
+
|
| 1651 |
+
Yuta Tsuboi, Hisashi Kashima, Shinsuke Mori, Hiroki
|
| 1652 |
+
Oda, and Yuji Matsumoto. 2008. [Training](https://aclanthology.org/C08-1113) conditional random fields [using](https://aclanthology.org/C08-1113) incomplete annotations.
|
| 1653 |
+
In _Proceedings of the 22nd International Conference_
|
| 1654 |
+
_on Computational Linguistics (Coling 2008)_, pages
|
| 1655 |
+
897–904, Manchester, UK. Coling 2008 Organizing
|
| 1656 |
+
Committee.
|
| 1657 |
+
|
| 1658 |
+
|
| 1659 |
+
Tu Vu, Minh-Thang Luong, Quoc Le, Grady Simon, and
|
| 1660 |
+
Mohit Iyyer. 2021. [STraTA: Self-training with task](https://doi.org/10.18653/v1/2021.emnlp-main.462)
|
| 1661 |
+
augmentation for [better](https://doi.org/10.18653/v1/2021.emnlp-main.462) few-shot learning. In _Pro-_
|
| 1662 |
+
_ceedings of the 2021 Conference on Empirical Meth-_
|
| 1663 |
+
_ods_ _in_ _Natural_ _Language_ _Processing_, pages 5715–
|
| 1664 |
+
5731, Online and Punta Cana, Dominican Republic.
|
| 1665 |
+
Association for Computational Linguistics.
|
| 1666 |
+
|
| 1667 |
+
|
| 1668 |
+
Christopher Walker, Stephanie Strassel, Julie Medero,
|
| 1669 |
+
and Kazuaki Maeda. 2006. ACE 2005 multilingual
|
| 1670 |
+
training corpus. _Linguistic Data Consortium_, 57.
|
| 1671 |
+
|
| 1672 |
+
|
| 1673 |
+
Chenguang Wang, Laura Chiticariu, and Yunyao Li.
|
| 1674 |
+
2017. Active learning for black-box semantic role
|
| 1675 |
+
labeling with neural factors. In _IJCAI_ .
|
| 1676 |
+
|
| 1677 |
+
|
| 1678 |
+
Xinyu Wang, Yong Jiang, Zhaohui Yan, Zixia Jia,
|
| 1679 |
+
Nguyen Bach, Tao Wang, Zhongqiang Huang, Fei
|
| 1680 |
+
Huang, and Kewei Tu. 2021. [Structural knowledge](https://doi.org/10.18653/v1/2021.acl-long.46)
|
| 1681 |
+
distillation: [Tractably distilling information for struc-](https://doi.org/10.18653/v1/2021.acl-long.46)
|
| 1682 |
+
[tured predictor.](https://doi.org/10.18653/v1/2021.acl-long.46) In _Proceedings of the 59th Annual_
|
| 1683 |
+
_Meeting_ _of_ _the_ _Association_ _for_ _Computational_ _Lin-_
|
| 1684 |
+
_guistics and the 11th International Joint Conference_
|
| 1685 |
+
_on Natural Language Processing (Volume 1:_ _Long_
|
| 1686 |
+
_Papers)_, pages 550–564, Online. Association for
|
| 1687 |
+
Computational Linguistics.
|
| 1688 |
+
|
| 1689 |
+
|
| 1690 |
+
Dittaya Wanvarie, Hiroya Takamura, and Manabu Okumura. 2011. Active learning with subsequence sampling strategy for sequence labeling tasks. _Informa-_
|
| 1691 |
+
_tion and Media Technologies_, 6(3):680–700.
|
| 1692 |
+
|
| 1693 |
+
|
| 1694 |
+
Fan Yang and Paul Vozila. 2014. [Semi-supervised Chi-](https://doi.org/10.3115/v1/D14-1010)
|
| 1695 |
+
[nese word segmentation using partial-label learning](https://doi.org/10.3115/v1/D14-1010)
|
| 1696 |
+
[with conditional random fields.](https://doi.org/10.3115/v1/D14-1010) In _Proceedings of the_
|
| 1697 |
+
_2014 Conference on Empirical Methods in Natural_
|
| 1698 |
+
_Language Processing (EMNLP)_, pages 90–98, Doha,
|
| 1699 |
+
Qatar. Association for Computational Linguistics.
|
| 1700 |
+
|
| 1701 |
+
|
| 1702 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. 2019.
|
| 1703 |
+
|
| 1704 |
+
|
| 1705 |
+
|
| 1706 |
+
Xlnet: Generalized autoregressive pretraining for language understanding. _Advances in neural informa-_
|
| 1707 |
+
_tion processing systems_, 32.
|
| 1708 |
+
|
| 1709 |
+
|
| 1710 |
+
David Yarowsky. 1995. [Unsupervised word sense dis-](https://doi.org/10.3115/981658.981684)
|
| 1711 |
+
ambiguation [rivaling](https://doi.org/10.3115/981658.981684) supervised methods. In _33rd_
|
| 1712 |
+
_Annual_ _Meeting_ _of_ _the_ _Association_ _for_ _Computa-_
|
| 1713 |
+
_tional Linguistics_, pages 189–196, Cambridge, Massachusetts, USA. Association for Computational Linguistics.
|
| 1714 |
+
|
| 1715 |
+
|
| 1716 |
+
Yue Yu, Lingkai Kong, Jieyu Zhang, Rongzhi Zhang,
|
| 1717 |
+
and Chao Zhang. 2022. AcTune: [Uncertainty-based](https://doi.org/10.18653/v1/2022.naacl-main.102)
|
| 1718 |
+
[active self-training for active fine-tuning of pretrained](https://doi.org/10.18653/v1/2022.naacl-main.102)
|
| 1719 |
+
[language models.](https://doi.org/10.18653/v1/2022.naacl-main.102) In _Proceedings of the 2022 Con-_
|
| 1720 |
+
_ference_ _of_ _the_ _North_ _American_ _Chapter_ _of_ _the_ _As-_
|
| 1721 |
+
_sociation_ _for_ _Computational_ _Linguistics:_ _Human_
|
| 1722 |
+
_Language Technologies_, pages 1422–1436, Seattle,
|
| 1723 |
+
United States. Association for Computational Linguistics.
|
| 1724 |
+
|
| 1725 |
+
|
| 1726 |
+
Xiangkai Zeng, Sarthak Garg, Rajen Chatterjee, Udhyakumar Nallasamy, and Matthias Paulik. 2019.
|
| 1727 |
+
[Empirical evaluation of active learning techniques for](https://doi.org/10.18653/v1/D19-6110)
|
| 1728 |
+
[neural MT.](https://doi.org/10.18653/v1/D19-6110) In _Proceedings of the 2nd Workshop on_
|
| 1729 |
+
_Deep Learning Approaches for Low-Resource NLP_
|
| 1730 |
+
_(DeepLo_ _2019)_, pages 84–93, Hong Kong, China.
|
| 1731 |
+
Association for Computational Linguistics.
|
| 1732 |
+
|
| 1733 |
+
|
| 1734 |
+
Hua Zhu, Wu Ye, Sihan Luo, and Xidong Zhang. 2020.
|
| 1735 |
+
|
| 1736 |
+
A multitask active [learning](https://doi.org/10.18653/v1/2020.coling-main.430) framework for natural
|
| 1737 |
+
[language understanding.](https://doi.org/10.18653/v1/2020.coling-main.430) In _Proceedings of the 28th_
|
| 1738 |
+
_International Conference on Computational Linguis-_
|
| 1739 |
+
_tics_, pages 4900–4914, Barcelona, Spain (Online).
|
| 1740 |
+
International Committee on Computational Linguistics.
|
| 1741 |
+
|
| 1742 |
+
|
| 1743 |
+
|
| 1744 |
+
13003
|
| 1745 |
+
|
| 1746 |
+
|
| 1747 |
+
**A** **More Details of Task Settings**
|
| 1748 |
+
|
| 1749 |
+
|
| 1750 |
+
**A.1** **DPAR**
|
| 1751 |
+
|
| 1752 |
+
- **Model** . Similar to NER, we utilize a BERTbased module to provide contextualized representations. We further stack a standard firstorder non-projective graph-based parsing module based on a biaffine scorer (Dozat and Manning, 2017). The marginals for each token’s
|
| 1753 |
+
head decision can be feasibly calculated by the
|
| 1754 |
+
Matrix-Tree algorithm (Koo et al., 2007; Smith
|
| 1755 |
+
and Smith, 2007; McDonald and Satta, 2007).
|
| 1756 |
+
|
| 1757 |
+
|
| 1758 |
+
- **Query and Selection** . Following previous works
|
| 1759 |
+
(Flannery and Mori, 2015; Li et al., 2016), we
|
| 1760 |
+
view DPAR as a head-word finding problem and
|
| 1761 |
+
regard each token and its head decision as the
|
| 1762 |
+
sub-structure unit. In this case, the query and
|
| 1763 |
+
selection for DPAR are almost identical to the
|
| 1764 |
+
NER task because of this token-wise decision
|
| 1765 |
+
scheme. Therefore, the same AL strategies in
|
| 1766 |
+
NER can be adopted here.
|
| 1767 |
+
|
| 1768 |
+
|
| 1769 |
+
- **Annotation** . In DPAR, there are no special spanbased annotations as in NER; thus, we simply
|
| 1770 |
+
annotate in a word-based scheme.
|
| 1771 |
+
|
| 1772 |
+
|
| 1773 |
+
- **Model learning** . Similar to NER, we adopt the
|
| 1774 |
+
log-likelihood of the gold parse tree as the training loss in FA and marginalized likelihood in PA
|
| 1775 |
+
(Li et al., 2016).
|
| 1776 |
+
|
| 1777 |
+
|
| 1778 |
+
**A.2** **IE**
|
| 1779 |
+
|
| 1780 |
+
- **Tasks** . We tackle event extraction (EE) and relation extraction (RE) using a two-step pipelined
|
| 1781 |
+
approach. The first step aims to extract entity
|
| 1782 |
+
mentions for RE, and entity mentions and event
|
| 1783 |
+
triggers for EE. We adopt sequence labeling for
|
| 1784 |
+
mention extractions as in the NER task. Based on
|
| 1785 |
+
the mentions extracted in the first step, the second
|
| 1786 |
+
step examines each feasible candidate mention
|
| 1787 |
+
pair (entity pair for RE and event-entity pair for
|
| 1788 |
+
EE) and decides the relation (entity relation for
|
| 1789 |
+
RE and event argument relation for EE) for them.
|
| 1790 |
+
Since event argument links can be regarded as
|
| 1791 |
+
relations between event triggers and entities, for
|
| 1792 |
+
simplicity we will use the relational sub-task to
|
| 1793 |
+
refer to both relation and argument extraction.
|
| 1794 |
+
|
| 1795 |
+
|
| 1796 |
+
- **Model** . We adopt a multi-task model similar to
|
| 1797 |
+
the one utilized in (Rotman and Reichart, 2022).
|
| 1798 |
+
With a pre-trained encoder, we take the first _N_
|
| 1799 |
+
|
| 1800 |
+
|
| 1801 |
+
|
| 1802 |
+
layers as the shared encoding module whose output representations are used for both sub-tasks.
|
| 1803 |
+
Each sub-task further adopts a private encoder
|
| 1804 |
+
that is initialized with the remaining pre-trained
|
| 1805 |
+
layers and is trained with task-specific signals.
|
| 1806 |
+
We simply set _N_ to 6, while the results are generally not sensitive to this hyper-parameter. Final
|
| 1807 |
+
task-specific predictors are further stacked upon
|
| 1808 |
+
the corresponding private encoders. We adopt a
|
| 1809 |
+
CRF layer for mention extraction and a pairwise
|
| 1810 |
+
local predictor with a biaffine scorer for relation
|
| 1811 |
+
or argument extraction.
|
| 1812 |
+
|
| 1813 |
+
|
| 1814 |
+
- **Sentence selection.** For an unlabeled sentence,
|
| 1815 |
+
there is an uncertainty score for each sub-task.
|
| 1816 |
+
For mentions, the uncertainty is the average margin as in the NER task. For relations, we find that
|
| 1817 |
+
averaging uncertainties over all mention pairs has
|
| 1818 |
+
a bias towards sentences with fewer mentions.
|
| 1819 |
+
To mitigate such bias, we first aggregate an uncertainty score for each mention by taking the
|
| 1820 |
+
maximum score within all the relations that link
|
| 1821 |
+
to it and then averaging over all the mentions for
|
| 1822 |
+
sentence-level scores. Finally, the scores of the
|
| 1823 |
+
two sub-tasks are linearly combined to form the
|
| 1824 |
+
sentence-level uncertainty.
|
| 1825 |
+
|
| 1826 |
+
|
| 1827 |
+
- **Partial selection.** For PA selection, the two subtasks are handled separately according to the
|
| 1828 |
+
adaptive ratio scheme. We further adopt two
|
| 1829 |
+
heuristics for the relational task to compensate
|
| 1830 |
+
for errors in the mention extraction. First, since
|
| 1831 |
+
there can be over-predicted mentions that lead
|
| 1832 |
+
to discarded relation queries, we adjust the PA
|
| 1833 |
+
ratio by estimating how many candidate relations contain such errors in the mentions. We
|
| 1834 |
+
again train a logistic regression model to predict whether a token is NIL (or ‘O’ in the BIO
|
| 1835 |
+
scheme, meaning not contained inside any gold
|
| 1836 |
+
mentions) based on its NIL probability. Then for
|
| 1837 |
+
each candidate relation, we calculate the probability that any token within its mentions is NIL.
|
| 1838 |
+
By averaging this probability of all the candidates, we obtain a rough estimation of the percentage of problematic relations, which we call
|
| 1839 |
+
it _α_ . Finally the PA selection ratio is adjusted by:
|
| 1840 |
+
_r_ adjust = _α·r_ problem +(1 _−α_ ) _·r_ origin. Here, _r_ origin
|
| 1841 |
+
denotes the original selection ratio obtained from
|
| 1842 |
+
the adaptive scheme, and _r_ problem denotes the selection ratio of problematic relations, which we
|
| 1843 |
+
conservatively set to 1. Secondly, since there
|
| 1844 |
+
can also be under-predicted mentions, we add a
|
| 1845 |
+
|
| 1846 |
+
|
| 1847 |
+
|
| 1848 |
+
13004
|
| 1849 |
+
|
| 1850 |
+
|
| 1851 |
+
Data Split #Sent. #Token #Event #Entity #Argument #Relation
|
| 1852 |
+
|
| 1853 |
+
|
| 1854 |
+
|
| 1855 |
+
CoNLL03
|
| 1856 |
+
|
| 1857 |
+
|
| 1858 |
+
UD-EWT
|
| 1859 |
+
|
| 1860 |
+
|
| 1861 |
+
ACE05
|
| 1862 |
+
|
| 1863 |
+
|
| 1864 |
+
|
| 1865 |
+
train 14.0K 203.6K - 23.5K - dev 3.3K 51.4K - 5.9K - test 3.5K 46.4K - 5.6K -
|
| 1866 |
+
train 12.5K 204.6K - - - dev 2.0K 25.1K - - - test 2.1K 25.1K - - -
|
| 1867 |
+
train 14.4K 215.2K 3.7K 38.0K 5.7K 6.2K
|
| 1868 |
+
dev 2.5K 34.5K 0.5K 6.0K 0.7K 0.8K
|
| 1869 |
+
test 4.0K 61.5K 1.1K 10.8K 1.7K 1.7K
|
| 1870 |
+
|
| 1871 |
+
|
| 1872 |
+
Table 1: Data statistics.
|
| 1873 |
+
|
| 1874 |
+
|
| 1875 |
+
|
| 1876 |
+
second stage of querying and annotation in each
|
| 1877 |
+
AL cycle based on the annotated mentions in
|
| 1878 |
+
the first stage. This extra stage only selects relations that involve the newly added or corrected
|
| 1879 |
+
mentions. We simply reuse the selection ratio
|
| 1880 |
+
determined from the first stage and apply it to
|
| 1881 |
+
each sentence that contains such mentions. In
|
| 1882 |
+
this way, the second stage is lightweight and only
|
| 1883 |
+
requires relatively cheap re-inference for each
|
| 1884 |
+
queried sentence individually.
|
| 1885 |
+
|
| 1886 |
+
|
| 1887 |
+
- **Annotation.** The annotation of the mentions is
|
| 1888 |
+
the same as in the NER task, while for the annotation of relational queries, their mentions are first
|
| 1889 |
+
examined and corrected if needed, as explained
|
| 1890 |
+
in §3.4. We measure the labeling cost by the final annotated items; thus, these extra examined
|
| 1891 |
+
mentioned will also be properly counted.
|
| 1892 |
+
|
| 1893 |
+
|
| 1894 |
+
- **Model learning.** For the mention extraction subtask, the training objective is the same as in NER.
|
| 1895 |
+
For the relational sub-task, we simply adopt a
|
| 1896 |
+
local pairwise model with the standard crossentropy loss. Since the relation model is local,
|
| 1897 |
+
no special treatment is needed for PA.
|
| 1898 |
+
|
| 1899 |
+
|
| 1900 |
+
**B** **Data Statistics and More Settings**
|
| 1901 |
+
|
| 1902 |
+
|
| 1903 |
+
**Data.** Our main experiments are conducted using the CoNLL-2003 English dataset [11] (Tjong
|
| 1904 |
+
Kim Sang and De Meulder, 2003) for NER, the
|
| 1905 |
+
English Web Treebank (EWT) from Universal Dependencies [12] v2.10 (Nivre et al., 2020) for DPAR,
|
| 1906 |
+
and English portion of ACE2005 [13] (Walker et al.,
|
| 1907 |
+
2006) for IE. We utilize Stanza [14] (Qi et al., 2020)
|
| 1908 |
+
to assign POS tags for cost measurement in NER
|
| 1909 |
+
|
| 1910 |
+
|
| 1911 |
+
[11https://www.clips.uantwerpen.be/conll2003/](https://www.clips.uantwerpen.be/conll2003/ner/)
|
| 1912 |
+
[ner/](https://www.clips.uantwerpen.be/conll2003/ner/)
|
| 1913 |
+
|
| 1914 |
+
[12https://universaldependencies.org/](https://universaldependencies.org/)
|
| 1915 |
+
[13https://catalog.ldc.upenn.edu/LDC2006T06](https://catalog.ldc.upenn.edu/LDC2006T06)
|
| 1916 |
+
[14https://stanfordnlp.github.io/stanza/](https://stanfordnlp.github.io/stanza/)
|
| 1917 |
+
|
| 1918 |
+
|
| 1919 |
+
|
| 1920 |
+
and mention tasks. We follow Lin et al. (2020) for
|
| 1921 |
+
the pre-processing [15] of the ACE dataset. For the
|
| 1922 |
+
IE tasks on ACE, we find that the conventional test
|
| 1923 |
+
set contains only newswire documents while the
|
| 1924 |
+
training set consists of various genres (such as from
|
| 1925 |
+
conversation and web). Such mismatches between
|
| 1926 |
+
the AL pool and the final testing set are nontrivial to handle with the classical AL protocol, and
|
| 1927 |
+
we thus randomly re-split the ACE dataset (with a
|
| 1928 |
+
ratio of 7:1:2 for training, dev, and test sets, respectively). Table 1 shows data statistics. For each AL
|
| 1929 |
+
experiment, we take the original training set as the
|
| 1930 |
+
unlabeled pool, down-sample a dev set from the
|
| 1931 |
+
original dev set, and evaluate on the full test set.
|
| 1932 |
+
|
| 1933 |
+
|
| 1934 |
+
**More Settings.** All of our models are based on
|
| 1935 |
+
the pre-trained RoBERTabase as the contextualized encoder. We further fine-tune it with the
|
| 1936 |
+
task-specific decoder in all the experiments. The
|
| 1937 |
+
number of model parameters is roughly 124M for
|
| 1938 |
+
single-output tasks and around 186M for multi-task
|
| 1939 |
+
IE tasks. For other hyper-parameter settings, we
|
| 1940 |
+
mostly follow common practices. Adam is utilized
|
| 1941 |
+
for optimization, with an initial learning rate of 1e5 for NER and 2e-5 for DPAR and IE. The learning
|
| 1942 |
+
rate is linearly decayed to 10% of the initial value
|
| 1943 |
+
throughout the training process. The models are
|
| 1944 |
+
tuned for 10K steps with a batch size of roughly
|
| 1945 |
+
512 tokens. We evaluate the model on the dev set
|
| 1946 |
+
every 1K steps to choose the best checkpoint. The
|
| 1947 |
+
experiments are run with one 2080Ti GPU. The
|
| 1948 |
+
training of one AL cycle usually takes only one
|
| 1949 |
+
or two hours, and the full simulation of one AL
|
| 1950 |
+
run can be finished within one day. We adopt standard evaluation metrics for the tasks: labeled F1
|
| 1951 |
+
score for NER, labeled attachment score (LAS) for
|
| 1952 |
+
DPAR, labeled argument and relation F1 score for
|
| 1953 |
+
event arguments and relations (Lin et al., 2020).
|
| 1954 |
+
|
| 1955 |
+
|
| 1956 |
+
[15http://blender.cs.illinois.edu/software/](http://blender.cs.illinois.edu/software/oneie/)
|
| 1957 |
+
[oneie/](http://blender.cs.illinois.edu/software/oneie/)
|
| 1958 |
+
|
| 1959 |
+
|
| 1960 |
+
|
| 1961 |
+
13005
|
| 1962 |
+
|
| 1963 |
+
|
| 1964 |
+
**C** **Details of Algorithms**
|
| 1965 |
+
|
| 1966 |
+
In this section, we provide more details of the algorithms for CRF-styled models (Lafferty et al.,
|
| 1967 |
+
2001). For an input instance _x_ (for example, a sentence), the model assigns a globally normalized
|
| 1968 |
+
probability to each possible output structured object _y_ (for example, a tag sequence or a parse tree)
|
| 1969 |
+
in the target space _Y_ :
|
| 1970 |
+
|
| 1971 |
+
exp _s_ ( _y_ _x_ )
|
| 1972 |
+
_p_ ( _y_ _x_ ) = ~~�~~ _|_
|
| 1973 |
+
_|_ _y_ _[′]_ [exp] _[ s]_ [(] _[y][′][|][x]_ [)]
|
| 1974 |
+
_∈Y_
|
| 1975 |
+
|
| 1976 |
+
exp [�] _f_ _y_ _[s]_ [(] _[f]_ _[|][x]_ [)]
|
| 1977 |
+
= ~~�~~ ~~�~~ _∈_
|
| 1978 |
+
_y_ _[′]_ _f_ _[′]_ _y_ _[′][ s]_ [(] _[f]_ _[′][|][x]_ [)]
|
| 1979 |
+
_∈Y_ _∈_
|
| 1980 |
+
|
| 1981 |
+
Here, _s_ ( _y|x_ ) denotes the un-normalized raw scores
|
| 1982 |
+
assigned to _y_, which is further factorized into the
|
| 1983 |
+
sum of the sub-structure scores _s_ ( _f_ _|x_ ). [16] In plain
|
| 1984 |
+
likelihood training for CRF, we take the negative
|
| 1985 |
+
log-probability as the training objective:
|
| 1986 |
+
|
| 1987 |
+
|
| 1988 |
+
|
| 1989 |
+
labeling (Baum et al., 1970) or Matrix-tree for
|
| 1990 |
+
non-projective dependency parsing (Koo et al.,
|
| 1991 |
+
2007; Smith and Smith, 2007; McDonald and Satta,
|
| 1992 |
+
2007).
|
| 1993 |
+
|
| 1994 |
+
|
| 1995 |
+
**Learning with incomplete annotations.** Following previous works (Tsuboi et al., 2008; Li et al.,
|
| 1996 |
+
2016; Greenberg et al., 2018), for the instances
|
| 1997 |
+
with incomplete annotations, we utilize the logarithm of the marginal likelihood as the learning
|
| 1998 |
+
objective:
|
| 1999 |
+
|
| 2000 |
+
|
| 2001 |
+
|
| 2002 |
+
|
| 2003 |
+
_L_ = _−_ log
|
| 2004 |
+
|
| 2005 |
+
|
| 2006 |
+
|
| 2007 |
+
_p_ ( _y|x_ )
|
| 2008 |
+
_y_ _C_
|
| 2009 |
+
_∈Y_
|
| 2010 |
+
|
| 2011 |
+
|
| 2012 |
+
|
| 2013 |
+
|
| 2014 |
+
= _−_ log
|
| 2015 |
+
|
| 2016 |
+
_y_ _C_
|
| 2017 |
+
|
| 2018 |
+
- _∈Y_
|
| 2019 |
+
= _−_ log
|
| 2020 |
+
|
| 2021 |
+
|
| 2022 |
+
|
| 2023 |
+
_y_ _C_
|
| 2024 |
+
_∈Y_
|
| 2025 |
+
|
| 2026 |
+
|
| 2027 |
+
|
| 2028 |
+
exp _s_ ( _y_ _x_ )
|
| 2029 |
+
|
| 2030 |
+
~~�~~ _|_
|
| 2031 |
+
_y_ [exp] _[ s]_ [(] _[y][|][x]_ [)]
|
| 2032 |
+
_∈Y_
|
| 2033 |
+
|
| 2034 |
+
|
| 2035 |
+
|
| 2036 |
+
exp _s_ ( _y|x_ ) + log _Z_ ( _x_ )
|
| 2037 |
+
_y_ _C_
|
| 2038 |
+
_∈Y_
|
| 2039 |
+
|
| 2040 |
+
|
| 2041 |
+
|
| 2042 |
+
_L_ = _−_ log _p_ ( _y|x_ )
|
| 2043 |
+
|
| 2044 |
+
|
| 2045 |
+
|
| 2046 |
+
exp _s_ ( _y_ _[′]_ _|x_ )
|
| 2047 |
+
_y_ _[′]_ _∈Y_
|
| 2048 |
+
|
| 2049 |
+
|
| 2050 |
+
|
| 2051 |
+
|
| 2052 |
+
= _−s_ ( _y|x_ ) + log
|
| 2053 |
+
|
| 2054 |
+
|
| 2055 |
+
|
| 2056 |
+
For brevity, in the remaining, we use log _Z_ ( _x_ ) to
|
| 2057 |
+
denote the second term of the log partition function.
|
| 2058 |
+
For model training, we need to calculate the gradients of the model parameters _θ_ to the loss function.
|
| 2059 |
+
The first item is easy to deal with since it only involves one structured object, while log _Z_ ( _x_ ) needs
|
| 2060 |
+
some reorganization according to the factorization:
|
| 2061 |
+
|
| 2062 |
+
|
| 2063 |
+
|
| 2064 |
+
Here, _C_ denotes the constrained set of the output
|
| 2065 |
+
_Y_
|
| 2066 |
+
objects that agree with the existing partial annotations. In this objective function, the second item is
|
| 2067 |
+
exactly the same as in standard CRF, while the first
|
| 2068 |
+
one can be calculated [17] in a modified way (Tsuboi
|
| 2069 |
+
et al., 2008).
|
| 2070 |
+
|
| 2071 |
+
|
| 2072 |
+
**Knowledge** **distillation.** As described in the
|
| 2073 |
+
main context, we adopt the knowledge distillation
|
| 2074 |
+
objective for self-training with soft labels. For
|
| 2075 |
+
brevity, we denote the probabilities from the last
|
| 2076 |
+
model as _p_ _[′]_ ( _y|x_ ) and keep using _p_ ( _y|x_ ) to denote
|
| 2077 |
+
the ones from the current model. Following Wang
|
| 2078 |
+
et al. (2021), the loss can be calculated by:
|
| 2079 |
+
|
| 2080 |
+
|
| 2081 |
+
|
| 2082 |
+
|
| 2083 |
+
_L_ = _−_
|
| 2084 |
+
|
| 2085 |
+
|
| 2086 |
+
|
| 2087 |
+
_p_ _[′]_ ( _y|x_ ) log _p_ ( _y|x_ )
|
| 2088 |
+
_y∈Y_
|
| 2089 |
+
|
| 2090 |
+
|
| 2091 |
+
|
| 2092 |
+
_∇θ_ log _Z_ =
|
| 2093 |
+
|
| 2094 |
+
|
| 2095 |
+
|
| 2096 |
+
|
| 2097 |
+
_y_ _[′]_ [exp] _[ s]_ [(] _[y][′][|][x]_ [)] _[∇][θ][s]_ [(] _[y][′][|][x]_ [)]
|
| 2098 |
+
_∈Y_ ~~�~~
|
| 2099 |
+
_y_ _[′′]_ [exp] _[ s]_ [(] _[y][′′][|][x]_ [)]
|
| 2100 |
+
|
| 2101 |
+
- _∈Y_
|
| 2102 |
+
|
| 2103 |
+
|
| 2104 |
+
|
| 2105 |
+
|
| 2106 |
+
=
|
| 2107 |
+
|
| 2108 |
+
_y_ - _[′]_ _∈Y_
|
| 2109 |
+
|
| 2110 |
+
=
|
| 2111 |
+
|
| 2112 |
+
_y_ - _[′]_ _∈Y_
|
| 2113 |
+
|
| 2114 |
+
=
|
| 2115 |
+
|
| 2116 |
+
|
| 2117 |
+
|
| 2118 |
+
_p_ ( _y_ _[′]_ _|x_ )
|
| 2119 |
+
_y_ _[′]_ _∈Yf_ _′_
|
| 2120 |
+
|
| 2121 |
+
|
| 2122 |
+
|
| 2123 |
+
_p_ ( _y_ _[′]_ _x_ ) _θs_ ( _y_ _[′]_ _x_ )
|
| 2124 |
+
_|_ _∇_ _|_
|
| 2125 |
+
_y_ _[′]_ _∈Y_
|
| 2126 |
+
|
| 2127 |
+
|
| 2128 |
+
|
| 2129 |
+
_p_ _[′]_ ( _y_ _[′]_ _|x_ ) + log _Z_ ( _x_ )
|
| 2130 |
+
_y_ _[′]_ _∈Yf_ _′_
|
| 2131 |
+
|
| 2132 |
+
|
| 2133 |
+
|
| 2134 |
+
|
| 2135 |
+
-
|
| 2136 |
+
_p_ ( _y_ _[′]_ _|x_ )
|
| 2137 |
+
_y_ _[′]_ _∈Y_ _f_ _[′]_ _∈y_
|
| 2138 |
+
|
| 2139 |
+
|
| 2140 |
+
|
| 2141 |
+
_θs_ ( _f_ _[′]_ _x_ )
|
| 2142 |
+
_∇_ _|_
|
| 2143 |
+
_f_ _[′]_ _∈y_ _[′]_
|
| 2144 |
+
|
| 2145 |
+
|
| 2146 |
+
|
| 2147 |
+
_p_ _[′]_ ( _y|x_ ) _s_ ( _y|x_ ) + log _Z_ ( _x_ )
|
| 2148 |
+
_y∈Y_
|
| 2149 |
+
|
| 2150 |
+
|
| 2151 |
+
|
| 2152 |
+
|
| 2153 |
+
_θs_ ( _f_ _[′]_ _x_ )
|
| 2154 |
+
_∇_ _|_
|
| 2155 |
+
_f_ _[′]_ _y_ _[′]_
|
| 2156 |
+
|
| 2157 |
+
|
| 2158 |
+
|
| 2159 |
+
|
| 2160 |
+
-
|
| 2161 |
+
_p_ _[′]_ ( _y|x_ )
|
| 2162 |
+
_y∈Y_ _f_ _[′]_ _∈y_ _[′]_
|
| 2163 |
+
|
| 2164 |
+
|
| 2165 |
+
|
| 2166 |
+
_s_ ( _f_ _[′]_ _|x_ ) + log _Z_ ( _x_ )
|
| 2167 |
+
_f_ _[′]_ _∈y_ _[′]_
|
| 2168 |
+
|
| 2169 |
+
|
| 2170 |
+
|
| 2171 |
+
The last step is obtained by swapping the order of
|
| 2172 |
+
the two summations, and finally, the problem is reduced to calculating each sub-structure’s marginal
|
| 2173 |
+
probability [�] _y_ _[′]_ _∈Yf_ _′_ _[p]_ [(] _[y][′][|][x]_ [)][.] [Here,] _[Y][f]_ _[′]_ [denotes]
|
| 2174 |
+
all the output structured objects that contain the
|
| 2175 |
+
sub-structure _f_ _[′]_, and the marginals can usually
|
| 2176 |
+
be calculated by classical structured prediction algorithms such as forward-backward for sequence
|
| 2177 |
+
|
| 2178 |
+
|
| 2179 |
+
16Such as unary and pairwise scores for sequence labeling
|
| 2180 |
+
or token-wise edge scores for dependency parsing.
|
| 2181 |
+
|
| 2182 |
+
|
| 2183 |
+
|
| 2184 |
+
The loss function is broken down into two items
|
| 2185 |
+
whose gradients can be obtained by calculating
|
| 2186 |
+
marginals according to the last model or the current
|
| 2187 |
+
one, respectively.
|
| 2188 |
+
|
| 2189 |
+
|
| 2190 |
+
17In our implementation, we adopt a simple method to enforce the constraints by adding negative-infinite to the scores
|
| 2191 |
+
of the impossible labels. In this case, the structures that violates the constraints will have a score of negative-infinite (and
|
| 2192 |
+
a probability of zero) and will thus be excluded.
|
| 2193 |
+
|
| 2194 |
+
|
| 2195 |
+
|
| 2196 |
+
|
| 2197 |
+
= _−_
|
| 2198 |
+
|
| 2199 |
+
_y_ - _∈Y_
|
| 2200 |
+
|
| 2201 |
+
= _−_
|
| 2202 |
+
|
| 2203 |
+
_y_ - _∈Y_
|
| 2204 |
+
|
| 2205 |
+
= _−_
|
| 2206 |
+
|
| 2207 |
+
|
| 2208 |
+
|
| 2209 |
+
|
| 2210 |
+
_s_ ( _f_ _[′]_ _|x_ )
|
| 2211 |
+
_f_ _[′]_ _y_ _[′]_
|
| 2212 |
+
|
| 2213 |
+
|
| 2214 |
+
|
| 2215 |
+
13006
|
| 2216 |
+
|
| 2217 |
+
|
| 2218 |
+
90
|
| 2219 |
+
|
| 2220 |
+
|
| 2221 |
+
88
|
| 2222 |
+
|
| 2223 |
+
|
| 2224 |
+
86
|
| 2225 |
+
|
| 2226 |
+
|
| 2227 |
+
84
|
| 2228 |
+
|
| 2229 |
+
|
| 2230 |
+
|
| 2231 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|
|
| 2232 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 2233 |
+
||||||||||~~RAND~~|
|
| 2234 |
+
||||||||||FA-M<br>PA-M<br>|
|
| 2235 |
+
||||||||||~~PA-LC~~<br>PA-E<br>PA-B|
|
| 2236 |
+
||||||||||Super.|
|
| 2237 |
+
|||||||||||
|
| 2238 |
+
|||||||||||
|
| 2239 |
+
|
| 2240 |
+
|
| 2241 |
+
Token Count
|
| 2242 |
+
|
| 2243 |
+
|
| 2244 |
+
|
| 2245 |
+
90
|
| 2246 |
+
|
| 2247 |
+
|
| 2248 |
+
88
|
| 2249 |
+
|
| 2250 |
+
|
| 2251 |
+
86
|
| 2252 |
+
|
| 2253 |
+
|
| 2254 |
+
84
|
| 2255 |
+
|
| 2256 |
+
|
| 2257 |
+
|
| 2258 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|
|
| 2259 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 2260 |
+
|||||||||||~~RA~~|~~D~~|
|
| 2261 |
+
|||||||||||FA-<br>PA-<br>|M<br>M<br>|
|
| 2262 |
+
|||||||||||||
|
| 2263 |
+
|||||||||||||
|
| 2264 |
+
|||||||||||~~PA-~~<br>PA-<br>PA-|~~LC~~<br>E<br>B|
|
| 2265 |
+
|||||||||||||
|
| 2266 |
+
|||||||||||Sup|er.|
|
| 2267 |
+
|||||||||||||
|
| 2268 |
+
|||||||||||||
|
| 2269 |
+
|||||||||||||
|
| 2270 |
+
|
| 2271 |
+
|
| 2272 |
+
Sub-structure Count
|
| 2273 |
+
|
| 2274 |
+
|
| 2275 |
+
|
| 2276 |
+
Figure 7: Comparisons of different acquisition functions for partial annotation: “-M” denotes margin-based, “-LC”
|
| 2277 |
+
denotes least-confident, “-E” denotes entropy-based, and “-B” indicates BALD.
|
| 2278 |
+
|
| 2279 |
+
|
| 2280 |
+
|
| 2281 |
+
90
|
| 2282 |
+
|
| 2283 |
+
|
| 2284 |
+
88
|
| 2285 |
+
|
| 2286 |
+
|
| 2287 |
+
86
|
| 2288 |
+
|
| 2289 |
+
|
| 2290 |
+
84
|
| 2291 |
+
|
| 2292 |
+
|
| 2293 |
+
|
| 2294 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 2295 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 2296 |
+
||||||||||||
|
| 2297 |
+
||||||||||RAN<br>FA-M<br>~~FA-L~~|D<br><br>|
|
| 2298 |
+
||||||||||||
|
| 2299 |
+
||||||||||||
|
| 2300 |
+
||||||||||FA-E<br>FA-B<br>||
|
| 2301 |
+
||||||||||||
|
| 2302 |
+
||||||||||||
|
| 2303 |
+
||||||||||~~Super~~|~~.~~|
|
| 2304 |
+
||||||||||||
|
| 2305 |
+
||||||||||||
|
| 2306 |
+
|
| 2307 |
+
|
| 2308 |
+
Token Count
|
| 2309 |
+
|
| 2310 |
+
|
| 2311 |
+
|
| 2312 |
+
Figure 8: Comparisons of different acquisition functions
|
| 2313 |
+
for full annotation. Notations of the methods are the
|
| 2314 |
+
same as in Figure 7.
|
| 2315 |
+
|
| 2316 |
+
|
| 2317 |
+
**D** **Extra Results**
|
| 2318 |
+
|
| 2319 |
+
|
| 2320 |
+
**D.1** **Using Different Acquisition Functions**
|
| 2321 |
+
|
| 2322 |
+
In the main experiments, our acquisition function
|
| 2323 |
+
is based on margin-based uncertainty, that is, selecting the instances that have the largest marginal
|
| 2324 |
+
differences between the most and second-most confident predictions. Here, we compare it with various other acquisition functions, including leastconfident (-LC), max-entropy (-E) and BALD (B) (Houlsby et al., 2011). We take DPAR as the
|
| 2325 |
+
studying case and the results for full annotation
|
| 2326 |
+
and partial annotation are shown in Figure 8 and
|
| 2327 |
+
7, respectively. Generally, there are no large differences between the adopted querying methods and
|
| 2328 |
+
the margin-based method can obtain the overall
|
| 2329 |
+
best results. Notice that regardless of the adopted
|
| 2330 |
+
acquisition function, we can see the effectiveness
|
| 2331 |
+
of our partial selection scheme: it requires lower
|
| 2332 |
+
labeling cost than full annotation to reach the upper
|
| 2333 |
+
bound. This shows that our method is extensible
|
| 2334 |
+
to different AL querying methods and it will be interesting to explore the combination of our method
|
| 2335 |
+
with more complex and advanced acquisition func
|
| 2336 |
+
|
| 2337 |
+
|
| 2338 |
+
tions, such as those considering representativeness.
|
| 2339 |
+
|
| 2340 |
+
|
| 2341 |
+
**D.2** **IE Experiments**
|
| 2342 |
+
|
| 2343 |
+
In this section, we present more results of the IE
|
| 2344 |
+
experiments. First, Figure 9 shows the mention
|
| 2345 |
+
extraction results for the event extraction task. The
|
| 2346 |
+
overall trends are very similar to those in NER:
|
| 2347 |
+
PA can obtain similar results to FA with the same
|
| 2348 |
+
reading texts and less mention labeling cost. In
|
| 2349 |
+
Figure 10, we show the results for mention and
|
| 2350 |
+
relation extractions. In the ACE dataset, relations
|
| 2351 |
+
are very sparsely annotated, and around 97% of the
|
| 2352 |
+
entities are linked with less or equal to two relations. Considering this fact, we measure the cost
|
| 2353 |
+
of FA relation extraction by two times the annotated entities, while PA still counts the number of
|
| 2354 |
+
the queried relations. The relation results are similar to the patterns for event argument extraction,
|
| 2355 |
+
showing the benefits of selecting and annotating
|
| 2356 |
+
with partial sub-structures. Notice that in some of
|
| 2357 |
+
the mention extraction results, there seems to be
|
| 2358 |
+
less obvious differences between the AL strategies
|
| 2359 |
+
over the random baseline. This may be due to our
|
| 2360 |
+
focus on the second sub-task for relations (or event
|
| 2361 |
+
arguments), directly reflected by its high weight
|
| 2362 |
+
( _β_ ) in calculating sentence uncertainty. It will be
|
| 2363 |
+
interesting to explore better ways to enhance both
|
| 2364 |
+
sub-tasks, probably with an adaptive combination
|
| 2365 |
+
scheme (Roth and Small, 2008).
|
| 2366 |
+
|
| 2367 |
+
|
| 2368 |
+
|
| 2369 |
+
13007
|
| 2370 |
+
|
| 2371 |
+
|
| 2372 |
+
88
|
| 2373 |
+
|
| 2374 |
+
|
| 2375 |
+
86
|
| 2376 |
+
|
| 2377 |
+
|
| 2378 |
+
84
|
| 2379 |
+
|
| 2380 |
+
|
| 2381 |
+
82
|
| 2382 |
+
|
| 2383 |
+
|
| 2384 |
+
80
|
| 2385 |
+
|
| 2386 |
+
|
| 2387 |
+
75
|
| 2388 |
+
|
| 2389 |
+
|
| 2390 |
+
70
|
| 2391 |
+
|
| 2392 |
+
|
| 2393 |
+
65
|
| 2394 |
+
|
| 2395 |
+
|
| 2396 |
+
60
|
| 2397 |
+
|
| 2398 |
+
|
| 2399 |
+
55
|
| 2400 |
+
|
| 2401 |
+
|
| 2402 |
+
|
| 2403 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 2404 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 2405 |
+
||||||||||||
|
| 2406 |
+
|||||||||Rand<br>Rand+S|d|T|
|
| 2407 |
+
||||||||||||
|
| 2408 |
+
||||||||||||
|
| 2409 |
+
|||||||||FA<br>FA+ST<br>|FA<br>FA+ST<br>||
|
| 2410 |
+
||||||||||||
|
| 2411 |
+
||||||||||||
|
| 2412 |
+
|||||||||~~PA~~<br>PA+ST<br>~~Super.~~|~~PA~~<br>PA+ST<br>~~Super.~~||
|
| 2413 |
+
||||||||||||
|
| 2414 |
+
||||||||||||
|
| 2415 |
+
||||||||||||
|
| 2416 |
+
|
| 2417 |
+
|
| 2418 |
+
4000 12000 20000 28000 36000 44000 52000 60000
|
| 2419 |
+
Token Count
|
| 2420 |
+
|
| 2421 |
+
|
| 2422 |
+
MentionTrigger Reading Cost
|
| 2423 |
+
|
| 2424 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|Col12|Col13|Col14|
|
| 2425 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 2426 |
+
|||||||||||||||
|
| 2427 |
+
||||||||||||~~Ra~~|~~d~~|~~d~~|
|
| 2428 |
+
||||||||||||Rand+S<br>FA|Rand+S<br>FA|T|
|
| 2429 |
+
|||||||||||||||
|
| 2430 |
+
||||||||||||FA+ST<br>PA|FA+ST<br>PA||
|
| 2431 |
+
|||||||||||||||
|
| 2432 |
+
|||||||||||||||
|
| 2433 |
+
||||||||||||PA+ST<br>Super.|PA+ST<br>Super.||
|
| 2434 |
+
|||||||||||||||
|
| 2435 |
+
|||||||||||||||
|
| 2436 |
+
|||||||||||||||
|
| 2437 |
+
|
| 2438 |
+
|
| 2439 |
+
|
| 2440 |
+
Token Count
|
| 2441 |
+
|
| 2442 |
+
|
| 2443 |
+
|
| 2444 |
+
88
|
| 2445 |
+
|
| 2446 |
+
|
| 2447 |
+
86
|
| 2448 |
+
|
| 2449 |
+
|
| 2450 |
+
84
|
| 2451 |
+
|
| 2452 |
+
|
| 2453 |
+
82
|
| 2454 |
+
|
| 2455 |
+
|
| 2456 |
+
80
|
| 2457 |
+
|
| 2458 |
+
|
| 2459 |
+
75
|
| 2460 |
+
|
| 2461 |
+
|
| 2462 |
+
70
|
| 2463 |
+
|
| 2464 |
+
|
| 2465 |
+
65
|
| 2466 |
+
|
| 2467 |
+
|
| 2468 |
+
60
|
| 2469 |
+
|
| 2470 |
+
|
| 2471 |
+
55
|
| 2472 |
+
|
| 2473 |
+
|
| 2474 |
+
|
| 2475 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 2476 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 2477 |
+
||||||||||||
|
| 2478 |
+
||||||||Rand<br>Rand+ST|Rand<br>Rand+ST|Rand<br>Rand+ST|Rand<br>Rand+ST|
|
| 2479 |
+
||||||||FA<br>FA+ST<br>|FA<br>FA+ST<br>|FA<br>FA+ST<br>|FA<br>FA+ST<br>|
|
| 2480 |
+
||||||||~~PA~~<br>PA+ST<br>~~Super.~~|~~PA~~<br>PA+ST<br>~~Super.~~|~~PA~~<br>PA+ST<br>~~Super.~~|~~PA~~<br>PA+ST<br>~~Super.~~|
|
| 2481 |
+
||||||||||||
|
| 2482 |
+
|
| 2483 |
+
|
| 2484 |
+
0 5000 10000 15000 20000 25000 30000
|
| 2485 |
+
Sub-structure Count
|
| 2486 |
+
|
| 2487 |
+
|
| 2488 |
+
MentionTrigger Labeling Cost
|
| 2489 |
+
|
| 2490 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|
|
| 2491 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 2492 |
+
|||||||||||
|
| 2493 |
+
|||||||||~~Rand~~|~~Rand~~|
|
| 2494 |
+
|||||||||Rand+ST<br>FA|Rand+ST<br>FA|
|
| 2495 |
+
|||||||||FA+ST<br>PA|FA+ST<br>PA|
|
| 2496 |
+
|||||||||PA+ST<br>Super.|PA+ST<br>Super.|
|
| 2497 |
+
|||||||||||
|
| 2498 |
+
|
| 2499 |
+
|
| 2500 |
+
|
| 2501 |
+
Sub-structure Count
|
| 2502 |
+
|
| 2503 |
+
|
| 2504 |
+
|
| 2505 |
+
Figure 9: Results (F1) of mention extraction (entities and event triggers) for the event extraction task on ACE05
|
| 2506 |
+
(argument results are shown in Figure 6).
|
| 2507 |
+
|
| 2508 |
+
|
| 2509 |
+
|
| 2510 |
+
88
|
| 2511 |
+
|
| 2512 |
+
|
| 2513 |
+
86
|
| 2514 |
+
|
| 2515 |
+
|
| 2516 |
+
84
|
| 2517 |
+
|
| 2518 |
+
|
| 2519 |
+
82
|
| 2520 |
+
|
| 2521 |
+
|
| 2522 |
+
80
|
| 2523 |
+
|
| 2524 |
+
|
| 2525 |
+
65
|
| 2526 |
+
|
| 2527 |
+
|
| 2528 |
+
60
|
| 2529 |
+
|
| 2530 |
+
|
| 2531 |
+
55
|
| 2532 |
+
|
| 2533 |
+
|
| 2534 |
+
50
|
| 2535 |
+
|
| 2536 |
+
|
| 2537 |
+
45
|
| 2538 |
+
|
| 2539 |
+
|
| 2540 |
+
40
|
| 2541 |
+
|
| 2542 |
+
|
| 2543 |
+
35
|
| 2544 |
+
|
| 2545 |
+
|
| 2546 |
+
|
| 2547 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 2548 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 2549 |
+
||||||||||||
|
| 2550 |
+
|||||||||Rand<br>|Rand<br>|Rand<br>|
|
| 2551 |
+
||||||||||||
|
| 2552 |
+
|||||||||~~Rand+S~~<br>FA<br>|~~Rand+S~~<br>FA<br>||
|
| 2553 |
+
||||||||||||
|
| 2554 |
+
|||||||||~~FA+ST~~<br>PA<br>|~~FA+ST~~<br>PA<br>||
|
| 2555 |
+
||||||||||||
|
| 2556 |
+
|||||||||~~PA+ST~~<br>Super.|~~PA+ST~~<br>Super.||
|
| 2557 |
+
||||||||||||
|
| 2558 |
+
||||||||||||
|
| 2559 |
+
|
| 2560 |
+
|
| 2561 |
+
Token Count
|
| 2562 |
+
|
| 2563 |
+
|
| 2564 |
+
Relation Reading Cost
|
| 2565 |
+
|
| 2566 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|Col9|Col10|Col11|
|
| 2567 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 2568 |
+
||||||||||Rand<br>Rand+S|T|
|
| 2569 |
+
||||||||||||
|
| 2570 |
+
||||||||||FA<br>~~FA+ST~~||
|
| 2571 |
+
||||||||||||
|
| 2572 |
+
||||||||||PA<br>||
|
| 2573 |
+
||||||||||||
|
| 2574 |
+
||||||||||~~PA+ST~~<br>Super.||
|
| 2575 |
+
||||||||||||
|
| 2576 |
+
||||||||||||
|
| 2577 |
+
|
| 2578 |
+
|
| 2579 |
+
|
| 2580 |
+
4000 12000 20000 28000 36000 44000 52000 60000
|
| 2581 |
+
Token Count
|
| 2582 |
+
|
| 2583 |
+
|
| 2584 |
+
|
| 2585 |
+
88
|
| 2586 |
+
|
| 2587 |
+
|
| 2588 |
+
86
|
| 2589 |
+
|
| 2590 |
+
|
| 2591 |
+
84
|
| 2592 |
+
|
| 2593 |
+
|
| 2594 |
+
82
|
| 2595 |
+
|
| 2596 |
+
|
| 2597 |
+
80
|
| 2598 |
+
|
| 2599 |
+
|
| 2600 |
+
65
|
| 2601 |
+
|
| 2602 |
+
|
| 2603 |
+
60
|
| 2604 |
+
|
| 2605 |
+
|
| 2606 |
+
55
|
| 2607 |
+
|
| 2608 |
+
|
| 2609 |
+
50
|
| 2610 |
+
|
| 2611 |
+
|
| 2612 |
+
45
|
| 2613 |
+
|
| 2614 |
+
|
| 2615 |
+
40
|
| 2616 |
+
|
| 2617 |
+
|
| 2618 |
+
35
|
| 2619 |
+
|
| 2620 |
+
|
| 2621 |
+
|
| 2622 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|
|
| 2623 |
+
|---|---|---|---|---|---|---|---|
|
| 2624 |
+
|||||||||
|
| 2625 |
+
|||||||Rand<br>|Rand<br>|
|
| 2626 |
+
|||||||||
|
| 2627 |
+
|||||||~~Rand+ST~~<br>FA<br>|~~Rand+ST~~<br>FA<br>|
|
| 2628 |
+
|||||||||
|
| 2629 |
+
|||||||~~FA+ST~~<br>PA<br>|~~FA+ST~~<br>PA<br>|
|
| 2630 |
+
|||||||||
|
| 2631 |
+
|||||||~~PA+ST~~<br>Super.|~~PA+ST~~<br>Super.|
|
| 2632 |
+
|||||||||
|
| 2633 |
+
|||||||||
|
| 2634 |
+
|
| 2635 |
+
|
| 2636 |
+
Sub-structure Count
|
| 2637 |
+
|
| 2638 |
+
|
| 2639 |
+
Relation Labeling Cost
|
| 2640 |
+
|
| 2641 |
+
|Col1|Col2|Col3|Col4|Col5|Col6|Col7|Col8|
|
| 2642 |
+
|---|---|---|---|---|---|---|---|
|
| 2643 |
+
||||||||Rand<br>Rand+ST|
|
| 2644 |
+
|||||||||
|
| 2645 |
+
||||||||FA<br>~~FA+ST~~|
|
| 2646 |
+
|||||||||
|
| 2647 |
+
||||||||PA<br>|
|
| 2648 |
+
|||||||||
|
| 2649 |
+
||||||||~~PA+ST~~<br>Super.|
|
| 2650 |
+
|||||||||
|
| 2651 |
+
|||||||||
|
| 2652 |
+
|
| 2653 |
+
|
| 2654 |
+
|
| 2655 |
+
0 5000 10000 15000 20000
|
| 2656 |
+
Sub-structure Count
|
| 2657 |
+
|
| 2658 |
+
|
| 2659 |
+
|
| 2660 |
+
Figure 10: Results (F1) of the extraction of entity mentions and relations for the relation extraction task on ACE05.
|
| 2661 |
+
|
| 2662 |
+
|
| 2663 |
+
13008
|
| 2664 |
+
|
| 2665 |
+
|
|
@@ -0,0 +1,596 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Active Learning Claims Verification Report
|
| 2 |
+
|
| 3 |
+
**Date**: 2026-02-13
|
| 4 |
+
**Reviewer**: Research Investigation
|
| 5 |
+
**Purpose**: Verify active learning claims for Vietnamese three-task pipeline (WS → POS → DP)
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Executive Summary
|
| 10 |
+
|
| 11 |
+
This report verifies claims about active learning for NLP annotation tasks, with a focus on evaluating whether a proposed three-task pipeline for Vietnamese (word segmentation, POS tagging, dependency parsing) makes accurate claims about prior work. The investigation examines 8 specific claims across cost reduction, query strategies, and annotation productivity.
|
| 12 |
+
|
| 13 |
+
**Overall Assessment**: Most claims are **generally accurate but lack precise citations**. The cost reduction percentages cited are in the right ballpark but not always precisely matched to the claimed sources. Some claims reference work that doesn't exist or misattribute specific results.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 1. Active Learning Cost Reduction Claims
|
| 18 |
+
|
| 19 |
+
### 1.1. Hwa (2004): ~50% Fewer Sentences for Parsing
|
| 20 |
+
|
| 21 |
+
**Claim**: "Hwa (2004) claiming ~50% fewer sentences for parsing"
|
| 22 |
+
|
| 23 |
+
**Verification**: ✅ **GENERALLY ACCURATE**
|
| 24 |
+
|
| 25 |
+
**Evidence**:
|
| 26 |
+
- **Paper**: Rebecca Hwa, "Sample Selection for Statistical Parsing," *Computational Linguistics*, 30(3):253-276, 2004
|
| 27 |
+
- **URL**: https://direct.mit.edu/coli/article/30/3/253/1841/Sample-Selection-for-Statistical-Parsing
|
| 28 |
+
- **Actual Finding**: The paper demonstrates that "sample selection can significantly reduce the size of annotated training corpora." One specific result shows **36% reduction in annotated training data** without degrading grammar quality.
|
| 29 |
+
- **Note**: While the paper does show substantial reductions (36% is documented), the exact "~50%" figure is not directly cited in the available abstracts. Related work by Baldridge & Osborne (2004) on HPSG parse selection reported **60% reduction**, which may be the source of confusion.
|
| 30 |
+
|
| 31 |
+
**Sources**:
|
| 32 |
+
- [Sample Selection for Statistical Parsing](https://direct.mit.edu/coli/article/30/3/253/1841/Sample-Selection-for-Statistical-Parsing)
|
| 33 |
+
- [Sample Selection for Statistical Parsing (ACL Anthology)](https://aclanthology.org/J04-3001.pdf)
|
| 34 |
+
|
| 35 |
+
### 1.2. Li et al. (2016): 40-60% Less Arc Annotation with Partial Annotation
|
| 36 |
+
|
| 37 |
+
**Claim**: "Li et al. (2016) claiming 40-60% less arc annotation with partial annotation"
|
| 38 |
+
|
| 39 |
+
**Verification**: ✅ **ACCURATE**
|
| 40 |
+
|
| 41 |
+
**Evidence**:
|
| 42 |
+
- **Paper**: Zhenghua Li, Min Zhang, Yue Zhang, Zhanyi Liu, Wenliang Chen, Hua Wu, Haifeng Wang, "Active Learning for Dependency Parsing with Partial Annotation," *ACL 2016*, pp. 344-354
|
| 43 |
+
- **URL**: https://aclanthology.org/P16-1033/
|
| 44 |
+
- **Key Contribution**: Uses **head entropy** to select the most informative individual dependency arcs for annotation. The paper demonstrates that partial annotation AL achieves comparable performance to full-sentence annotation with **40-60% less annotation effort** (measured by number of arcs annotated).
|
| 45 |
+
- **Methodology**: Head entropy measures the entropy of the distribution over possible heads for each token using the Inside-Outside algorithm on a probabilistic parser.
|
| 46 |
+
|
| 47 |
+
**Assessment**: This claim is **well-supported**. Li et al. (2016) is the seminal paper on partial annotation for dependency parsing and the cost reduction figures are correctly cited.
|
| 48 |
+
|
| 49 |
+
**Sources**:
|
| 50 |
+
- [Active Learning for Dependency Parsing with Partial Annotation](https://aclanthology.org/P16-1033/)
|
| 51 |
+
- [Training Dependency Parsers with Partial Annotation (arXiv)](https://arxiv.org/abs/1609.09247)
|
| 52 |
+
|
| 53 |
+
### 1.3. Shi et al. (2021): ~20-30% Fewer Sentences with DPP Batch Diversity
|
| 54 |
+
|
| 55 |
+
**Claim**: "Shi et al. (2021) claiming ~20-30% fewer sentences with DPP batch diversity"
|
| 56 |
+
|
| 57 |
+
**Verification**: ✅ **ACCURATE**
|
| 58 |
+
|
| 59 |
+
**Evidence**:
|
| 60 |
+
- **Paper**: Tianze Shi, Adrian Benton, Igor Malioutov, Ozan Irsoy, "Diversity-Aware Batch Active Learning for Dependency Parsing," *NAACL 2021*
|
| 61 |
+
- **URL**: https://aclanthology.org/2021.naacl-main.207/
|
| 62 |
+
- **Key Finding**: Simulation experiments on English newswire (Penn Treebank) show that selecting diverse batches with **determinantal point processes (DPPs)** is superior to diversity-agnostic strategies, especially during the **initial stages** of the learning process.
|
| 63 |
+
- **Results**: DPP-based batch selection reaches the same LAS (Labeled Attachment Score) as random sampling with approximately **20-30% fewer sentences**, particularly in early learning stages.
|
| 64 |
+
- **Technical Detail**: DPPs enforce diversity by promoting repulsiveness in batch selection, preventing the selection of many near-duplicate sentences that waste annotation budget.
|
| 65 |
+
|
| 66 |
+
**Assessment**: This claim is **accurate**. Shi et al. (2021) is the state-of-the-art work on diversity-aware batch active learning for dependency parsing.
|
| 67 |
+
|
| 68 |
+
**Sources**:
|
| 69 |
+
- [Diversity-Aware Batch Active Learning for Dependency Parsing](https://aclanthology.org/2021.naacl-main.207/)
|
| 70 |
+
- [GitHub Repository](https://github.com/tzshi/dpp-al-parsing-naacl21)
|
| 71 |
+
- [ArXiv Preprint](https://arxiv.org/abs/2104.13936)
|
| 72 |
+
|
| 73 |
+
### 1.4. Zhang et al. (2023): Partial Annotation + Self-Training
|
| 74 |
+
|
| 75 |
+
**Claim**: "Zhang et al. (2023) on partial annotation + self-training"
|
| 76 |
+
|
| 77 |
+
**Verification**: ✅ **ACCURATE**
|
| 78 |
+
|
| 79 |
+
**Evidence**:
|
| 80 |
+
- **Paper**: Zhisong Zhang, Emma Strubell, Eduard Hovy, "Data-efficient Active Learning for Structured Prediction with Partial Annotation and Self-Training," *Findings of EMNLP 2023*, pp. 12991-13008
|
| 81 |
+
- **URL**: https://aclanthology.org/2023.findings-emnlp.865/
|
| 82 |
+
- **Key Contributions**:
|
| 83 |
+
1. Combines **partial annotation** (selecting only the most informative sub-structures) with **self-training** (using model predictions as pseudo-labels for unannotated parts)
|
| 84 |
+
2. Uses an **adaptive error estimator** to dynamically adjust the partial selection ratio based on the current model's capability
|
| 85 |
+
3. Evaluates across **four structured prediction tasks** including dependency parsing
|
| 86 |
+
- **Results**: The combination of partial annotation and self-training with adaptive selection ratio **reduces annotation cost** over strong full-annotation baselines across all four tasks.
|
| 87 |
+
|
| 88 |
+
**Assessment**: This is the **most recent state-of-the-art** work combining partial annotation with self-training for dependency parsing. The claim is accurate.
|
| 89 |
+
|
| 90 |
+
**Sources**:
|
| 91 |
+
- [Data-efficient Active Learning for Structured Prediction](https://aclanthology.org/2023.findings-emnlp.865/)
|
| 92 |
+
- [ArXiv Preprint](https://arxiv.org/abs/2305.12634)
|
| 93 |
+
|
| 94 |
+
---
|
| 95 |
+
|
| 96 |
+
## 2. CRF Marginal Uncertainty for Word Segmentation
|
| 97 |
+
|
| 98 |
+
**Claim**: "CRF marginal uncertainty as a query strategy for word segmentation - is this standard practice?"
|
| 99 |
+
|
| 100 |
+
**Verification**: ✅ **STANDARD PRACTICE**
|
| 101 |
+
|
| 102 |
+
**Evidence**:
|
| 103 |
+
|
| 104 |
+
### General Framework
|
| 105 |
+
- **Settles & Craven (2008)**: "An Analysis of Active Learning Strategies for Sequence Labeling Tasks," *EMNLP 2008*
|
| 106 |
+
- **URL**: https://aclanthology.org/D08-1112/
|
| 107 |
+
- Comprehensive analysis of AL strategies for sequence labeling with CRFs
|
| 108 |
+
- **Query Strategies Analyzed**:
|
| 109 |
+
1. **Least Confidence (LC)**: Queries the instance the model is most uncertain about
|
| 110 |
+
2. **Token Entropy**: Measures entropy of the model's posteriors over its labeling, normalized by sequence length
|
| 111 |
+
3. **Margin**: Queries instance with smallest margin between posteriors for two most likely labelings
|
| 112 |
+
4. **Sequence Entropy (SE)**: Measures entropy of the label sequence as a whole
|
| 113 |
+
- **Key Finding**: Among uncertainty sampling methods, **Sequence Entropy (SE)** and **Least Confidence (LC)** performed best for CRF-based sequence labeling
|
| 114 |
+
|
| 115 |
+
### CRF-Specific Applications
|
| 116 |
+
- **LTP Strategy**: "LTP: A New Active Learning Strategy for CRF-Based Named Entity Recognition," *Neural Processing Letters*, 2021
|
| 117 |
+
- **URL**: https://link.springer.com/article/10.1007/s11063-021-10737-x
|
| 118 |
+
- Proposes **Lowest Token Probability (LTP)** strategy that combines input and output of CRF to select informative instances
|
| 119 |
+
- Examines traditional AL strategies in Word2Vec-BiLSTM-CRF and BERT-CRF contexts
|
| 120 |
+
|
| 121 |
+
### Marginal Uncertainty Calculation
|
| 122 |
+
For CRFs, confidence/uncertainty can be calculated using:
|
| 123 |
+
- **Posterior probabilities**: The model's confidence in its predictions
|
| 124 |
+
- **Marginal uncertainty**: Uncertainty for each token in the sequence, computed from CRF's forward-backward algorithm
|
| 125 |
+
- **Token-level scoring**: `u_i = 1 - max(P(label|x,i))` where the probability is marginalized over all possible full-sequence labelings
|
| 126 |
+
|
| 127 |
+
**Assessment**: Using CRF marginal uncertainty (token-level uncertainty from the CRF's posterior distribution) for word segmentation active learning is **well-established practice** in the literature. Settles & Craven (2008) is the foundational reference.
|
| 128 |
+
|
| 129 |
+
**Sources**:
|
| 130 |
+
- [An Analysis of Active Learning Strategies for Sequence Labeling](https://aclanthology.org/D08-1112/)
|
| 131 |
+
- [LTP Strategy for CRF-Based NER](https://link.springer.com/article/10.1007/s11063-021-10737-x)
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## 3. Head Entropy for Dependency Parsing AL
|
| 136 |
+
|
| 137 |
+
**Claim**: "Head entropy for dependency parsing AL - who introduced this, is it state of the art?"
|
| 138 |
+
|
| 139 |
+
**Verification**: ✅ **WELL-ESTABLISHED, STATE-OF-THE-ART**
|
| 140 |
+
|
| 141 |
+
**Evidence**:
|
| 142 |
+
|
| 143 |
+
### Introduction
|
| 144 |
+
- **Li et al. (2016)**: "Active Learning for Dependency Parsing with Partial Annotation," *ACL 2016*
|
| 145 |
+
- **Introduced head entropy** as the primary informativeness measure for arc-level selection in dependency parsing
|
| 146 |
+
- **Definition**: Head entropy measures the entropy of the distribution over possible heads for each token: `H(h_i) = -Σ_j P(head=j|x,i) log P(head=j|x,i)`
|
| 147 |
+
- **Computation**: Uses the **Inside-Outside algorithm** on a probabilistic dependency parser to compute marginal probabilities for each possible head assignment
|
| 148 |
+
- **Selection**: Tokens with highest head entropy are the most uncertain and therefore most informative for annotation
|
| 149 |
+
|
| 150 |
+
### State-of-the-Art Status
|
| 151 |
+
Head entropy remains the **standard uncertainty measure** for dependency parsing active learning:
|
| 152 |
+
1. **Li et al. (2016)**: Original introduction for partial annotation
|
| 153 |
+
2. **Zhang et al. (2023)**: Uses head entropy as part of the uncertainty estimation in their partial annotation + self-training framework
|
| 154 |
+
3. **Shi et al. (2021)**: While focused on diversity (DPPs), still uses uncertainty scores (often entropy-based) as the informativeness component
|
| 155 |
+
|
| 156 |
+
### Alternative Uncertainty Measures
|
| 157 |
+
Other entropy-based measures for parsing include:
|
| 158 |
+
- **Tree Entropy**: Entropy over the full parse tree distribution (more computationally expensive)
|
| 159 |
+
- **Prediction Entropy**: Entropy of the full structured output
|
| 160 |
+
- **Least Confidence**: 1 - P(most likely parse)
|
| 161 |
+
|
| 162 |
+
**Assessment**: **Head entropy** was introduced by **Li et al. (2016)** and remains the **state-of-the-art** uncertainty measure for token/arc-level active learning in dependency parsing. It balances computational tractability with effectiveness.
|
| 163 |
+
|
| 164 |
+
**Sources**:
|
| 165 |
+
- [Active Learning for Dependency Parsing with Partial Annotation (Li et al., 2016)](https://aclanthology.org/P16-1033/)
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
+
|
| 169 |
+
## 4. DPP for Batch Active Learning in NLP
|
| 170 |
+
|
| 171 |
+
**Claim**: "DPP (Determinantal Point Process) for batch active learning in NLP - key papers and results"
|
| 172 |
+
|
| 173 |
+
**Verification**: ✅ **WELL-DOCUMENTED**
|
| 174 |
+
|
| 175 |
+
**Key Papers**:
|
| 176 |
+
|
| 177 |
+
### 1. Bıyık et al. (2019): General DPP Batch AL
|
| 178 |
+
- **Paper**: "Batch Active Learning Using Determinantal Point Processes," *arXiv 1906.07975*, 2019
|
| 179 |
+
- **URL**: https://arxiv.org/abs/1906.07975
|
| 180 |
+
- **Contribution**: Principled batch AL method using DPPs (repulsive point process) for generating diverse batches
|
| 181 |
+
- **Key Innovation**: DPPs can be tuned to balance diversity and informativeness
|
| 182 |
+
- **GitHub**: https://github.com/Stanford-ILIAD/DPP-Batch-Active-Learning
|
| 183 |
+
|
| 184 |
+
### 2. Shi et al. (2021): DPP for Dependency Parsing
|
| 185 |
+
- **Paper**: "Diversity-Aware Batch Active Learning for Dependency Parsing," *NAACL 2021*
|
| 186 |
+
- **URL**: https://aclanthology.org/2021.naacl-main.207/
|
| 187 |
+
- **Application**: First major application of DPPs to NLP (dependency parsing)
|
| 188 |
+
- **Problem Addressed**: Diversity-agnostic strategies (selecting top-N most uncertain) select many near-duplicate sentences, wasting annotation budget
|
| 189 |
+
- **Solution**: DPPs enforce diversity by promoting repulsiveness between selected items
|
| 190 |
+
- **Results**: ~20-30% fewer sentences needed compared to diversity-agnostic baselines, especially in early stages
|
| 191 |
+
|
| 192 |
+
### 3. BADGE (2019-2020): Gradient-Based Diversity
|
| 193 |
+
- **Paper**: "Deep Batch Active learning by Diverse Gradient Embeddings," *ICLR 2020*
|
| 194 |
+
- **Approach**: BADGE (Batch Active learning by Diverse Gradient Embeddings) samples groups of points that are disparate and high-magnitude in gradient space
|
| 195 |
+
- **Contribution**: Incorporates both predictive uncertainty and sample diversity without requiring DPPs
|
| 196 |
+
|
| 197 |
+
### Key Concepts
|
| 198 |
+
- **DPPs**: A class of distributions that promote diversity; can be tuned to balance informativeness and diversity
|
| 199 |
+
- **Repulsive Point Process**: Items that are similar repel each other in the selection process
|
| 200 |
+
- **Batch AL**: Selecting multiple instances simultaneously rather than one-at-a-time (more practical for real annotation scenarios)
|
| 201 |
+
|
| 202 |
+
**Assessment**: DPPs for batch AL in NLP are **well-established** since 2019-2021. Shi et al. (2021) is the landmark NLP application for dependency parsing.
|
| 203 |
+
|
| 204 |
+
**Sources**:
|
| 205 |
+
- [Batch Active Learning Using Determinantal Point Processes](https://arxiv.org/abs/1906.07975)
|
| 206 |
+
- [Diversity-Aware Batch Active Learning for Dependency Parsing](https://aclanthology.org/2021.naacl-main.207/)
|
| 207 |
+
- [BADGE Algorithm](https://arxiv.org/abs/1906.03671)
|
| 208 |
+
|
| 209 |
+
---
|
| 210 |
+
|
| 211 |
+
## 5. Partial Annotation for Dependency Parsing - State of the Art
|
| 212 |
+
|
| 213 |
+
**Claim**: "Partial annotation strategies for dependency parsing - what's the current state of the art?"
|
| 214 |
+
|
| 215 |
+
**Verification**: ✅ **WELL-DOCUMENTED**
|
| 216 |
+
|
| 217 |
+
**Timeline**:
|
| 218 |
+
|
| 219 |
+
### Early Work (2010-2015)
|
| 220 |
+
1. **Sassano & Kurohashi (2010)**: "Using Smaller Constituents Rather Than Sentences in Active Learning for Japanese Dependency Parsing," *ACL 2010*
|
| 221 |
+
- Key insight: annotate sub-sentential units (bunsetsus) rather than full sentences
|
| 222 |
+
- ~30% reduction in annotation effort
|
| 223 |
+
|
| 224 |
+
2. **Mirroshandel & Nasr (2011)**: "Active Learning for Dependency Parsing Using Partially Annotated Sentences," *IWPT 2011*
|
| 225 |
+
- Early exploration of partial annotation for dependency parsing
|
| 226 |
+
- Only annotate the most uncertain arcs
|
| 227 |
+
|
| 228 |
+
3. **Flannery & Mori (2015)**: "Combining Active Learning and Partial Annotation for Domain Adaptation," *IWPT 2015*
|
| 229 |
+
- Combined AL with partial annotation for domain adaptation
|
| 230 |
+
|
| 231 |
+
### Mature Framework (2016-2017)
|
| 232 |
+
4. **Li et al. (2016)**: "Active Learning for Dependency Parsing with Partial Annotation," *ACL 2016*
|
| 233 |
+
- **Seminal work**: Comprehensive framework for partial annotation
|
| 234 |
+
- **Head entropy**: Arc-level selection criterion
|
| 235 |
+
- **Results**: 40-60% less annotation effort for same performance
|
| 236 |
+
|
| 237 |
+
5. **Zhang et al. (2017)**: "Dependency Parsing with Partial Annotations," *IJCNLP 2017*
|
| 238 |
+
- Compared forest-based training and constrained decoding for partial annotations
|
| 239 |
+
- Systematic comparison of partial annotation methods
|
| 240 |
+
|
| 241 |
+
### State-of-the-Art (2023)
|
| 242 |
+
6. **Zhang et al. (2023)**: "Data-efficient Active Learning for Structured Prediction with Partial Annotation and Self-Training," *Findings of EMNLP 2023*
|
| 243 |
+
- **Current SOTA**: Combines partial annotation with self-training
|
| 244 |
+
- **Adaptive selection ratio**: Uses error estimator to decide what percentage of sub-structures to annotate
|
| 245 |
+
- **Pseudo-labels**: Uses model predictions for unannotated parts
|
| 246 |
+
- Evaluated across 4 structured prediction tasks including dependency parsing
|
| 247 |
+
|
| 248 |
+
### Current Best Practice (2023-2024)
|
| 249 |
+
The state-of-the-art approach combines:
|
| 250 |
+
1. **Partial annotation** (select most informative arcs)
|
| 251 |
+
2. **Self-training** (pseudo-labels for unannotated arcs)
|
| 252 |
+
3. **Adaptive selection ratio** (adjust based on model capability)
|
| 253 |
+
4. **Diversity-aware batch selection** (DPPs for sentence-level diversity)
|
| 254 |
+
|
| 255 |
+
**Assessment**: The current state of the art is **Zhang et al. (2023)**, which combines partial annotation with self-training using adaptive selection ratios.
|
| 256 |
+
|
| 257 |
+
**Sources**:
|
| 258 |
+
- [Data-efficient Active Learning for Structured Prediction (Zhang et al., 2023)](https://aclanthology.org/2023.findings-emnlp.865/)
|
| 259 |
+
- [Active Learning for Dependency Parsing with Partial Annotation (Li et al., 2016)](https://aclanthology.org/P16-1033/)
|
| 260 |
+
|
| 261 |
+
---
|
| 262 |
+
|
| 263 |
+
## 6. Sequential/Pipeline Active Learning Across Multiple NLP Tasks
|
| 264 |
+
|
| 265 |
+
**Claim**: "Are there any papers on sequential/pipeline active learning across multiple NLP tasks (WS → POS → DP)?"
|
| 266 |
+
|
| 267 |
+
**Verification**: ⚠️ **NO DIRECT EVIDENCE**
|
| 268 |
+
|
| 269 |
+
**Evidence**:
|
| 270 |
+
|
| 271 |
+
### Multi-Task Active Learning
|
| 272 |
+
Found evidence of **multi-task AL** (jointly learning multiple tasks), but **NOT sequential/pipeline AL**:
|
| 273 |
+
|
| 274 |
+
1. **Multi-Task Learning in NLP** (General):
|
| 275 |
+
- "Multi-Task Learning in Natural Language Processing: An Overview," *arXiv 2109.09138*
|
| 276 |
+
- "A Survey of Multi-task Learning in Natural Language Processing," *EACL 2023*
|
| 277 |
+
- Training methods: (i) joint training, (ii) multi-step training
|
| 278 |
+
- Example: ERNIE 2.0 uses "Continual Incremental Multi-Task Learning" where tasks are trained sequentially
|
| 279 |
+
|
| 280 |
+
2. **Multi-task AL for Transformers**:
|
| 281 |
+
- "Multi-task Active Learning for Pre-trained Transformer-based Models," *TACL 2022*
|
| 282 |
+
- Multi-task AL across multiple NLP tasks **simultaneously** (not sequentially)
|
| 283 |
+
|
| 284 |
+
3. **Active Learning for Sequence Tagging**:
|
| 285 |
+
- "Active Learning for Sequence Tagging with Deep Pre-trained Models," *EACL 2021*
|
| 286 |
+
|
| 287 |
+
### Pipeline Error Propagation (Related but NOT AL)
|
| 288 |
+
Found extensive work on **error propagation in cascaded NLP pipelines**, but without active learning:
|
| 289 |
+
|
| 290 |
+
1. **"Tackling Error Propagation through Reinforcement Learning"**, *EACL 2017*
|
| 291 |
+
- URL: https://aclanthology.org/E17-1064/
|
| 292 |
+
- Error propagation in sequential NLP tasks; uses RL to mitigate
|
| 293 |
+
|
| 294 |
+
2. **"A Dual-layer CRFs Based Joint Decoding Method for Cascaded Segmentation"**, *IJCAI 2007*
|
| 295 |
+
- Joint decoding of cascaded sequence segmentation and labeling
|
| 296 |
+
|
| 297 |
+
3. **Pipeline approaches**: "Traditional pipeline approaches yield to error propagation and prohibit joint training/decoding between subtasks"
|
| 298 |
+
|
| 299 |
+
### Sequential Multi-Task Learning
|
| 300 |
+
- **"One Network to Solve Them All: A Sequential Multi-Task Joint Learning Network"**, *arXiv 2105.06653*
|
| 301 |
+
- Sequential multi-task joint learning (train combined end-to-end pipeline)
|
| 302 |
+
- Not focused on active learning
|
| 303 |
+
|
| 304 |
+
### Vietnamese Pipeline
|
| 305 |
+
- Vietnamese NLP pipelines typically follow: word segmentation → POS tagging → dependency parsing
|
| 306 |
+
- Error propagation is a known problem: "once some words are wrongly segmented, the subsequent POS tagging and parsing will also make mistakes"
|
| 307 |
+
- Joint models proposed to address this (e.g., graph-based joint WS + DP)
|
| 308 |
+
|
| 309 |
+
**Assessment**: ❌ **NO PUBLISHED WORK** specifically on sequential/pipeline active learning for WS → POS → DP. This represents a **clear research gap**. While multi-task AL exists (jointly selecting for multiple tasks), and cascaded pipeline error propagation is studied, there is no prior work on **active learning specifically for sequential NLP task pipelines** where each task's AL informs the next.
|
| 310 |
+
|
| 311 |
+
**Research Gap**: A three-task sequential AL pipeline (WS → POS → DP) would be **novel** if properly executed.
|
| 312 |
+
|
| 313 |
+
**Sources**:
|
| 314 |
+
- [Multi-Task Learning in NLP Survey](https://arxiv.org/abs/2109.09138)
|
| 315 |
+
- [Tackling Error Propagation through RL](https://aclanthology.org/E17-1064/)
|
| 316 |
+
- [Multi-task AL for Transformers (TACL 2022)](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00515/113664/)
|
| 317 |
+
|
| 318 |
+
---
|
| 319 |
+
|
| 320 |
+
## 7. Solo Annotator Treebank Construction: Quality Assurance
|
| 321 |
+
|
| 322 |
+
**Claim**: "Solo annotator treebank construction: What quality assurance methods are used? What self-consistency rates are typical?"
|
| 323 |
+
|
| 324 |
+
**Verification**: ⚠️ **SOLO ANNOTATION NOT RECOMMENDED; TYPICAL QA USES MULTIPLE ANNOTATORS**
|
| 325 |
+
|
| 326 |
+
**Evidence**:
|
| 327 |
+
|
| 328 |
+
### Industry Best Practices: Multiple Annotators
|
| 329 |
+
|
| 330 |
+
1. **Inter-Annotator Agreement (IAA) is Standard**:
|
| 331 |
+
- Treebank projects typically employ **multiple annotators** with IAA measurement
|
| 332 |
+
- "To ensure quality, treebank projects rely on a metric called inter-annotator agreement (IAA)"
|
| 333 |
+
- **Single-annotator accuracy measurements miss a critical signal**: whether the annotation task itself is well-defined and learnable
|
| 334 |
+
|
| 335 |
+
2. **Vietnamese Treebank (VTB) Example**:
|
| 336 |
+
- Paper: "Ensuring annotation consistency and accuracy for Vietnamese treebank," *Language Resources and Evaluation*, 2017
|
| 337 |
+
- URL: https://link.springer.com/article/10.1007/s10579-017-9398-3
|
| 338 |
+
- **Process**:
|
| 339 |
+
- Two annotators annotated 600 texts (~8,000 sentences) as preliminary annotations
|
| 340 |
+
- Nine rounds of measurements to calculate accuracy and IAA
|
| 341 |
+
- **Inter-annotator agreement: >90%** for all three layers (word segmentation, POS, syntax)
|
| 342 |
+
- **Support**: Automatic labeling tools for pre-processing + tree editor for manual annotation
|
| 343 |
+
|
| 344 |
+
3. **Gold Standard Quality Control**:
|
| 345 |
+
- Gold standard items inserted randomly at **5-10% rate** into annotator's queue
|
| 346 |
+
- Annotators unable to distinguish gold items from regular tasks (authentic performance measurement)
|
| 347 |
+
|
| 348 |
+
4. **Iterative Guideline Refinement**:
|
| 349 |
+
- Annotators trained on draft guidelines
|
| 350 |
+
- Provide feedback about difficult constructions
|
| 351 |
+
- Guidelines revised based on feedback
|
| 352 |
+
- Multiple rounds of IAA measurement
|
| 353 |
+
|
| 354 |
+
### Universal Dependencies Practices
|
| 355 |
+
|
| 356 |
+
5. **English Web Treebank (EWT)**:
|
| 357 |
+
- "All the dependency annotations have been **single-annotated**"
|
| 358 |
+
- "A limited portion of them have been **double-annotated** with interannotator agreement at approximately **96%**"
|
| 359 |
+
- Subsequent correction done to improve consistency
|
| 360 |
+
|
| 361 |
+
6. **Urdu UD Treebank**:
|
| 362 |
+
- **Total IAA for dependency relations: 94.5%**
|
| 363 |
+
- **Weighted Kappa: 0.876**
|
| 364 |
+
- URL: https://link.springer.com/article/10.1007/s10579-022-09581-9
|
| 365 |
+
|
| 366 |
+
### Self-Consistency Targets
|
| 367 |
+
|
| 368 |
+
7. **Kappa Interpretation Scales**:
|
| 369 |
+
- **0.0-0.2**: Poor
|
| 370 |
+
- **0.2-0.4**: Fair
|
| 371 |
+
- **0.4-0.6**: Moderate
|
| 372 |
+
- **0.6-0.8**: Substantial
|
| 373 |
+
- **0.8-1.0**: Almost perfect
|
| 374 |
+
- **Threshold**: Coefficient close to **0.8 is considered reliable** for most ML projects
|
| 375 |
+
|
| 376 |
+
8. **Self-Consistency for Solo Annotators**:
|
| 377 |
+
- Re-annotate 5% of sentences blind → measure agreement with original annotation
|
| 378 |
+
- Target: **>95% self-consistency** (equivalent to Kappa ~0.90-0.95)
|
| 379 |
+
- This is what the UDD-1 plan proposes: "Re-annotate 5% blind every 200 sentences → target >95% self-consistency"
|
| 380 |
+
|
| 381 |
+
### Pre-annotation for Quality and Speed
|
| 382 |
+
|
| 383 |
+
9. **Penn Treebank Experience**:
|
| 384 |
+
- Pre-annotation using automatic parsers **increases speed and consistency** without reducing quality
|
| 385 |
+
- "Highly recommended to use in syntactic annotation projects"
|
| 386 |
+
|
| 387 |
+
**Assessment**:
|
| 388 |
+
- ✅ **Multiple annotators with IAA >90-95%** is the standard practice
|
| 389 |
+
- ⚠️ **Solo annotation is possible** but requires rigorous self-consistency checks (re-annotating 5-10% blind, targeting >95% agreement)
|
| 390 |
+
- ✅ **Pre-annotation is recommended** to improve both speed and consistency
|
| 391 |
+
|
| 392 |
+
**Recommendation for Solo Annotator QA**:
|
| 393 |
+
1. Re-annotate 5-10% of sentences blind every 200-300 sentences
|
| 394 |
+
2. Target **>95% self-consistency** (raw agreement) or **Kappa >0.90**
|
| 395 |
+
3. Use **pre-annotation** from automatic tools to improve consistency
|
| 396 |
+
4. Document **difficult cases** and iteratively refine guidelines
|
| 397 |
+
5. If possible, have a second expert annotator review a sample (10-20%) for external validation
|
| 398 |
+
|
| 399 |
+
**Sources**:
|
| 400 |
+
- [Vietnamese Treebank IAA Study](https://link.springer.com/article/10.1007/s10579-017-9398-3)
|
| 401 |
+
- [UD Vietnamese-VTB](https://universaldependencies.org/treebanks/vi_vtb/index.html)
|
| 402 |
+
- [Annotator Agreement Metrics](https://cleverx.com/blog/annotator-agreement-metrics-measuring-and-maintaining-annotation-quality-at-scale)
|
| 403 |
+
- [Penn Treebank Annotation Manual](https://catalog.ldc.upenn.edu/docs/LDC95T7/cl93.html)
|
| 404 |
+
|
| 405 |
+
---
|
| 406 |
+
|
| 407 |
+
## 8. Annotation Speed Estimates
|
| 408 |
+
|
| 409 |
+
**Claim**: "Annotation speed estimates: Are 50-100 sent/day for WS, 30-50 for POS, 15-30 for DP reasonable? What do other papers report?"
|
| 410 |
+
|
| 411 |
+
**Verification**: ⚠️ **MIXED - SOME ESTIMATES ARE OPTIMISTIC**
|
| 412 |
+
|
| 413 |
+
**Evidence**:
|
| 414 |
+
|
| 415 |
+
### 8.1. Word Segmentation (WS): 50-100 sent/day
|
| 416 |
+
|
| 417 |
+
**Claim**: 50-100 sentences/day for word segmentation
|
| 418 |
+
|
| 419 |
+
**Verification**: ⚠️ **OPTIMISTIC BUT POSSIBLY ACHIEVABLE WITH PRE-ANNOTATION**
|
| 420 |
+
|
| 421 |
+
**Evidence**:
|
| 422 |
+
- **No direct quantitative data** found for manual word segmentation annotation speed
|
| 423 |
+
- **Penn Treebank POS tagging** (analogous task): **750-1,500 words/hour** for experienced annotators
|
| 424 |
+
- Source: "Building a large annotated corpus of English: the Penn Treebank," *Computational Linguistics*, 1993
|
| 425 |
+
- URL: https://catalog.ldc.upenn.edu/docs/LDC95T7/cl93.html
|
| 426 |
+
- **Vietnamese sentence length**: ~20-30 syllables/sentence on average
|
| 427 |
+
- **Calculation**:
|
| 428 |
+
- 750 words/hour = **12.5 words/minute**
|
| 429 |
+
- At 25 syllables/sentence: **30 sentences/hour** = **240 sent/day** (8 hours)
|
| 430 |
+
- At 3 hours/day: **90 sentences/day**
|
| 431 |
+
- **With pre-annotation**: Speed likely **2-3x faster** (correction vs. annotation from scratch)
|
| 432 |
+
- Estimated: **100-200 sent/day** with pre-annotation
|
| 433 |
+
|
| 434 |
+
**Assessment**: ✅ **50-100 sent/day is ACHIEVABLE** for WS with pre-annotation (correcting CRF outputs). Without pre-annotation, closer to 30-50 sent/day.
|
| 435 |
+
|
| 436 |
+
### 8.2. POS Tagging: 30-50 sent/day
|
| 437 |
+
|
| 438 |
+
**Claim**: 30-50 sentences/day for POS tagging
|
| 439 |
+
|
| 440 |
+
**Verification**: ⚠️ **CONSERVATIVE, LIKELY FASTER WITH PRE-ANNOTATION**
|
| 441 |
+
|
| 442 |
+
**Evidence**:
|
| 443 |
+
- **Penn Treebank POS annotation**:
|
| 444 |
+
- **750-1,500 words/hour** for experienced annotators
|
| 445 |
+
- Source: https://catalog.ldc.upenn.edu/docs/LDC95T7/cl93.html
|
| 446 |
+
- **Calculation** (Vietnamese ~30 syllables/sent):
|
| 447 |
+
- 1,000 words/hour = **16.7 words/minute**
|
| 448 |
+
- At 30 syllables/sentence: **33 sentences/hour** = **264 sent/day** (8 hours)
|
| 449 |
+
- At 3 hours/day: **100 sentences/day**
|
| 450 |
+
|
| 451 |
+
**Assessment**: ⚠️ **30-50 sent/day is CONSERVATIVE**. With pre-annotation (automatic POS tagger), likely **80-150 sent/day** is achievable.
|
| 452 |
+
|
| 453 |
+
### 8.3. Dependency Parsing: 15-30 sent/day
|
| 454 |
+
|
| 455 |
+
**Claim**: 15-30 sentences/day for dependency parsing
|
| 456 |
+
|
| 457 |
+
**Verification**: ✅ **REASONABLE TO CONSERVATIVE**
|
| 458 |
+
|
| 459 |
+
**Evidence**:
|
| 460 |
+
|
| 461 |
+
1. **Penn Treebank Constituent Parsing** (with pre-annotation):
|
| 462 |
+
- **Partial automation reduced average annotation time from ~10 minutes to 1.5-2 minutes per sentence**
|
| 463 |
+
- Source: "Automation of Treebank Annotation," *CoNLL 1998*
|
| 464 |
+
- At 1.5 min/sent: **40 sent/hour** = **320 sent/day** (8 hours) or **120 sent/day** (3 hours)
|
| 465 |
+
|
| 466 |
+
2. **Dependency Treebank (Complex Tectogrammatical Layer)**:
|
| 467 |
+
- **6.5 minutes per sentence on average**
|
| 468 |
+
- Source: "Dependency Treebanks: Methods, Annotation Schemes and Tools"
|
| 469 |
+
- At 6.5 min/sent: **9.2 sent/hour** = **74 sent/day** (8 hours) or **28 sent/day** (3 hours)
|
| 470 |
+
|
| 471 |
+
3. **Without Pre-annotation**:
|
| 472 |
+
- Fully manual parsing: **10 minutes per sentence** (Penn Treebank, before automation)
|
| 473 |
+
- At 10 min/sent: **6 sent/hour** = **48 sent/day** (8 hours) or **18 sent/day** (3 hours)
|
| 474 |
+
|
| 475 |
+
4. **Active Learning Context** (UDD-1's case):
|
| 476 |
+
- AL selects **most uncertain/difficult sentences** → expect **slower than average**
|
| 477 |
+
- Pre-annotation from automatic parser available → **correction task, not annotation from scratch**
|
| 478 |
+
- Estimated range: **20-40 sent/day** (2-5 min/sent average, 3-4 hours/day)
|
| 479 |
+
|
| 480 |
+
**Assessment**: ✅ **15-30 sent/day is REASONABLE** for DP annotation in an AL context with pre-annotation. Conservative but realistic for difficult sentences.
|
| 481 |
+
|
| 482 |
+
### Summary Table: Annotation Speed
|
| 483 |
+
|
| 484 |
+
| Task | Claimed Rate (sent/day) | Literature Support | Assessment |
|
| 485 |
+
|------|------------------------:|-------------------|------------|
|
| 486 |
+
| **Word Segmentation** | 50-100 | 30-90 from scratch; 100-200 with pre-annotation | ✅ **Achievable with pre-annotation** |
|
| 487 |
+
| **POS Tagging** | 30-50 | 100-264 with pre-annotation | ⚠️ **Conservative; likely 80-150** |
|
| 488 |
+
| **Dependency Parsing** | 15-30 | 28-120 depending on complexity and pre-annotation | ✅ **Reasonable for difficult AL-selected sentences** |
|
| 489 |
+
|
| 490 |
+
**Overall Assessment**: The claimed rates are **conservative to reasonable**. With pre-annotation (which UDD-1 has), the upper ends of the ranges (or even higher) are achievable for experienced annotators. The estimates for DP are particularly reasonable given that AL selects difficult sentences.
|
| 491 |
+
|
| 492 |
+
**Sources**:
|
| 493 |
+
- [Building a Large Annotated Corpus of English: The Penn Treebank](https://catalog.ldc.upenn.edu/docs/LDC95T7/cl93.html)
|
| 494 |
+
- [Automation of Treebank Annotation](https://aclanthology.org/W98-1207/)
|
| 495 |
+
- [Dependency Treebanks: Methods and Tools](https://www.researchgate.net/publication/1960118_Dependency_Treebanks_Methods_Annotation_Schemes_and_Tools)
|
| 496 |
+
|
| 497 |
+
---
|
| 498 |
+
|
| 499 |
+
## 9. Overall Assessment of Paper Claims
|
| 500 |
+
|
| 501 |
+
### Claims That Are Accurate ✅
|
| 502 |
+
|
| 503 |
+
1. **Li et al. (2016): 40-60% arc reduction** ✅ Accurate
|
| 504 |
+
2. **Shi et al. (2021): ~20-30% sentence reduction with DPP** ✅ Accurate
|
| 505 |
+
3. **Zhang et al. (2023): Partial annotation + self-training** ✅ Accurate and SOTA
|
| 506 |
+
4. **CRF marginal uncertainty for WS** ✅ Standard practice (Settles & Craven, 2008)
|
| 507 |
+
5. **Head entropy for DP** ✅ State-of-the-art (Li et al., 2016)
|
| 508 |
+
6. **DPP for batch AL** ✅ Well-established (Shi et al., 2021)
|
| 509 |
+
7. **DP annotation speed: 15-30 sent/day** ✅ Reasonable
|
| 510 |
+
|
| 511 |
+
### Claims That Are Approximately Accurate ⚠️
|
| 512 |
+
|
| 513 |
+
1. **Hwa (2004): ~50% reduction** ⚠️ Approximately accurate (documented: 36%; related work: 60%)
|
| 514 |
+
2. **WS annotation speed: 50-100 sent/day** ⚠️ Achievable with pre-annotation (optimistic without)
|
| 515 |
+
3. **POS annotation speed: 30-50 sent/day** ⚠️ Conservative; likely faster (80-150)
|
| 516 |
+
4. **Solo annotator QA** ⚠️ Possible but not standard; requires rigorous self-consistency checks (>95%)
|
| 517 |
+
|
| 518 |
+
### Claims That Are Unsupported ❌
|
| 519 |
+
|
| 520 |
+
1. **Sequential/pipeline AL for WS → POS → DP** ❌ **NO PRIOR WORK** - this would be **novel**
|
| 521 |
+
|
| 522 |
+
---
|
| 523 |
+
|
| 524 |
+
## 10. Recommendations for Paper
|
| 525 |
+
|
| 526 |
+
### Strengthen Citations
|
| 527 |
+
1. **Hwa (2004)**: Cite specific result (36% reduction) or clarify "~50%" is approximate
|
| 528 |
+
2. **Sequential AL**: Acknowledge this is **novel** - no prior work exists on sequential multi-task AL pipelines
|
| 529 |
+
3. **Annotation speeds**: Cite Penn Treebank studies and acknowledge these are with pre-annotation
|
| 530 |
+
|
| 531 |
+
### Add Missing Citations
|
| 532 |
+
1. **Settles & Craven (2008)** for CRF marginal uncertainty in sequence labeling
|
| 533 |
+
2. **Sassano & Kurohashi (2010)** for sub-sentential AL in dependency parsing (complements Li et al., 2016)
|
| 534 |
+
3. **Penn Treebank annotation studies** for annotation speed estimates
|
| 535 |
+
|
| 536 |
+
### Highlight Novel Contributions
|
| 537 |
+
The paper should emphasize that:
|
| 538 |
+
1. ✨ **No prior work on sequential multi-task AL** (WS → POS → DP) - this is **novel**
|
| 539 |
+
2. ✨ **No prior work on Vietnamese AL for dependency parsing** - this is a **research gap**
|
| 540 |
+
3. ✨ Combining modern SOTA methods (DPP, partial annotation, self-training) in a **three-task pipeline** is **original**
|
| 541 |
+
|
| 542 |
+
### Quality Assurance
|
| 543 |
+
For solo annotation:
|
| 544 |
+
- Commit to **5-10% blind re-annotation** every 200-300 sentences
|
| 545 |
+
- Target **>95% self-consistency** (Kappa >0.90)
|
| 546 |
+
- Document difficult cases and guideline evolution
|
| 547 |
+
- If possible, external validation on 10-20% sample
|
| 548 |
+
|
| 549 |
+
---
|
| 550 |
+
|
| 551 |
+
## References & Sources
|
| 552 |
+
|
| 553 |
+
### Active Learning for Dependency Parsing
|
| 554 |
+
- [Sample Selection for Statistical Parsing (Hwa, 2004)](https://direct.mit.edu/coli/article/30/3/253/1841/Sample-Selection-for-Statistical-Parsing)
|
| 555 |
+
- [Active Learning for Dependency Parsing with Partial Annotation (Li et al., 2016)](https://aclanthology.org/P16-1033/)
|
| 556 |
+
- [Diversity-Aware Batch Active Learning for Dependency Parsing (Shi et al., 2021)](https://aclanthology.org/2021.naacl-main.207/)
|
| 557 |
+
- [Data-efficient Active Learning for Structured Prediction (Zhang et al., 2023)](https://aclanthology.org/2023.findings-emnlp.865/)
|
| 558 |
+
|
| 559 |
+
### Active Learning for Sequence Labeling
|
| 560 |
+
- [An Analysis of Active Learning Strategies for Sequence Labeling Tasks (Settles & Craven, 2008)](https://aclanthology.org/D08-1112/)
|
| 561 |
+
- [LTP: A New Active Learning Strategy for CRF-Based NER (2021)](https://link.springer.com/article/10.1007/s11063-021-10737-x)
|
| 562 |
+
|
| 563 |
+
### DPP and Batch Active Learning
|
| 564 |
+
- [Batch Active Learning Using Determinantal Point Processes (2019)](https://arxiv.org/abs/1906.07975)
|
| 565 |
+
- [BADGE: Deep Batch Active Learning (ICLR 2020)](https://arxiv.org/abs/1906.03671)
|
| 566 |
+
|
| 567 |
+
### Treebank Annotation
|
| 568 |
+
- [Building a Large Annotated Corpus of English: The Penn Treebank (1993)](https://catalog.ldc.upenn.edu/docs/LDC95T7/cl93.html)
|
| 569 |
+
- [Ensuring annotation consistency and accuracy for Vietnamese treebank (2017)](https://link.springer.com/article/10.1007/s10579-017-9398-3)
|
| 570 |
+
- [UD Vietnamese-VTB](https://universaldependencies.org/treebanks/vi_vtb/index.html)
|
| 571 |
+
- [Automation of Treebank Annotation (1998)](https://aclanthology.org/W98-1207/)
|
| 572 |
+
|
| 573 |
+
### Multi-Task and Pipeline Learning
|
| 574 |
+
- [Multi-Task Learning in Natural Language Processing Survey (2021)](https://arxiv.org/abs/2109.09138)
|
| 575 |
+
- [Tackling Error Propagation through Reinforcement Learning (2017)](https://aclanthology.org/E17-1064/)
|
| 576 |
+
- [Multi-task Active Learning for Pre-trained Transformers (TACL 2022)](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00515/113664/)
|
| 577 |
+
|
| 578 |
+
### Vietnamese NLP
|
| 579 |
+
- [BKTreebank: Building a Vietnamese Dependency Treebank (2018)](https://aclanthology.org/L18-1341/)
|
| 580 |
+
- [VnCoreNLP: A Vietnamese NLP Toolkit (2018)](https://aclanthology.org/N18-5012/)
|
| 581 |
+
|
| 582 |
+
---
|
| 583 |
+
|
| 584 |
+
## Conclusion
|
| 585 |
+
|
| 586 |
+
The proposed three-task active learning pipeline for Vietnamese makes **generally accurate claims** about prior work in active learning for NLP annotation. The cost reduction percentages, query strategies, and methodologies cited are well-supported by the literature. However:
|
| 587 |
+
|
| 588 |
+
1. **Sequential/pipeline AL is novel**: There is no prior work on active learning specifically for sequential multi-task NLP pipelines (WS → POS → DP). This should be highlighted as a **novel contribution**.
|
| 589 |
+
|
| 590 |
+
2. **Annotation speed estimates are reasonable**: The claimed rates (50-100 for WS, 30-50 for POS, 15-30 for DP) are conservative to achievable, especially with pre-annotation.
|
| 591 |
+
|
| 592 |
+
3. **Solo annotator QA requires rigor**: While possible, solo annotation is not standard practice. Rigorous self-consistency checks (5-10% blind re-annotation, >95% agreement) are essential.
|
| 593 |
+
|
| 594 |
+
4. **Citation improvements needed**: Some claims (e.g., Hwa 2004's "~50%") should be more precisely cited, and foundational work (Settles & Craven 2008) should be added.
|
| 595 |
+
|
| 596 |
+
**Overall**: The paper's technical foundation is **solid and well-grounded** in the state-of-the-art active learning literature. The approach is **methodologically sound** and represents a **meaningful contribution** to Vietnamese NLP and low-resource treebank construction.
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
404: Not Found
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# /// script
|
| 2 |
# requires-python = ">=3.9"
|
| 3 |
-
# dependencies = ["
|
| 4 |
# ///
|
| 5 |
"""Active Learning Cycle 0: Score word segmentation uncertainty on dev+test.
|
| 6 |
|
|
|
|
| 1 |
# /// script
|
| 2 |
# requires-python = ">=3.9"
|
| 3 |
+
# dependencies = ["python-crfsuite"]
|
| 4 |
# ///
|
| 5 |
"""Active Learning Cycle 0: Score word segmentation uncertainty on dev+test.
|
| 6 |
|
|
@@ -1,403 +0,0 @@
|
|
| 1 |
-
# /// script
|
| 2 |
-
# requires-python = ">=3.9"
|
| 3 |
-
# dependencies = []
|
| 4 |
-
# ///
|
| 5 |
-
"""Generate dictionary plugin files for Label Studio frontend JS injection.
|
| 6 |
-
|
| 7 |
-
Produces three outputs:
|
| 8 |
-
1. dict_data.json — sorted NFC-normalized dictionary entries as a JSON array
|
| 9 |
-
2. dict_plugin.js — floating search panel + auto-lookup on region select
|
| 10 |
-
3. Patches base.html — adds <script> tag in the {% block bottomjs %} block
|
| 11 |
-
|
| 12 |
-
The JS plugin:
|
| 13 |
-
- Loads dictionary via fetch("/static/dict_data.json") into a Set for O(1) lookup
|
| 14 |
-
- Creates a fixed-position search panel at bottom-right (toggle with 'd' key)
|
| 15 |
-
- Auto-fills search from selected annotation region via Htx.annotationStore polling
|
| 16 |
-
- Only activates on annotation pages (checks window.APP_SETTINGS)
|
| 17 |
-
|
| 18 |
-
Usage:
|
| 19 |
-
uv run src/build_dict_plugin.py --dict path/to/dictionary.txt
|
| 20 |
-
uv run src/build_dict_plugin.py --deploy # also deploys to LS static/templates
|
| 21 |
-
"""
|
| 22 |
-
|
| 23 |
-
import argparse
|
| 24 |
-
import json
|
| 25 |
-
import re
|
| 26 |
-
import unicodedata
|
| 27 |
-
from pathlib import Path
|
| 28 |
-
|
| 29 |
-
DEFAULT_DICT = (
|
| 30 |
-
"/home/claude-code/projects/workspace_underthesea/tree-1/"
|
| 31 |
-
"models/word_segmentation/udd_ws_v1_1-20260211_034002/dictionary.txt"
|
| 32 |
-
)
|
| 33 |
-
|
| 34 |
-
LS_INSTALL_DIRS = [
|
| 35 |
-
Path("/home/claude-code/.local/share/uv/tools/label-studio/"
|
| 36 |
-
"lib/python3.12/site-packages/label_studio"),
|
| 37 |
-
Path("/home/claude-code/projects/workspace_underthesea/label-studio/.venv/"
|
| 38 |
-
"lib/python3.12/site-packages/label_studio"),
|
| 39 |
-
]
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
def nfc(text):
|
| 43 |
-
return unicodedata.normalize("NFC", text)
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
def load_dictionary(dict_path):
|
| 47 |
-
entries = []
|
| 48 |
-
with open(dict_path, encoding="utf-8") as f:
|
| 49 |
-
for line in f:
|
| 50 |
-
line = line.strip()
|
| 51 |
-
if line:
|
| 52 |
-
entries.append(nfc(line))
|
| 53 |
-
entries.sort()
|
| 54 |
-
return entries
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
def build_dict_data_json(entries):
|
| 58 |
-
return json.dumps(entries, ensure_ascii=False)
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
def build_dict_plugin_js():
|
| 62 |
-
return r"""(function() {
|
| 63 |
-
"use strict";
|
| 64 |
-
|
| 65 |
-
// Only activate on annotation pages
|
| 66 |
-
if (!window.APP_SETTINGS || !window.APP_SETTINGS.project) return;
|
| 67 |
-
|
| 68 |
-
var DICT_SET = null;
|
| 69 |
-
var DICT_LOWER = null;
|
| 70 |
-
var dictLoaded = false;
|
| 71 |
-
|
| 72 |
-
// Load dictionary
|
| 73 |
-
fetch("/static/dict_data.json")
|
| 74 |
-
.then(function(r) { return r.json(); })
|
| 75 |
-
.then(function(entries) {
|
| 76 |
-
DICT_LOWER = entries.map(function(e) { return e.toLowerCase(); });
|
| 77 |
-
DICT_SET = new Set(DICT_LOWER);
|
| 78 |
-
dictLoaded = true;
|
| 79 |
-
if (countEl) countEl.textContent = entries.length.toLocaleString() + " entries";
|
| 80 |
-
console.log("[dict-plugin] Loaded " + entries.length + " dictionary entries");
|
| 81 |
-
})
|
| 82 |
-
.catch(function(err) {
|
| 83 |
-
console.error("[dict-plugin] Failed to load dictionary:", err);
|
| 84 |
-
});
|
| 85 |
-
|
| 86 |
-
// --- Create floating panel ---
|
| 87 |
-
var panel = document.createElement("div");
|
| 88 |
-
panel.id = "dict-plugin-panel";
|
| 89 |
-
panel.innerHTML = [
|
| 90 |
-
'<div class="dp-header">',
|
| 91 |
-
' <span class="dp-title">Dictionary</span>',
|
| 92 |
-
' <span class="dp-status" id="dp-status"></span>',
|
| 93 |
-
' <span class="dp-count" id="dp-count"></span>',
|
| 94 |
-
' <button class="dp-close" id="dp-close" title="Close (d)">×</button>',
|
| 95 |
-
'</div>',
|
| 96 |
-
'<div class="dp-search">',
|
| 97 |
-
' <input type="text" id="dp-input" placeholder="Search dictionary..." autocomplete="off">',
|
| 98 |
-
'</div>',
|
| 99 |
-
'<div class="dp-results" id="dp-results"></div>'
|
| 100 |
-
].join("\n");
|
| 101 |
-
document.body.appendChild(panel);
|
| 102 |
-
|
| 103 |
-
// --- Styles ---
|
| 104 |
-
var style = document.createElement("style");
|
| 105 |
-
style.textContent = [
|
| 106 |
-
'#dict-plugin-panel {',
|
| 107 |
-
' position: fixed; bottom: 16px; right: 16px; width: 340px;',
|
| 108 |
-
' background: #fff; border: 1px solid #ccc; border-radius: 8px;',
|
| 109 |
-
' box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 10000;',
|
| 110 |
-
' font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;',
|
| 111 |
-
' font-size: 14px; display: flex; flex-direction: column;',
|
| 112 |
-
' max-height: 400px; overflow: hidden;',
|
| 113 |
-
'}',
|
| 114 |
-
'#dict-plugin-panel.dp-hidden { display: none; }',
|
| 115 |
-
'.dp-header {',
|
| 116 |
-
' display: flex; align-items: center; padding: 8px 12px;',
|
| 117 |
-
' border-bottom: 1px solid #eee; gap: 8px;',
|
| 118 |
-
'}',
|
| 119 |
-
'.dp-title { font-weight: 600; font-size: 13px; }',
|
| 120 |
-
'.dp-status {',
|
| 121 |
-
' font-size: 12px; padding: 1px 6px; border-radius: 3px;',
|
| 122 |
-
' white-space: nowrap;',
|
| 123 |
-
'}',
|
| 124 |
-
'.dp-status.in-dict { background: #c8e6c9; color: #2e7d32; }',
|
| 125 |
-
'.dp-status.not-dict { background: #ffcdd2; color: #c62828; }',
|
| 126 |
-
'.dp-count { font-size: 11px; color: #999; margin-left: auto; }',
|
| 127 |
-
'.dp-close {',
|
| 128 |
-
' background: none; border: none; font-size: 18px; cursor: pointer;',
|
| 129 |
-
' color: #999; padding: 0 4px; line-height: 1;',
|
| 130 |
-
'}',
|
| 131 |
-
'.dp-close:hover { color: #333; }',
|
| 132 |
-
'.dp-search { padding: 8px 12px; }',
|
| 133 |
-
'.dp-search input {',
|
| 134 |
-
' width: 100%; padding: 6px 10px; font-size: 14px;',
|
| 135 |
-
' border: 1px solid #ddd; border-radius: 4px; outline: none;',
|
| 136 |
-
' box-sizing: border-box;',
|
| 137 |
-
'}',
|
| 138 |
-
'.dp-search input:focus { border-color: #4CAF50; }',
|
| 139 |
-
'.dp-results {',
|
| 140 |
-
' padding: 4px 12px 8px; overflow-y: auto; max-height: 260px;',
|
| 141 |
-
'}',
|
| 142 |
-
'.dp-section { padding: 2px 0; }',
|
| 143 |
-
'.dp-section-title {',
|
| 144 |
-
' font-size: 11px; font-weight: 600; color: #888;',
|
| 145 |
-
' text-transform: uppercase; padding: 2px 0;',
|
| 146 |
-
'}',
|
| 147 |
-
'.dp-match { padding: 1px 0; font-size: 13px; }',
|
| 148 |
-
'.dp-match.exact { font-weight: 600; color: #2e7d32; }',
|
| 149 |
-
'.dp-match mark { background: #fff9c4; padding: 0 1px; border-radius: 2px; }',
|
| 150 |
-
'.dp-no-results { color: #999; padding: 4px 0; font-size: 13px; }'
|
| 151 |
-
].join("\n");
|
| 152 |
-
document.head.appendChild(style);
|
| 153 |
-
|
| 154 |
-
var input = document.getElementById("dp-input");
|
| 155 |
-
var resultsDiv = document.getElementById("dp-results");
|
| 156 |
-
var statusEl = document.getElementById("dp-status");
|
| 157 |
-
var countEl = document.getElementById("dp-count");
|
| 158 |
-
var closeBtn = document.getElementById("dp-close");
|
| 159 |
-
|
| 160 |
-
// --- Toggle visibility ---
|
| 161 |
-
var visible = true;
|
| 162 |
-
function togglePanel() {
|
| 163 |
-
visible = !visible;
|
| 164 |
-
panel.classList.toggle("dp-hidden", !visible);
|
| 165 |
-
if (visible) input.focus();
|
| 166 |
-
}
|
| 167 |
-
closeBtn.addEventListener("click", togglePanel);
|
| 168 |
-
|
| 169 |
-
// Keyboard shortcut: 'd' to toggle (only when not typing in an input)
|
| 170 |
-
document.addEventListener("keydown", function(e) {
|
| 171 |
-
if (e.key === "d" && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
| 172 |
-
var tag = (e.target.tagName || "").toLowerCase();
|
| 173 |
-
if (tag !== "input" && tag !== "textarea" && !e.target.isContentEditable) {
|
| 174 |
-
e.preventDefault();
|
| 175 |
-
togglePanel();
|
| 176 |
-
}
|
| 177 |
-
}
|
| 178 |
-
});
|
| 179 |
-
|
| 180 |
-
// --- Search with debounce ---
|
| 181 |
-
var debounceTimer;
|
| 182 |
-
input.addEventListener("input", function() {
|
| 183 |
-
clearTimeout(debounceTimer);
|
| 184 |
-
debounceTimer = setTimeout(doSearch, 150);
|
| 185 |
-
});
|
| 186 |
-
|
| 187 |
-
function escHtml(s) {
|
| 188 |
-
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 189 |
-
}
|
| 190 |
-
|
| 191 |
-
function highlight(text, query) {
|
| 192 |
-
var idx = text.toLowerCase().indexOf(query);
|
| 193 |
-
if (idx < 0) return escHtml(text);
|
| 194 |
-
return escHtml(text.slice(0, idx)) + "<mark>" +
|
| 195 |
-
escHtml(text.slice(idx, idx + query.length)) + "</mark>" +
|
| 196 |
-
escHtml(text.slice(idx + query.length));
|
| 197 |
-
}
|
| 198 |
-
|
| 199 |
-
function doSearch() {
|
| 200 |
-
if (!dictLoaded) return;
|
| 201 |
-
var q = input.value.trim().toLowerCase();
|
| 202 |
-
if (!q) { resultsDiv.innerHTML = ""; updateStatus(q); return; }
|
| 203 |
-
|
| 204 |
-
updateStatus(q);
|
| 205 |
-
|
| 206 |
-
var exact = [], prefix = [], substring = [];
|
| 207 |
-
var MAX = 20;
|
| 208 |
-
for (var i = 0; i < DICT_LOWER.length; i++) {
|
| 209 |
-
var e = DICT_LOWER[i];
|
| 210 |
-
if (e === q) exact.push(i);
|
| 211 |
-
else if (e.startsWith(q)) { if (prefix.length < MAX) prefix.push(i); }
|
| 212 |
-
else if (e.indexOf(q) >= 0) { if (substring.length < MAX) substring.push(i); }
|
| 213 |
-
if (prefix.length >= MAX && substring.length >= MAX && exact.length > 0) break;
|
| 214 |
-
}
|
| 215 |
-
|
| 216 |
-
var h = "";
|
| 217 |
-
if (exact.length > 0) {
|
| 218 |
-
h += '<div class="dp-section"><div class="dp-section-title">Exact</div>';
|
| 219 |
-
for (var j = 0; j < exact.length; j++)
|
| 220 |
-
h += '<div class="dp-match exact">' + highlight(DICT_LOWER[exact[j]], q) + '</div>';
|
| 221 |
-
h += '</div>';
|
| 222 |
-
}
|
| 223 |
-
if (prefix.length > 0) {
|
| 224 |
-
h += '<div class="dp-section"><div class="dp-section-title">Prefix (' + prefix.length + ')</div>';
|
| 225 |
-
for (var j = 0; j < prefix.length; j++)
|
| 226 |
-
h += '<div class="dp-match">' + highlight(DICT_LOWER[prefix[j]], q) + '</div>';
|
| 227 |
-
h += '</div>';
|
| 228 |
-
}
|
| 229 |
-
if (substring.length > 0) {
|
| 230 |
-
h += '<div class="dp-section"><div class="dp-section-title">Contains (' + substring.length + ')</div>';
|
| 231 |
-
for (var j = 0; j < substring.length; j++)
|
| 232 |
-
h += '<div class="dp-match">' + highlight(DICT_LOWER[substring[j]], q) + '</div>';
|
| 233 |
-
h += '</div>';
|
| 234 |
-
}
|
| 235 |
-
if (!h) h = '<div class="dp-no-results">No matches</div>';
|
| 236 |
-
resultsDiv.innerHTML = h;
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
function updateStatus(query) {
|
| 240 |
-
if (!query || !DICT_SET) {
|
| 241 |
-
statusEl.textContent = "";
|
| 242 |
-
statusEl.className = "dp-status";
|
| 243 |
-
return;
|
| 244 |
-
}
|
| 245 |
-
if (DICT_SET.has(query)) {
|
| 246 |
-
statusEl.textContent = "\u2713 in dict";
|
| 247 |
-
statusEl.className = "dp-status in-dict";
|
| 248 |
-
} else {
|
| 249 |
-
statusEl.textContent = "\u2717 not found";
|
| 250 |
-
statusEl.className = "dp-status not-dict";
|
| 251 |
-
}
|
| 252 |
-
}
|
| 253 |
-
|
| 254 |
-
// --- Auto-lookup on region select ---
|
| 255 |
-
var lastRegionText = "";
|
| 256 |
-
setInterval(function() {
|
| 257 |
-
if (!dictLoaded || !visible) return;
|
| 258 |
-
try {
|
| 259 |
-
var store = window.Htx && window.Htx.annotationStore;
|
| 260 |
-
if (!store) return;
|
| 261 |
-
var sel = store.selected;
|
| 262 |
-
if (!sel) return;
|
| 263 |
-
var regions = sel.regionStore && sel.regionStore.regions;
|
| 264 |
-
if (!regions) return;
|
| 265 |
-
|
| 266 |
-
// Find selected region
|
| 267 |
-
var selectedRegion = null;
|
| 268 |
-
for (var i = 0; i < regions.length; i++) {
|
| 269 |
-
if (regions[i].selected) { selectedRegion = regions[i]; break; }
|
| 270 |
-
}
|
| 271 |
-
if (!selectedRegion) {
|
| 272 |
-
if (lastRegionText) { lastRegionText = ""; }
|
| 273 |
-
return;
|
| 274 |
-
}
|
| 275 |
-
|
| 276 |
-
var text = selectedRegion.text || "";
|
| 277 |
-
if (text && text !== lastRegionText) {
|
| 278 |
-
lastRegionText = text;
|
| 279 |
-
input.value = text;
|
| 280 |
-
doSearch();
|
| 281 |
-
}
|
| 282 |
-
} catch(e) {
|
| 283 |
-
// Silently ignore — store structure may vary
|
| 284 |
-
}
|
| 285 |
-
}, 300);
|
| 286 |
-
})();
|
| 287 |
-
"""
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
def patch_base_html(base_html_path):
|
| 291 |
-
"""Patch base.html to include dict_plugin.js in the bottomjs block.
|
| 292 |
-
|
| 293 |
-
Adds <script src="/static/dict_plugin.js"></script> before {% endblock %}
|
| 294 |
-
in the bottomjs block. Idempotent — skips if already patched.
|
| 295 |
-
"""
|
| 296 |
-
content = base_html_path.read_text(encoding="utf-8")
|
| 297 |
-
|
| 298 |
-
script_tag = '<script src="/static/dict_plugin.js"></script>'
|
| 299 |
-
if script_tag in content:
|
| 300 |
-
print(f" Already patched: {base_html_path}")
|
| 301 |
-
return False
|
| 302 |
-
|
| 303 |
-
# Find {% endblock %} that closes {% block bottomjs %}
|
| 304 |
-
# Insert the script tag before the last {% endblock %} in the file
|
| 305 |
-
pattern = r'([ \t]*)({% endblock %})\s*$'
|
| 306 |
-
match = list(re.finditer(pattern, content, re.MULTILINE))
|
| 307 |
-
if not match:
|
| 308 |
-
print(f" WARNING: Could not find {{% endblock %}} in {base_html_path}")
|
| 309 |
-
return False
|
| 310 |
-
|
| 311 |
-
# Use the last match (the bottomjs endblock is at the end of the file)
|
| 312 |
-
m = match[-1]
|
| 313 |
-
indent = m.group(1)
|
| 314 |
-
insert_pos = m.start()
|
| 315 |
-
patched = content[:insert_pos] + indent + script_tag + "\n" + content[insert_pos:]
|
| 316 |
-
|
| 317 |
-
base_html_path.write_text(patched, encoding="utf-8")
|
| 318 |
-
print(f" Patched: {base_html_path}")
|
| 319 |
-
return True
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
def main():
|
| 323 |
-
parser = argparse.ArgumentParser(
|
| 324 |
-
description="Generate dictionary plugin for Label Studio (JS injection)"
|
| 325 |
-
)
|
| 326 |
-
parser.add_argument(
|
| 327 |
-
"--dict",
|
| 328 |
-
default=DEFAULT_DICT,
|
| 329 |
-
help=f"Path to dictionary.txt (default: {DEFAULT_DICT})",
|
| 330 |
-
)
|
| 331 |
-
parser.add_argument(
|
| 332 |
-
"--output-dir",
|
| 333 |
-
default="src",
|
| 334 |
-
help="Output directory for generated files (default: src)",
|
| 335 |
-
)
|
| 336 |
-
parser.add_argument(
|
| 337 |
-
"--deploy",
|
| 338 |
-
action="store_true",
|
| 339 |
-
help="Deploy to LS static_build + patch base.html",
|
| 340 |
-
)
|
| 341 |
-
args = parser.parse_args()
|
| 342 |
-
|
| 343 |
-
dict_path = Path(args.dict)
|
| 344 |
-
if not dict_path.exists():
|
| 345 |
-
print(f"ERROR: {dict_path} not found")
|
| 346 |
-
return
|
| 347 |
-
|
| 348 |
-
# Load dictionary
|
| 349 |
-
entries = load_dictionary(dict_path)
|
| 350 |
-
print(f"Loaded {len(entries)} dictionary entries from {dict_path}")
|
| 351 |
-
|
| 352 |
-
# Generate dict_data.json
|
| 353 |
-
output_dir = Path(args.output_dir)
|
| 354 |
-
output_dir.mkdir(parents=True, exist_ok=True)
|
| 355 |
-
|
| 356 |
-
json_path = output_dir / "dict_data.json"
|
| 357 |
-
json_content = build_dict_data_json(entries)
|
| 358 |
-
json_path.write_text(json_content, encoding="utf-8")
|
| 359 |
-
json_kb = json_path.stat().st_size / 1024
|
| 360 |
-
print(f"Written {json_path} ({json_kb:.0f} KB, {len(entries)} entries)")
|
| 361 |
-
|
| 362 |
-
# Generate dict_plugin.js
|
| 363 |
-
js_path = output_dir / "dict_plugin.js"
|
| 364 |
-
js_content = build_dict_plugin_js()
|
| 365 |
-
js_path.write_text(js_content, encoding="utf-8")
|
| 366 |
-
js_kb = js_path.stat().st_size / 1024
|
| 367 |
-
print(f"Written {js_path} ({js_kb:.0f} KB)")
|
| 368 |
-
|
| 369 |
-
# Deploy
|
| 370 |
-
if args.deploy:
|
| 371 |
-
import shutil
|
| 372 |
-
print("\nDeploying to Label Studio installations:")
|
| 373 |
-
for ls_dir in LS_INSTALL_DIRS:
|
| 374 |
-
static_dir = ls_dir / "core" / "static_build"
|
| 375 |
-
templates_dir = ls_dir / "templates"
|
| 376 |
-
|
| 377 |
-
if not static_dir.exists():
|
| 378 |
-
print(f" SKIP: {static_dir} not found")
|
| 379 |
-
continue
|
| 380 |
-
|
| 381 |
-
# Copy dict_data.json and dict_plugin.js to static_build
|
| 382 |
-
shutil.copy2(json_path, static_dir / "dict_data.json")
|
| 383 |
-
print(f" Deployed dict_data.json -> {static_dir}")
|
| 384 |
-
|
| 385 |
-
shutil.copy2(js_path, static_dir / "dict_plugin.js")
|
| 386 |
-
print(f" Deployed dict_plugin.js -> {static_dir}")
|
| 387 |
-
|
| 388 |
-
# Remove old dict_plugin.html if it exists
|
| 389 |
-
old_html = static_dir / "dict_plugin.html"
|
| 390 |
-
if old_html.exists():
|
| 391 |
-
old_html.unlink()
|
| 392 |
-
print(f" Removed old dict_plugin.html")
|
| 393 |
-
|
| 394 |
-
# Patch base.html
|
| 395 |
-
base_html = templates_dir / "base.html"
|
| 396 |
-
if base_html.exists():
|
| 397 |
-
patch_base_html(base_html)
|
| 398 |
-
else:
|
| 399 |
-
print(f" WARNING: {base_html} not found")
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
if __name__ == "__main__":
|
| 403 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -1,225 +0,0 @@
|
|
| 1 |
-
(function() {
|
| 2 |
-
"use strict";
|
| 3 |
-
|
| 4 |
-
// Only activate on annotation pages
|
| 5 |
-
if (!window.APP_SETTINGS || !window.APP_SETTINGS.project) return;
|
| 6 |
-
|
| 7 |
-
var DICT_SET = null;
|
| 8 |
-
var DICT_LOWER = null;
|
| 9 |
-
var dictLoaded = false;
|
| 10 |
-
|
| 11 |
-
// Load dictionary
|
| 12 |
-
fetch("/static/dict_data.json")
|
| 13 |
-
.then(function(r) { return r.json(); })
|
| 14 |
-
.then(function(entries) {
|
| 15 |
-
DICT_LOWER = entries.map(function(e) { return e.toLowerCase(); });
|
| 16 |
-
DICT_SET = new Set(DICT_LOWER);
|
| 17 |
-
dictLoaded = true;
|
| 18 |
-
if (countEl) countEl.textContent = entries.length.toLocaleString() + " entries";
|
| 19 |
-
console.log("[dict-plugin] Loaded " + entries.length + " dictionary entries");
|
| 20 |
-
})
|
| 21 |
-
.catch(function(err) {
|
| 22 |
-
console.error("[dict-plugin] Failed to load dictionary:", err);
|
| 23 |
-
});
|
| 24 |
-
|
| 25 |
-
// --- Create floating panel ---
|
| 26 |
-
var panel = document.createElement("div");
|
| 27 |
-
panel.id = "dict-plugin-panel";
|
| 28 |
-
panel.innerHTML = [
|
| 29 |
-
'<div class="dp-header">',
|
| 30 |
-
' <span class="dp-title">Dictionary</span>',
|
| 31 |
-
' <span class="dp-status" id="dp-status"></span>',
|
| 32 |
-
' <span class="dp-count" id="dp-count"></span>',
|
| 33 |
-
' <button class="dp-close" id="dp-close" title="Close (d)">×</button>',
|
| 34 |
-
'</div>',
|
| 35 |
-
'<div class="dp-search">',
|
| 36 |
-
' <input type="text" id="dp-input" placeholder="Search dictionary..." autocomplete="off">',
|
| 37 |
-
'</div>',
|
| 38 |
-
'<div class="dp-results" id="dp-results"></div>'
|
| 39 |
-
].join("\n");
|
| 40 |
-
document.body.appendChild(panel);
|
| 41 |
-
|
| 42 |
-
// --- Styles ---
|
| 43 |
-
var style = document.createElement("style");
|
| 44 |
-
style.textContent = [
|
| 45 |
-
'#dict-plugin-panel {',
|
| 46 |
-
' position: fixed; bottom: 16px; right: 16px; width: 340px;',
|
| 47 |
-
' background: #fff; border: 1px solid #ccc; border-radius: 8px;',
|
| 48 |
-
' box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 10000;',
|
| 49 |
-
' font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;',
|
| 50 |
-
' font-size: 14px; display: flex; flex-direction: column;',
|
| 51 |
-
' max-height: 400px; overflow: hidden;',
|
| 52 |
-
'}',
|
| 53 |
-
'#dict-plugin-panel.dp-hidden { display: none; }',
|
| 54 |
-
'.dp-header {',
|
| 55 |
-
' display: flex; align-items: center; padding: 8px 12px;',
|
| 56 |
-
' border-bottom: 1px solid #eee; gap: 8px;',
|
| 57 |
-
'}',
|
| 58 |
-
'.dp-title { font-weight: 600; font-size: 13px; }',
|
| 59 |
-
'.dp-status {',
|
| 60 |
-
' font-size: 12px; padding: 1px 6px; border-radius: 3px;',
|
| 61 |
-
' white-space: nowrap;',
|
| 62 |
-
'}',
|
| 63 |
-
'.dp-status.in-dict { background: #c8e6c9; color: #2e7d32; }',
|
| 64 |
-
'.dp-status.not-dict { background: #ffcdd2; color: #c62828; }',
|
| 65 |
-
'.dp-count { font-size: 11px; color: #999; margin-left: auto; }',
|
| 66 |
-
'.dp-close {',
|
| 67 |
-
' background: none; border: none; font-size: 18px; cursor: pointer;',
|
| 68 |
-
' color: #999; padding: 0 4px; line-height: 1;',
|
| 69 |
-
'}',
|
| 70 |
-
'.dp-close:hover { color: #333; }',
|
| 71 |
-
'.dp-search { padding: 8px 12px; }',
|
| 72 |
-
'.dp-search input {',
|
| 73 |
-
' width: 100%; padding: 6px 10px; font-size: 14px;',
|
| 74 |
-
' border: 1px solid #ddd; border-radius: 4px; outline: none;',
|
| 75 |
-
' box-sizing: border-box;',
|
| 76 |
-
'}',
|
| 77 |
-
'.dp-search input:focus { border-color: #4CAF50; }',
|
| 78 |
-
'.dp-results {',
|
| 79 |
-
' padding: 4px 12px 8px; overflow-y: auto; max-height: 260px;',
|
| 80 |
-
'}',
|
| 81 |
-
'.dp-section { padding: 2px 0; }',
|
| 82 |
-
'.dp-section-title {',
|
| 83 |
-
' font-size: 11px; font-weight: 600; color: #888;',
|
| 84 |
-
' text-transform: uppercase; padding: 2px 0;',
|
| 85 |
-
'}',
|
| 86 |
-
'.dp-match { padding: 1px 0; font-size: 13px; }',
|
| 87 |
-
'.dp-match.exact { font-weight: 600; color: #2e7d32; }',
|
| 88 |
-
'.dp-match mark { background: #fff9c4; padding: 0 1px; border-radius: 2px; }',
|
| 89 |
-
'.dp-no-results { color: #999; padding: 4px 0; font-size: 13px; }'
|
| 90 |
-
].join("\n");
|
| 91 |
-
document.head.appendChild(style);
|
| 92 |
-
|
| 93 |
-
var input = document.getElementById("dp-input");
|
| 94 |
-
var resultsDiv = document.getElementById("dp-results");
|
| 95 |
-
var statusEl = document.getElementById("dp-status");
|
| 96 |
-
var countEl = document.getElementById("dp-count");
|
| 97 |
-
var closeBtn = document.getElementById("dp-close");
|
| 98 |
-
|
| 99 |
-
// --- Toggle visibility ---
|
| 100 |
-
var visible = true;
|
| 101 |
-
function togglePanel() {
|
| 102 |
-
visible = !visible;
|
| 103 |
-
panel.classList.toggle("dp-hidden", !visible);
|
| 104 |
-
if (visible) input.focus();
|
| 105 |
-
}
|
| 106 |
-
closeBtn.addEventListener("click", togglePanel);
|
| 107 |
-
|
| 108 |
-
// Keyboard shortcut: 'd' to toggle (only when not typing in an input)
|
| 109 |
-
document.addEventListener("keydown", function(e) {
|
| 110 |
-
if (e.key === "d" && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
| 111 |
-
var tag = (e.target.tagName || "").toLowerCase();
|
| 112 |
-
if (tag !== "input" && tag !== "textarea" && !e.target.isContentEditable) {
|
| 113 |
-
e.preventDefault();
|
| 114 |
-
togglePanel();
|
| 115 |
-
}
|
| 116 |
-
}
|
| 117 |
-
});
|
| 118 |
-
|
| 119 |
-
// --- Search with debounce ---
|
| 120 |
-
var debounceTimer;
|
| 121 |
-
input.addEventListener("input", function() {
|
| 122 |
-
clearTimeout(debounceTimer);
|
| 123 |
-
debounceTimer = setTimeout(doSearch, 150);
|
| 124 |
-
});
|
| 125 |
-
|
| 126 |
-
function escHtml(s) {
|
| 127 |
-
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 128 |
-
}
|
| 129 |
-
|
| 130 |
-
function highlight(text, query) {
|
| 131 |
-
var idx = text.toLowerCase().indexOf(query);
|
| 132 |
-
if (idx < 0) return escHtml(text);
|
| 133 |
-
return escHtml(text.slice(0, idx)) + "<mark>" +
|
| 134 |
-
escHtml(text.slice(idx, idx + query.length)) + "</mark>" +
|
| 135 |
-
escHtml(text.slice(idx + query.length));
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
function doSearch() {
|
| 139 |
-
if (!dictLoaded) return;
|
| 140 |
-
var q = input.value.trim().toLowerCase();
|
| 141 |
-
if (!q) { resultsDiv.innerHTML = ""; updateStatus(q); return; }
|
| 142 |
-
|
| 143 |
-
updateStatus(q);
|
| 144 |
-
|
| 145 |
-
var exact = [], prefix = [], substring = [];
|
| 146 |
-
var MAX = 20;
|
| 147 |
-
for (var i = 0; i < DICT_LOWER.length; i++) {
|
| 148 |
-
var e = DICT_LOWER[i];
|
| 149 |
-
if (e === q) exact.push(i);
|
| 150 |
-
else if (e.startsWith(q)) { if (prefix.length < MAX) prefix.push(i); }
|
| 151 |
-
else if (e.indexOf(q) >= 0) { if (substring.length < MAX) substring.push(i); }
|
| 152 |
-
if (prefix.length >= MAX && substring.length >= MAX && exact.length > 0) break;
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
var h = "";
|
| 156 |
-
if (exact.length > 0) {
|
| 157 |
-
h += '<div class="dp-section"><div class="dp-section-title">Exact</div>';
|
| 158 |
-
for (var j = 0; j < exact.length; j++)
|
| 159 |
-
h += '<div class="dp-match exact">' + highlight(DICT_LOWER[exact[j]], q) + '</div>';
|
| 160 |
-
h += '</div>';
|
| 161 |
-
}
|
| 162 |
-
if (prefix.length > 0) {
|
| 163 |
-
h += '<div class="dp-section"><div class="dp-section-title">Prefix (' + prefix.length + ')</div>';
|
| 164 |
-
for (var j = 0; j < prefix.length; j++)
|
| 165 |
-
h += '<div class="dp-match">' + highlight(DICT_LOWER[prefix[j]], q) + '</div>';
|
| 166 |
-
h += '</div>';
|
| 167 |
-
}
|
| 168 |
-
if (substring.length > 0) {
|
| 169 |
-
h += '<div class="dp-section"><div class="dp-section-title">Contains (' + substring.length + ')</div>';
|
| 170 |
-
for (var j = 0; j < substring.length; j++)
|
| 171 |
-
h += '<div class="dp-match">' + highlight(DICT_LOWER[substring[j]], q) + '</div>';
|
| 172 |
-
h += '</div>';
|
| 173 |
-
}
|
| 174 |
-
if (!h) h = '<div class="dp-no-results">No matches</div>';
|
| 175 |
-
resultsDiv.innerHTML = h;
|
| 176 |
-
}
|
| 177 |
-
|
| 178 |
-
function updateStatus(query) {
|
| 179 |
-
if (!query || !DICT_SET) {
|
| 180 |
-
statusEl.textContent = "";
|
| 181 |
-
statusEl.className = "dp-status";
|
| 182 |
-
return;
|
| 183 |
-
}
|
| 184 |
-
if (DICT_SET.has(query)) {
|
| 185 |
-
statusEl.textContent = "\u2713 in dict";
|
| 186 |
-
statusEl.className = "dp-status in-dict";
|
| 187 |
-
} else {
|
| 188 |
-
statusEl.textContent = "\u2717 not found";
|
| 189 |
-
statusEl.className = "dp-status not-dict";
|
| 190 |
-
}
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
// --- Auto-lookup on region select ---
|
| 194 |
-
var lastRegionText = "";
|
| 195 |
-
setInterval(function() {
|
| 196 |
-
if (!dictLoaded || !visible) return;
|
| 197 |
-
try {
|
| 198 |
-
var store = window.Htx && window.Htx.annotationStore;
|
| 199 |
-
if (!store) return;
|
| 200 |
-
var sel = store.selected;
|
| 201 |
-
if (!sel) return;
|
| 202 |
-
var regions = sel.regionStore && sel.regionStore.regions;
|
| 203 |
-
if (!regions) return;
|
| 204 |
-
|
| 205 |
-
// Find selected region
|
| 206 |
-
var selectedRegion = null;
|
| 207 |
-
for (var i = 0; i < regions.length; i++) {
|
| 208 |
-
if (regions[i].selected) { selectedRegion = regions[i]; break; }
|
| 209 |
-
}
|
| 210 |
-
if (!selectedRegion) {
|
| 211 |
-
if (lastRegionText) { lastRegionText = ""; }
|
| 212 |
-
return;
|
| 213 |
-
}
|
| 214 |
-
|
| 215 |
-
var text = selectedRegion.text || "";
|
| 216 |
-
if (text && text !== lastRegionText) {
|
| 217 |
-
lastRegionText = text;
|
| 218 |
-
input.value = text;
|
| 219 |
-
doSearch();
|
| 220 |
-
}
|
| 221 |
-
} catch(e) {
|
| 222 |
-
// Silently ignore — store structure may vary
|
| 223 |
-
}
|
| 224 |
-
}, 300);
|
| 225 |
-
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Evaluate CRF word segmentation against gold annotations.
|
| 2 |
+
|
| 3 |
+
Compares silver (CRF) predictions from udd-ws-v1.1-{dev,test}.txt against
|
| 4 |
+
gold corrections in gold_ws_cycle1.txt. Reports Word F1/Precision/Recall,
|
| 5 |
+
per-domain breakdown, and detailed error analysis.
|
| 6 |
+
|
| 7 |
+
With --model, uses the CRF model to predict directly on gold sentences
|
| 8 |
+
(instead of reading from silver files). This is needed when gold has been
|
| 9 |
+
merged into silver files.
|
| 10 |
+
|
| 11 |
+
Usage:
|
| 12 |
+
python src/eval_ws_gold.py
|
| 13 |
+
python src/eval_ws_gold.py --model path/to/model.crfsuite
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
import argparse
|
| 17 |
+
import sys
|
| 18 |
+
from collections import Counter, defaultdict
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def parse_bio_file(path):
|
| 23 |
+
"""Parse BIO file into dict of {sent_id: [(syllable, tag), ...]}."""
|
| 24 |
+
sentences = {}
|
| 25 |
+
current_id = None
|
| 26 |
+
current_tokens = []
|
| 27 |
+
|
| 28 |
+
with open(path, "r", encoding="utf-8") as f:
|
| 29 |
+
for line in f:
|
| 30 |
+
line = line.rstrip("\n")
|
| 31 |
+
if line.startswith("# sent_id = "):
|
| 32 |
+
if current_id and current_tokens:
|
| 33 |
+
sentences[current_id] = current_tokens
|
| 34 |
+
current_id = line.split("= ", 1)[1]
|
| 35 |
+
current_tokens = []
|
| 36 |
+
elif line.startswith("# text = "):
|
| 37 |
+
continue
|
| 38 |
+
elif line.strip() == "":
|
| 39 |
+
if current_id and current_tokens:
|
| 40 |
+
sentences[current_id] = current_tokens
|
| 41 |
+
current_id = None
|
| 42 |
+
current_tokens = []
|
| 43 |
+
elif "\t" in line:
|
| 44 |
+
parts = line.split("\t")
|
| 45 |
+
if len(parts) >= 2:
|
| 46 |
+
current_tokens.append((parts[0], parts[1]))
|
| 47 |
+
|
| 48 |
+
if current_id and current_tokens:
|
| 49 |
+
sentences[current_id] = current_tokens
|
| 50 |
+
|
| 51 |
+
return sentences
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def bio_to_words(tokens):
|
| 55 |
+
"""Convert BIO token list to list of word strings."""
|
| 56 |
+
words = []
|
| 57 |
+
current = []
|
| 58 |
+
for syl, tag in tokens:
|
| 59 |
+
if tag == "B-W":
|
| 60 |
+
if current:
|
| 61 |
+
words.append("_".join(current))
|
| 62 |
+
current = [syl]
|
| 63 |
+
elif tag == "I-W":
|
| 64 |
+
current.append(syl)
|
| 65 |
+
if current:
|
| 66 |
+
words.append("_".join(current))
|
| 67 |
+
return words
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def bio_to_word_spans(tokens):
|
| 71 |
+
"""Convert BIO tokens to word spans as (start_idx, end_idx) tuples."""
|
| 72 |
+
spans = []
|
| 73 |
+
start = 0
|
| 74 |
+
for i, (syl, tag) in enumerate(tokens):
|
| 75 |
+
if tag == "B-W" and i > 0:
|
| 76 |
+
spans.append((start, i))
|
| 77 |
+
start = i
|
| 78 |
+
spans.append((start, len(tokens)))
|
| 79 |
+
return spans
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def get_domain(sent_id):
|
| 83 |
+
"""Extract domain from sent_id prefix."""
|
| 84 |
+
if sent_id.startswith("vlc-"):
|
| 85 |
+
return "legal"
|
| 86 |
+
elif sent_id.startswith("uvn-"):
|
| 87 |
+
return "news"
|
| 88 |
+
elif sent_id.startswith("uvw-"):
|
| 89 |
+
return "wikipedia"
|
| 90 |
+
elif sent_id.startswith("uvb-f-"):
|
| 91 |
+
return "fiction"
|
| 92 |
+
elif sent_id.startswith("uvb-n-"):
|
| 93 |
+
return "non-fiction"
|
| 94 |
+
return "unknown"
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def compute_word_metrics(silver_words, gold_words):
|
| 98 |
+
"""Compute word-level precision, recall, F1.
|
| 99 |
+
|
| 100 |
+
Uses multiset intersection (same as CoNLL WS eval).
|
| 101 |
+
"""
|
| 102 |
+
silver_counter = Counter(silver_words)
|
| 103 |
+
gold_counter = Counter(gold_words)
|
| 104 |
+
|
| 105 |
+
# Multiset intersection
|
| 106 |
+
tp = sum((silver_counter & gold_counter).values())
|
| 107 |
+
pred_total = len(silver_words)
|
| 108 |
+
gold_total = len(gold_words)
|
| 109 |
+
|
| 110 |
+
precision = tp / pred_total if pred_total > 0 else 0
|
| 111 |
+
recall = tp / gold_total if gold_total > 0 else 0
|
| 112 |
+
f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
|
| 113 |
+
|
| 114 |
+
return precision, recall, f1, tp, pred_total, gold_total
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
def compute_boundary_metrics(silver_tokens, gold_tokens):
|
| 118 |
+
"""Compute boundary-level (syllable tag) accuracy."""
|
| 119 |
+
assert len(silver_tokens) == len(gold_tokens), \
|
| 120 |
+
f"Length mismatch: {len(silver_tokens)} vs {len(gold_tokens)}"
|
| 121 |
+
|
| 122 |
+
correct = 0
|
| 123 |
+
total = len(silver_tokens)
|
| 124 |
+
changes = {"B→I": 0, "I→B": 0}
|
| 125 |
+
|
| 126 |
+
for (s_syl, s_tag), (g_syl, g_tag) in zip(silver_tokens, gold_tokens):
|
| 127 |
+
if s_tag == g_tag:
|
| 128 |
+
correct += 1
|
| 129 |
+
else:
|
| 130 |
+
key = f"{s_tag[0]}→{g_tag[0]}"
|
| 131 |
+
changes[key] = changes.get(key, 0) + 1
|
| 132 |
+
|
| 133 |
+
accuracy = correct / total if total > 0 else 0
|
| 134 |
+
return accuracy, correct, total, changes
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def find_differences(sent_id, silver_tokens, gold_tokens):
|
| 138 |
+
"""Find specific word segmentation differences between silver and gold."""
|
| 139 |
+
diffs = []
|
| 140 |
+
silver_words = bio_to_words(silver_tokens)
|
| 141 |
+
gold_words = bio_to_words(gold_tokens)
|
| 142 |
+
|
| 143 |
+
# Build position-based word mapping
|
| 144 |
+
silver_spans = bio_to_word_spans(silver_tokens)
|
| 145 |
+
gold_spans = bio_to_word_spans(gold_tokens)
|
| 146 |
+
|
| 147 |
+
if silver_spans == gold_spans:
|
| 148 |
+
return []
|
| 149 |
+
|
| 150 |
+
# Find differing positions
|
| 151 |
+
silver_set = set(silver_spans)
|
| 152 |
+
gold_set = set(gold_spans)
|
| 153 |
+
|
| 154 |
+
only_silver = silver_set - gold_set
|
| 155 |
+
only_gold = gold_set - silver_set
|
| 156 |
+
|
| 157 |
+
# Map spans to words
|
| 158 |
+
def span_to_word(tokens, start, end):
|
| 159 |
+
return "_".join(t[0] for t in tokens[start:end])
|
| 160 |
+
|
| 161 |
+
for s in sorted(only_silver):
|
| 162 |
+
word = span_to_word(silver_tokens, s[0], s[1])
|
| 163 |
+
diffs.append(("silver", s, word))
|
| 164 |
+
|
| 165 |
+
for g in sorted(only_gold):
|
| 166 |
+
word = span_to_word(gold_tokens, g[0], g[1])
|
| 167 |
+
diffs.append(("gold", g, word))
|
| 168 |
+
|
| 169 |
+
return diffs
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
def classify_error(silver_word, gold_words_at_pos):
|
| 173 |
+
"""Classify error type: over-merge, over-split, boundary-shift."""
|
| 174 |
+
s_parts = silver_word.split("_")
|
| 175 |
+
if len(s_parts) > 1 and all(len(g.split("_")) < len(s_parts) for g in gold_words_at_pos):
|
| 176 |
+
return "over-merge"
|
| 177 |
+
if len(s_parts) < max(len(g.split("_")) for g in gold_words_at_pos):
|
| 178 |
+
return "over-split"
|
| 179 |
+
return "boundary-shift"
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
def predict_with_model(model_path, gold):
|
| 183 |
+
"""Use CRF model to predict on gold sentence syllables.
|
| 184 |
+
|
| 185 |
+
Returns dict of {sent_id: [(syllable, tag), ...]}.
|
| 186 |
+
"""
|
| 187 |
+
import pycrfsuite
|
| 188 |
+
# Reuse feature extraction from al_score_ws
|
| 189 |
+
sys.path.insert(0, str(Path(__file__).parent))
|
| 190 |
+
from al_score_ws import extract_syllable_features, load_dictionary
|
| 191 |
+
|
| 192 |
+
model_dir = model_path.parent
|
| 193 |
+
dict_path = model_dir / "dictionary.txt"
|
| 194 |
+
|
| 195 |
+
tagger = pycrfsuite.Tagger()
|
| 196 |
+
tagger.open(str(model_path))
|
| 197 |
+
print(f"Model loaded: {model_path}")
|
| 198 |
+
|
| 199 |
+
dictionary = None
|
| 200 |
+
if dict_path.exists():
|
| 201 |
+
dictionary = load_dictionary(dict_path)
|
| 202 |
+
print(f"Dictionary loaded: {len(dictionary)} entries")
|
| 203 |
+
|
| 204 |
+
tag_map = {"B": "B-W", "I": "I-W"}
|
| 205 |
+
predictions = {}
|
| 206 |
+
for sid, tokens in gold.items():
|
| 207 |
+
syllables = [t[0] for t in tokens]
|
| 208 |
+
# Extract features
|
| 209 |
+
xseq = [
|
| 210 |
+
[f"{k}={v}" for k, v in extract_syllable_features(syllables, i, dictionary).items()]
|
| 211 |
+
for i in range(len(syllables))
|
| 212 |
+
]
|
| 213 |
+
pred_tags = tagger.tag(xseq)
|
| 214 |
+
predictions[sid] = [
|
| 215 |
+
(syl, tag_map.get(tag, tag)) for syl, tag in zip(syllables, pred_tags)
|
| 216 |
+
]
|
| 217 |
+
|
| 218 |
+
return predictions
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def main():
|
| 222 |
+
parser = argparse.ArgumentParser(description="Evaluate WS against gold")
|
| 223 |
+
parser.add_argument("--model", type=str, default=None,
|
| 224 |
+
help="CRF model path for direct prediction")
|
| 225 |
+
args = parser.parse_args()
|
| 226 |
+
|
| 227 |
+
base = Path("/home/claude-code/projects/workspace_underthesea/UDD-1")
|
| 228 |
+
gold_path = base / "gold_ws_cycle1.txt"
|
| 229 |
+
|
| 230 |
+
# Parse gold
|
| 231 |
+
gold = parse_bio_file(gold_path)
|
| 232 |
+
print(f"Gold sentences: {len(gold)}")
|
| 233 |
+
|
| 234 |
+
if args.model:
|
| 235 |
+
# Predict using CRF model directly
|
| 236 |
+
model_path = Path(args.model)
|
| 237 |
+
if not model_path.exists():
|
| 238 |
+
# Auto-detect latest model
|
| 239 |
+
tree1_models = base.parent / "tree-1" / "models" / "word_segmentation"
|
| 240 |
+
model_dirs = sorted(tree1_models.glob("udd_ws_v1_1-*"))
|
| 241 |
+
if model_dirs:
|
| 242 |
+
model_path = model_dirs[-1] / "model.crfsuite"
|
| 243 |
+
silver = predict_with_model(model_path, gold)
|
| 244 |
+
print(f"CRF predictions: {len(silver)} sentences")
|
| 245 |
+
else:
|
| 246 |
+
# Parse silver (dev + test) from files
|
| 247 |
+
silver_dev = parse_bio_file(base / "udd-ws-v1.1-dev.txt")
|
| 248 |
+
silver_test = parse_bio_file(base / "udd-ws-v1.1-test.txt")
|
| 249 |
+
silver = {**silver_dev, **silver_test}
|
| 250 |
+
print(f"Silver sentences loaded: {len(silver_dev)} dev + {len(silver_test)} test")
|
| 251 |
+
|
| 252 |
+
# Match gold to silver
|
| 253 |
+
matched = []
|
| 254 |
+
missing = []
|
| 255 |
+
for sid in gold:
|
| 256 |
+
if sid in silver:
|
| 257 |
+
matched.append(sid)
|
| 258 |
+
else:
|
| 259 |
+
missing.append(sid)
|
| 260 |
+
|
| 261 |
+
print(f"Matched: {len(matched)}, Missing in silver: {len(missing)}")
|
| 262 |
+
if missing:
|
| 263 |
+
print(f" Missing: {missing}")
|
| 264 |
+
|
| 265 |
+
# === Overall metrics ===
|
| 266 |
+
total_tp = total_pred = total_gold = 0
|
| 267 |
+
total_syl_correct = total_syl = 0
|
| 268 |
+
all_changes = Counter()
|
| 269 |
+
domain_stats = defaultdict(lambda: {"tp": 0, "pred": 0, "gold": 0, "syl_correct": 0, "syl_total": 0, "n": 0})
|
| 270 |
+
all_diffs = []
|
| 271 |
+
error_types = Counter()
|
| 272 |
+
|
| 273 |
+
for sid in matched:
|
| 274 |
+
s_tokens = silver[sid]
|
| 275 |
+
g_tokens = gold[sid]
|
| 276 |
+
|
| 277 |
+
# Check syllable alignment
|
| 278 |
+
s_syls = [t[0] for t in s_tokens]
|
| 279 |
+
g_syls = [t[0] for t in g_tokens]
|
| 280 |
+
if s_syls != g_syls:
|
| 281 |
+
print(f" WARNING: syllable mismatch in {sid}")
|
| 282 |
+
print(f" Silver: {' '.join(s_syls[:10])}...")
|
| 283 |
+
print(f" Gold: {' '.join(g_syls[:10])}...")
|
| 284 |
+
continue
|
| 285 |
+
|
| 286 |
+
# Word metrics
|
| 287 |
+
s_words = bio_to_words(s_tokens)
|
| 288 |
+
g_words = bio_to_words(g_tokens)
|
| 289 |
+
p, r, f1, tp, pred, gtotal = compute_word_metrics(s_words, g_words)
|
| 290 |
+
total_tp += tp
|
| 291 |
+
total_pred += pred
|
| 292 |
+
total_gold += gtotal
|
| 293 |
+
|
| 294 |
+
# Boundary metrics
|
| 295 |
+
acc, correct, total, changes = compute_boundary_metrics(s_tokens, g_tokens)
|
| 296 |
+
total_syl_correct += correct
|
| 297 |
+
total_syl += total
|
| 298 |
+
all_changes.update(changes)
|
| 299 |
+
|
| 300 |
+
# Domain stats
|
| 301 |
+
domain = get_domain(sid)
|
| 302 |
+
ds = domain_stats[domain]
|
| 303 |
+
ds["tp"] += tp
|
| 304 |
+
ds["pred"] += pred
|
| 305 |
+
ds["gold"] += gtotal
|
| 306 |
+
ds["syl_correct"] += correct
|
| 307 |
+
ds["syl_total"] += total
|
| 308 |
+
ds["n"] += 1
|
| 309 |
+
|
| 310 |
+
# Differences
|
| 311 |
+
diffs = find_differences(sid, s_tokens, g_tokens)
|
| 312 |
+
if diffs:
|
| 313 |
+
all_diffs.append((sid, domain, diffs, s_tokens, g_tokens))
|
| 314 |
+
|
| 315 |
+
# === Print Results ===
|
| 316 |
+
print("\n" + "=" * 60)
|
| 317 |
+
print("EVALUATION: CRF Silver vs Gold (Cycle 1)")
|
| 318 |
+
print("=" * 60)
|
| 319 |
+
|
| 320 |
+
# Overall
|
| 321 |
+
overall_p = total_tp / total_pred if total_pred else 0
|
| 322 |
+
overall_r = total_tp / total_gold if total_gold else 0
|
| 323 |
+
overall_f1 = 2 * overall_p * overall_r / (overall_p + overall_r) if (overall_p + overall_r) else 0
|
| 324 |
+
syl_acc = total_syl_correct / total_syl if total_syl else 0
|
| 325 |
+
|
| 326 |
+
print(f"\n## Overall ({len(matched)} sentences)")
|
| 327 |
+
print(f" Syllable Accuracy: {syl_acc:.4f} ({total_syl_correct}/{total_syl})")
|
| 328 |
+
print(f" Word Precision: {overall_p:.4f}")
|
| 329 |
+
print(f" Word Recall: {overall_r:.4f}")
|
| 330 |
+
print(f" Word F1: {overall_f1:.4f}")
|
| 331 |
+
print(f" Boundary changes: {dict(all_changes)}")
|
| 332 |
+
print(f" B→I (over-merge in silver): {all_changes.get('B→I', 0)}")
|
| 333 |
+
print(f" I→B (over-split in silver): {all_changes.get('I→B', 0)}")
|
| 334 |
+
|
| 335 |
+
# Per-domain
|
| 336 |
+
print(f"\n## Per-Domain Breakdown")
|
| 337 |
+
print(f" {'Domain':<14} {'N':>4} {'Syl Acc':>8} {'P':>7} {'R':>7} {'F1':>7}")
|
| 338 |
+
print(f" {'-'*14} {'-'*4} {'-'*8} {'-'*7} {'-'*7} {'-'*7}")
|
| 339 |
+
for domain in ["legal", "news", "wikipedia", "fiction", "non-fiction"]:
|
| 340 |
+
ds = domain_stats[domain]
|
| 341 |
+
if ds["n"] == 0:
|
| 342 |
+
continue
|
| 343 |
+
dp = ds["tp"] / ds["pred"] if ds["pred"] else 0
|
| 344 |
+
dr = ds["tp"] / ds["gold"] if ds["gold"] else 0
|
| 345 |
+
df1 = 2 * dp * dr / (dp + dr) if (dp + dr) else 0
|
| 346 |
+
dacc = ds["syl_correct"] / ds["syl_total"] if ds["syl_total"] else 0
|
| 347 |
+
print(f" {domain:<14} {ds['n']:>4} {dacc:>8.4f} {dp:>7.4f} {dr:>7.4f} {df1:>7.4f}")
|
| 348 |
+
|
| 349 |
+
# Error analysis
|
| 350 |
+
print(f"\n## Error Analysis ({len(all_diffs)} sentences with differences)")
|
| 351 |
+
|
| 352 |
+
merge_errors = [] # silver merged, gold split
|
| 353 |
+
split_errors = [] # silver split, gold merged
|
| 354 |
+
|
| 355 |
+
for sid, domain, diffs, s_tokens, g_tokens in all_diffs:
|
| 356 |
+
s_spans = set(bio_to_word_spans(s_tokens))
|
| 357 |
+
g_spans = set(bio_to_word_spans(g_tokens))
|
| 358 |
+
|
| 359 |
+
only_silver = s_spans - g_spans
|
| 360 |
+
only_gold = g_spans - s_spans
|
| 361 |
+
|
| 362 |
+
def span_word(tokens, s, e):
|
| 363 |
+
return "_".join(t[0] for t in tokens[s:e])
|
| 364 |
+
|
| 365 |
+
for span in only_silver:
|
| 366 |
+
word = span_word(s_tokens, span[0], span[1])
|
| 367 |
+
n_syls = span[1] - span[0]
|
| 368 |
+
# Check if this span overlaps with multiple gold spans (over-merge)
|
| 369 |
+
overlapping_gold = [g for g in only_gold if g[0] < span[1] and g[1] > span[0]]
|
| 370 |
+
if overlapping_gold and n_syls > 1:
|
| 371 |
+
gold_words = [span_word(g_tokens, g[0], g[1]) for g in overlapping_gold]
|
| 372 |
+
merge_errors.append((sid, domain, word, gold_words))
|
| 373 |
+
|
| 374 |
+
for span in only_gold:
|
| 375 |
+
word = span_word(g_tokens, span[0], span[1])
|
| 376 |
+
n_syls = span[1] - span[0]
|
| 377 |
+
overlapping_silver = [s for s in only_silver if s[0] < span[1] and s[1] > span[0]]
|
| 378 |
+
if overlapping_silver and n_syls > 1:
|
| 379 |
+
silver_words = [span_word(s_tokens, s[0], s[1]) for s in overlapping_silver]
|
| 380 |
+
split_errors.append((sid, domain, word, silver_words))
|
| 381 |
+
|
| 382 |
+
print(f"\n### Over-merge errors (silver merged what gold splits): {len(merge_errors)}")
|
| 383 |
+
for sid, domain, silver_word, gold_words in sorted(merge_errors, key=lambda x: x[1]):
|
| 384 |
+
print(f" [{domain:>12}] {sid}: {silver_word} → {' | '.join(gold_words)}")
|
| 385 |
+
|
| 386 |
+
print(f"\n### Over-split errors (silver split what gold merges): {len(split_errors)}")
|
| 387 |
+
for sid, domain, gold_word, silver_words in sorted(split_errors, key=lambda x: x[1]):
|
| 388 |
+
print(f" [{domain:>12}] {sid}: {' | '.join(silver_words)} → {gold_word}")
|
| 389 |
+
|
| 390 |
+
# Summary of all differences per sentence
|
| 391 |
+
print(f"\n## All Differences (sentence-level)")
|
| 392 |
+
for sid, domain, diffs, s_tokens, g_tokens in sorted(all_diffs, key=lambda x: x[1]):
|
| 393 |
+
s_words = bio_to_words(s_tokens)
|
| 394 |
+
g_words = bio_to_words(g_tokens)
|
| 395 |
+
s_set = set(s_words)
|
| 396 |
+
g_set = set(g_words)
|
| 397 |
+
|
| 398 |
+
s_only = Counter(s_words) - Counter(g_words)
|
| 399 |
+
g_only = Counter(g_words) - Counter(s_words)
|
| 400 |
+
if s_only or g_only:
|
| 401 |
+
print(f"\n [{domain}] {sid}")
|
| 402 |
+
if s_only:
|
| 403 |
+
print(f" Silver only: {dict(s_only)}")
|
| 404 |
+
if g_only:
|
| 405 |
+
print(f" Gold only: {dict(g_only)}")
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
if __name__ == "__main__":
|
| 409 |
+
main()
|
|
@@ -37,6 +37,11 @@ TONED_VOWELS = set(
|
|
| 37 |
# All Vietnamese diacritical characters (toned vowels + base vowels ă, â, ê, ô, ơ, ư, đ)
|
| 38 |
VIET_DIACRITICS = TONED_VOWELS | set('ăâêôơưđĂÂÊÔƠƯĐ')
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# ============================================================================
|
| 42 |
# Shared text cleaning
|
|
@@ -223,11 +228,12 @@ def base_valid(sent):
|
|
| 223 |
# Digit glued to Vietnamese text (e.g., "59Sẹo")
|
| 224 |
if tone_count >= 1 and re.search(r'\d[a-zA-ZĐđÀ-ỹ]', token):
|
| 225 |
return False, sent
|
| 226 |
-
# Language detection with Vietnamese
|
| 227 |
if lang_detect(sent) != "vi":
|
| 228 |
-
# Fallback: accept if sentence has
|
| 229 |
-
|
| 230 |
-
if
|
|
|
|
| 231 |
return False, sent
|
| 232 |
return True, sent
|
| 233 |
|
|
|
|
| 37 |
# All Vietnamese diacritical characters (toned vowels + base vowels ă, â, ê, ô, ơ, ư, đ)
|
| 38 |
VIET_DIACRITICS = TONED_VOWELS | set('ăâêôơưđĂÂÊÔƠƯĐ')
|
| 39 |
|
| 40 |
+
# Characters unique to Vietnamese (not in French/Portuguese/other Latin scripts)
|
| 41 |
+
# ă/ơ/ư and their toned variants distinguish Vietnamese from French (which shares â, ê, ô, é, è, à)
|
| 42 |
+
VIET_ONLY_CHARS = set('ăắằẳẵặơớờởỡợưứừửữựđ'
|
| 43 |
+
'ĂẮẰẲẴẶƠỚỜỞỠỢƯỨỪỬỮỰĐ')
|
| 44 |
+
|
| 45 |
|
| 46 |
# ============================================================================
|
| 47 |
# Shared text cleaning
|
|
|
|
| 228 |
# Digit glued to Vietnamese text (e.g., "59Sẹo")
|
| 229 |
if tone_count >= 1 and re.search(r'\d[a-zA-ZĐđÀ-ỹ]', token):
|
| 230 |
return False, sent
|
| 231 |
+
# Language detection with Vietnamese-only character fallback
|
| 232 |
if lang_detect(sent) != "vi":
|
| 233 |
+
# Fallback: accept only if sentence has Vietnamese-only chars (ă, ơ, ư, đ and variants)
|
| 234 |
+
# French shares â, ê, ô, é, è, à with Vietnamese, so those are not sufficient
|
| 235 |
+
vn_only_count = sum(1 for c in sent if c in VIET_ONLY_CHARS)
|
| 236 |
+
if vn_only_count < 1:
|
| 237 |
return False, sent
|
| 238 |
return True, sent
|
| 239 |
|
|
@@ -4,10 +4,12 @@
|
|
| 4 |
# ///
|
| 5 |
"""Fix known word segmentation errors in UDD-1.1 BIO files.
|
| 6 |
|
| 7 |
-
|
| 8 |
1. Split cross-boundary merges (uppercase mid-token signals)
|
| 9 |
1.5 Split long tokens (5+ syllables) via vocab-based greedy decomposition
|
| 10 |
2. Merge always-split compounds (dictionary compounds + inconsistent forms)
|
|
|
|
|
|
|
| 11 |
3. Validate BIO invariants
|
| 12 |
|
| 13 |
Usage:
|
|
@@ -16,6 +18,7 @@ Usage:
|
|
| 16 |
"""
|
| 17 |
|
| 18 |
import argparse
|
|
|
|
| 19 |
import sys
|
| 20 |
from collections import Counter, defaultdict
|
| 21 |
from os.path import dirname, isfile, join
|
|
@@ -53,6 +56,32 @@ MERGE_TERMS = {
|
|
| 53 |
("thuê", "khoán"), # 62 split vs 2 single
|
| 54 |
("hòa", "giải"), # 53 split vs 30 single
|
| 55 |
("bốc", "hàng"), # 35 split vs 1 single
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
# Build index for efficient longest-match lookup: {length: [term, ...]}
|
|
@@ -196,6 +225,21 @@ def build_split_vocab(all_sentences, min_count=5):
|
|
| 196 |
}
|
| 197 |
|
| 198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
# ============================================================================
|
| 200 |
# Fix passes
|
| 201 |
# ============================================================================
|
|
@@ -386,6 +430,201 @@ def fix_merge_compounds(syllables, tags):
|
|
| 386 |
return new_tags, changes
|
| 387 |
|
| 388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
def validate_sentence(syllables, tags):
|
| 390 |
"""Pass 3: Validate BIO invariants.
|
| 391 |
|
|
@@ -420,23 +659,29 @@ def generate_report(all_stats, output_path=None):
|
|
| 420 |
# Summary table
|
| 421 |
lines.append("## Summary")
|
| 422 |
lines.append("")
|
| 423 |
-
lines.append("| File | Cross-boundary
|
| 424 |
-
lines.append("|------|----------------------
|
| 425 |
total_splits = 0
|
| 426 |
total_long_splits = 0
|
| 427 |
total_merges = 0
|
|
|
|
|
|
|
| 428 |
total_errors = 0
|
| 429 |
for fname, stats in all_stats.items():
|
| 430 |
n_splits = stats["n_cross_boundary"]
|
| 431 |
n_long = stats["n_split_long"]
|
| 432 |
n_merges = stats["n_merge"]
|
|
|
|
|
|
|
| 433 |
n_errors = stats["n_validation_errors"]
|
| 434 |
total_splits += n_splits
|
| 435 |
total_long_splits += n_long
|
| 436 |
total_merges += n_merges
|
|
|
|
|
|
|
| 437 |
total_errors += n_errors
|
| 438 |
-
lines.append(f"| {fname} | {n_splits:,} | {n_long:,} | {n_merges:,} | {n_errors:,} |")
|
| 439 |
-
lines.append(f"| **TOTAL** | **{total_splits:,}** | **{total_long_splits:,}** | **{total_merges:,}** | **{total_errors:,}** |")
|
| 440 |
lines.append("")
|
| 441 |
|
| 442 |
# Merge term frequency across all files
|
|
@@ -477,6 +722,34 @@ def generate_report(all_stats, output_path=None):
|
|
| 477 |
lines.append(f"- ... and {len(stats['split_long_examples']) - 30} more")
|
| 478 |
lines.append("")
|
| 479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 480 |
report = "\n".join(lines)
|
| 481 |
|
| 482 |
if output_path:
|
|
@@ -491,13 +764,15 @@ def generate_report(all_stats, output_path=None):
|
|
| 491 |
# Main
|
| 492 |
# ============================================================================
|
| 493 |
|
| 494 |
-
def process_file(filepath, vocab=None, sentences=None, dry_run=False):
|
| 495 |
"""Process a single BIO file: apply fixes, optionally write back.
|
| 496 |
|
| 497 |
Args:
|
| 498 |
filepath: Path to BIO file.
|
| 499 |
vocab: Set of known 2-4 syllable words for long-token splitting.
|
| 500 |
-
If None, Pass 1.5
|
|
|
|
|
|
|
| 501 |
sentences: Pre-parsed sentences (avoids re-parsing if already loaded).
|
| 502 |
dry_run: If True, report changes without modifying files.
|
| 503 |
|
|
@@ -516,9 +791,13 @@ def process_file(filepath, vocab=None, sentences=None, dry_run=False):
|
|
| 516 |
n_cross_boundary = 0
|
| 517 |
n_split_long = 0
|
| 518 |
n_merge = 0
|
|
|
|
|
|
|
| 519 |
n_validation_errors = 0
|
| 520 |
cross_boundary_examples = []
|
| 521 |
split_long_examples = []
|
|
|
|
|
|
|
| 522 |
merge_term_counts = Counter()
|
| 523 |
|
| 524 |
for sent in sentences:
|
|
@@ -546,6 +825,20 @@ def process_file(filepath, vocab=None, sentences=None, dry_run=False):
|
|
| 546 |
term = ch.split('"')[1] if '"' in ch else ch
|
| 547 |
merge_term_counts[term.lower()] += 1
|
| 548 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
# Pass 3: Validate
|
| 550 |
errors = validate_sentence(syls, tags)
|
| 551 |
n_validation_errors += len(errors)
|
|
@@ -559,10 +852,12 @@ def process_file(filepath, vocab=None, sentences=None, dry_run=False):
|
|
| 559 |
sum(1 for t in s["tags"] if t == "B-W") for s in sentences
|
| 560 |
)
|
| 561 |
|
| 562 |
-
print(f" Cross-boundary splits:
|
| 563 |
-
print(f" Long token splits:
|
| 564 |
-
print(f" Compound merges:
|
| 565 |
-
print(f"
|
|
|
|
|
|
|
| 566 |
print(f" Words: {total_words_before:,} → {total_words_after:,} "
|
| 567 |
f"(Δ{total_words_after - total_words_before:+,})")
|
| 568 |
assert total_syllables_before == total_syllables_after, \
|
|
@@ -582,9 +877,13 @@ def process_file(filepath, vocab=None, sentences=None, dry_run=False):
|
|
| 582 |
"n_cross_boundary": n_cross_boundary,
|
| 583 |
"n_split_long": n_split_long,
|
| 584 |
"n_merge": n_merge,
|
|
|
|
|
|
|
| 585 |
"n_validation_errors": n_validation_errors,
|
| 586 |
"cross_boundary_examples": cross_boundary_examples,
|
| 587 |
"split_long_examples": split_long_examples,
|
|
|
|
|
|
|
| 588 |
"merge_term_counts": merge_term_counts,
|
| 589 |
"words_before": total_words_before,
|
| 590 |
"words_after": total_words_after,
|
|
@@ -630,6 +929,9 @@ def main():
|
|
| 630 |
vocab = build_split_vocab(all_sents)
|
| 631 |
print(f"\nBuilt split vocab: {len(vocab):,} entries "
|
| 632 |
f"(2-4 syllable words with count >= 5)")
|
|
|
|
|
|
|
|
|
|
| 633 |
|
| 634 |
# Phase 3: Process each file
|
| 635 |
all_stats = {}
|
|
@@ -638,6 +940,7 @@ def main():
|
|
| 638 |
_, stats = process_file(
|
| 639 |
path,
|
| 640 |
vocab=vocab,
|
|
|
|
| 641 |
sentences=all_sentences_by_file[path],
|
| 642 |
dry_run=args.dry_run,
|
| 643 |
)
|
|
@@ -655,11 +958,15 @@ def main():
|
|
| 655 |
total_splits = sum(s["n_cross_boundary"] for s in all_stats.values())
|
| 656 |
total_long = sum(s["n_split_long"] for s in all_stats.values())
|
| 657 |
total_merges = sum(s["n_merge"] for s in all_stats.values())
|
|
|
|
|
|
|
| 658 |
total_errors = sum(s["n_validation_errors"] for s in all_stats.values())
|
| 659 |
print(f"\n{'='*50}")
|
| 660 |
print(f"TOTAL: {total_splits:,} cross-boundary splits, "
|
| 661 |
f"{total_long:,} long token splits, "
|
| 662 |
f"{total_merges:,} compound merges, "
|
|
|
|
|
|
|
| 663 |
f"{total_errors:,} validation errors")
|
| 664 |
if args.dry_run:
|
| 665 |
print("(dry run — no files modified)")
|
|
|
|
| 4 |
# ///
|
| 5 |
"""Fix known word segmentation errors in UDD-1.1 BIO files.
|
| 6 |
|
| 7 |
+
Seven fix passes:
|
| 8 |
1. Split cross-boundary merges (uppercase mid-token signals)
|
| 9 |
1.5 Split long tokens (5+ syllables) via vocab-based greedy decomposition
|
| 10 |
2. Merge always-split compounds (dictionary compounds + inconsistent forms)
|
| 11 |
+
2.5 Split foreign word merges (Latin-script tokens without Vietnamese diacritics)
|
| 12 |
+
2.75 Split proper name boundary merges (uppercase→lowercase transitions within words)
|
| 13 |
3. Validate BIO invariants
|
| 14 |
|
| 15 |
Usage:
|
|
|
|
| 18 |
"""
|
| 19 |
|
| 20 |
import argparse
|
| 21 |
+
import re
|
| 22 |
import sys
|
| 23 |
from collections import Counter, defaultdict
|
| 24 |
from os.path import dirname, isfile, join
|
|
|
|
| 56 |
("thuê", "khoán"), # 62 split vs 2 single
|
| 57 |
("hòa", "giải"), # 53 split vs 30 single
|
| 58 |
("bốc", "hàng"), # 35 split vs 1 single
|
| 59 |
+
# ---- Cycle 1 gold corrections: new compound merges ----
|
| 60 |
+
("ủy", "ban"), # committee
|
| 61 |
+
("lính", "thú"), # soldier
|
| 62 |
+
("mu", "rùa"), # turtle shell
|
| 63 |
+
("trêu", "ghẹo"), # tease
|
| 64 |
+
("sương", "mai"), # morning dew
|
| 65 |
+
("mái", "nhà"), # roof
|
| 66 |
+
("nghiến", "răng"), # gnash teeth
|
| 67 |
+
("nheo", "nheo"), # squint
|
| 68 |
+
("dơn", "dớt"), # pale/sickly
|
| 69 |
+
("xua", "tay"), # wave hand
|
| 70 |
+
("nói", "gở"), # say unlucky things
|
| 71 |
+
("bơi", "chó"), # dog paddle
|
| 72 |
+
("người", "thương"), # beloved
|
| 73 |
+
("chăn", "lợn"), # pig herding
|
| 74 |
+
("khay", "trà"), # tea tray
|
| 75 |
+
("đồng", "tự"), # homograph
|
| 76 |
+
("tại", "ngũ"), # in service (military)
|
| 77 |
+
("hành", "chánh"), # administration
|
| 78 |
+
("lượng", "tử"), # quantum
|
| 79 |
+
("tích", "lũy"), # accumulate
|
| 80 |
+
("siêu", "máy", "tính"), # supercomputer
|
| 81 |
+
("đường", "thẳng"), # straight line
|
| 82 |
+
("đầm", "đuôi", "cá"), # fishtail dress
|
| 83 |
+
("như", "điên"), # like crazy
|
| 84 |
+
("tẩy", "chay"), # boycott
|
| 85 |
}
|
| 86 |
|
| 87 |
# Build index for efficient longest-match lookup: {length: [term, ...]}
|
|
|
|
| 225 |
}
|
| 226 |
|
| 227 |
|
| 228 |
+
def build_viet_syllables(all_sentences, min_count=50):
|
| 229 |
+
"""Build set of common Vietnamese syllables for foreign word filtering.
|
| 230 |
+
|
| 231 |
+
Counts individual syllables across all sentences and returns those
|
| 232 |
+
appearing at least `min_count` times (lowercased). These are used to
|
| 233 |
+
distinguish Vietnamese multi-syllable words (like "kinh doanh") from
|
| 234 |
+
truly foreign tokens (like "Max Planck").
|
| 235 |
+
"""
|
| 236 |
+
counts = Counter()
|
| 237 |
+
for sent in all_sentences:
|
| 238 |
+
for syl in sent["syllables"]:
|
| 239 |
+
counts[syl.lower()] += 1
|
| 240 |
+
return {syl for syl, c in counts.items() if c >= min_count}
|
| 241 |
+
|
| 242 |
+
|
| 243 |
# ============================================================================
|
| 244 |
# Fix passes
|
| 245 |
# ============================================================================
|
|
|
|
| 430 |
return new_tags, changes
|
| 431 |
|
| 432 |
|
| 433 |
+
def _is_latin_no_vietnamese(s):
|
| 434 |
+
"""Check if a string is purely Latin-script without Vietnamese diacritics.
|
| 435 |
+
|
| 436 |
+
Returns True for ASCII Latin (a-z, A-Z, 0-9, hyphen) and common Latin
|
| 437 |
+
extensions BUT NOT Vietnamese-specific characters (ă, â, đ, ê, ô, ơ, ư
|
| 438 |
+
and their tone marks).
|
| 439 |
+
"""
|
| 440 |
+
# Vietnamese diacritics pattern: any character with Vietnamese-specific marks
|
| 441 |
+
vietnamese_chars = re.compile(
|
| 442 |
+
r'[àáảãạăắằẳẵặâấầẩẫậèéẻẽẹêếềểễệìíỉĩịòóỏõọôốồổỗộơớờởỡợ'
|
| 443 |
+
r'ùúủũụưứừửữựỳýỷỹỵđÀÁẢÃẠĂẮẰẲẴẶÂẤẦẨẪẬÈÉẺẼẸÊẾỀỂỄỆÌÍỈĨỊ'
|
| 444 |
+
r'ÒÓỎÕỌÔỐỒỔỖỘƠỚỜỞỠỢÙÚỦŨỤƯỨỪỬỮỰỲÝỶỸỴĐ]'
|
| 445 |
+
)
|
| 446 |
+
if vietnamese_chars.search(s):
|
| 447 |
+
return False
|
| 448 |
+
# Must contain at least one Latin letter
|
| 449 |
+
return bool(re.search(r'[a-zA-Z]', s))
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
# Known foreign proper names that should stay merged (whitelist)
|
| 453 |
+
FOREIGN_NAME_WHITELIST = {
|
| 454 |
+
"beethoven", "homer", "odysseus", "cecelia", "ahern", "holly",
|
| 455 |
+
"hideoshi", "gurth", "euler", "hilbert", "rydberg", "bohr",
|
| 456 |
+
"frankael-zermelo", "giambattista", "valli", "dachau",
|
| 457 |
+
"habsburg", "newton", "einstein", "darwin", "shakespeare",
|
| 458 |
+
}
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
def fix_foreign_words(syllables, tags, viet_syllables):
|
| 462 |
+
"""Pass 2.5: Split foreign word merges.
|
| 463 |
+
|
| 464 |
+
Detects multi-syllable tokens where ALL syllables are Latin-script only
|
| 465 |
+
(no Vietnamese diacritics) AND none of the syllables are common Vietnamese
|
| 466 |
+
syllables. Each such foreign syllable becomes its own word (B-W).
|
| 467 |
+
|
| 468 |
+
Args:
|
| 469 |
+
syllables: list of syllable strings.
|
| 470 |
+
tags: list of BIO tag strings.
|
| 471 |
+
viet_syllables: set of common Vietnamese syllables (lowercase) for
|
| 472 |
+
filtering out false positives like "kinh doanh".
|
| 473 |
+
|
| 474 |
+
Returns (new_tags, list of change descriptions).
|
| 475 |
+
"""
|
| 476 |
+
new_tags = list(tags)
|
| 477 |
+
changes = []
|
| 478 |
+
|
| 479 |
+
# Reconstruct word spans
|
| 480 |
+
word_spans = []
|
| 481 |
+
current_start = 0
|
| 482 |
+
for i in range(len(tags)):
|
| 483 |
+
if tags[i] == "B-W" and i > 0:
|
| 484 |
+
word_spans.append((current_start, i))
|
| 485 |
+
current_start = i
|
| 486 |
+
word_spans.append((current_start, len(tags)))
|
| 487 |
+
|
| 488 |
+
for start, end in word_spans:
|
| 489 |
+
n_syls = end - start
|
| 490 |
+
if n_syls < 2:
|
| 491 |
+
continue
|
| 492 |
+
|
| 493 |
+
# Check if ALL syllables are Latin-only (no Vietnamese diacritics)
|
| 494 |
+
all_latin = all(_is_latin_no_vietnamese(syllables[j]) for j in range(start, end))
|
| 495 |
+
if not all_latin:
|
| 496 |
+
continue
|
| 497 |
+
|
| 498 |
+
# Check if ANY syllable is a common Vietnamese syllable → skip
|
| 499 |
+
has_viet = any(
|
| 500 |
+
syllables[j].lower() in viet_syllables for j in range(start, end)
|
| 501 |
+
)
|
| 502 |
+
if has_viet:
|
| 503 |
+
continue
|
| 504 |
+
|
| 505 |
+
# Check whitelist: if the whole token is a known name, skip
|
| 506 |
+
token_lower = " ".join(syllables[start:end]).lower()
|
| 507 |
+
if token_lower in FOREIGN_NAME_WHITELIST:
|
| 508 |
+
continue
|
| 509 |
+
|
| 510 |
+
# Split: make each syllable its own word
|
| 511 |
+
word_before = " ".join(syllables[start:end])
|
| 512 |
+
for j in range(start + 1, end):
|
| 513 |
+
new_tags[j] = "B-W"
|
| 514 |
+
|
| 515 |
+
parts = [syllables[j] for j in range(start, end)]
|
| 516 |
+
changes.append(f"split-foreign \"{word_before}\" → {' + '.join(repr(p) for p in parts)}")
|
| 517 |
+
|
| 518 |
+
return new_tags, changes
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
# Vietnamese institutional compound prefixes that should NOT be split by
|
| 522 |
+
# the name-boundary pass. Lowercased prefix tuples → the compound is legitimate.
|
| 523 |
+
# First-syllable prefixes that start Vietnamese institutional compounds.
|
| 524 |
+
# Any multi-syllable word starting with one of these + lowercase continuation
|
| 525 |
+
# is likely a legitimate compound, not a proper name boundary error.
|
| 526 |
+
NAME_BOUNDARY_WHITELIST_S1 = {
|
| 527 |
+
"ủy", # Ủy ban (nhân dân / thường vụ / ...)
|
| 528 |
+
"viện", # Viện kiểm sát / Viện nghiên cứu
|
| 529 |
+
"tổng", # Tổng giám đốc / Tổng thư ký / ...
|
| 530 |
+
"nhà", # Nhà khoa học / Nhà xuất bản / Nhà đầu tư
|
| 531 |
+
"phòng", # Phòng thí nghiệm
|
| 532 |
+
"cảng", # Cảng hàng không
|
| 533 |
+
"xuất", # Xuất nhập khẩu
|
| 534 |
+
"sách", # Sách (title compounds)
|
| 535 |
+
"thuế", # Thuế thu nhập
|
| 536 |
+
"cây", # Cây lương thực
|
| 537 |
+
"nói", # Nói tóm lại
|
| 538 |
+
"bộ", # Bộ luật dân sự / Bộ Tài chính
|
| 539 |
+
"đại", # Đại hội đồng
|
| 540 |
+
"lò", # Lò phản ứng
|
| 541 |
+
"ngay", # Ngay lập tức
|
| 542 |
+
"việc", # Việc làm ăn
|
| 543 |
+
"vùng", # Vùng kinh tế
|
| 544 |
+
"sân", # Sân vận động
|
| 545 |
+
"tiểu", # Tiểu văn hóa
|
| 546 |
+
"trang", # Trang thiết bị
|
| 547 |
+
"tết", # Tết dương lịch
|
| 548 |
+
"thuyết", # Thuyết sinh vật học
|
| 549 |
+
"điểm", # Điểm nóng chảy
|
| 550 |
+
"lý", # Lý thuyết
|
| 551 |
+
"hệ", # Hệ tiên đề
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
def fix_proper_name_boundary(syllables, tags, vocab):
|
| 556 |
+
"""Pass 2.75: Split proper name boundary merges.
|
| 557 |
+
|
| 558 |
+
Detects multi-syllable tokens where uppercase syllables are followed by
|
| 559 |
+
a lowercase common word (in vocab). Pattern: [Uppercase...][lowercase_common]
|
| 560 |
+
→ split before the lowercase word.
|
| 561 |
+
|
| 562 |
+
This catches cases like "Tống_tiêu_diệt" → "Tống" + "tiêu_diệt" where
|
| 563 |
+
a proper name is merged with the following verb/noun.
|
| 564 |
+
|
| 565 |
+
Skips known Vietnamese institutional compounds (NAME_BOUNDARY_WHITELIST_PREFIXES).
|
| 566 |
+
|
| 567 |
+
Returns (new_tags, list of change descriptions).
|
| 568 |
+
"""
|
| 569 |
+
new_tags = list(tags)
|
| 570 |
+
changes = []
|
| 571 |
+
|
| 572 |
+
# Reconstruct word spans
|
| 573 |
+
word_spans = []
|
| 574 |
+
current_start = 0
|
| 575 |
+
for i in range(len(tags)):
|
| 576 |
+
if tags[i] == "B-W" and i > 0:
|
| 577 |
+
word_spans.append((current_start, i))
|
| 578 |
+
current_start = i
|
| 579 |
+
word_spans.append((current_start, len(tags)))
|
| 580 |
+
|
| 581 |
+
for start, end in word_spans:
|
| 582 |
+
n_syls = end - start
|
| 583 |
+
if n_syls < 3:
|
| 584 |
+
# Need at least 3 syllables: Name + common_word(s)
|
| 585 |
+
continue
|
| 586 |
+
|
| 587 |
+
# Check whitelist: if the first syllable is a known institutional prefix, skip
|
| 588 |
+
if syllables[start].lower() in NAME_BOUNDARY_WHITELIST_S1:
|
| 589 |
+
continue
|
| 590 |
+
|
| 591 |
+
# Find the transition point: last uppercase syllable before lowercase
|
| 592 |
+
# Look for pattern: [Title/Upper...][lower...]
|
| 593 |
+
# where the lowercase portion forms a known vocab word
|
| 594 |
+
split_pos = None
|
| 595 |
+
for j in range(start + 1, end):
|
| 596 |
+
curr_syl = syllables[j]
|
| 597 |
+
prev_syl = syllables[j - 1]
|
| 598 |
+
|
| 599 |
+
# Transition: previous is title/upper, current is lowercase
|
| 600 |
+
if (prev_syl and prev_syl[0].isupper() and
|
| 601 |
+
curr_syl and not curr_syl[0].isupper()):
|
| 602 |
+
# Check if remaining syllables form a vocab word
|
| 603 |
+
remaining = " ".join(s.lower() for s in syllables[j:end])
|
| 604 |
+
if remaining in vocab:
|
| 605 |
+
split_pos = j
|
| 606 |
+
break
|
| 607 |
+
# Also check if just 2 syllables from here form a vocab word
|
| 608 |
+
if end - j >= 2:
|
| 609 |
+
two_syl = " ".join(s.lower() for s in syllables[j:j+2])
|
| 610 |
+
if two_syl in vocab:
|
| 611 |
+
split_pos = j
|
| 612 |
+
break
|
| 613 |
+
|
| 614 |
+
if split_pos is None:
|
| 615 |
+
continue
|
| 616 |
+
|
| 617 |
+
word_before = " ".join(syllables[start:end])
|
| 618 |
+
new_tags[split_pos] = "B-W"
|
| 619 |
+
word_parts = bio_to_words(syllables[start:end], new_tags[start:end])
|
| 620 |
+
changes.append(
|
| 621 |
+
f"split-name-boundary \"{word_before}\" → "
|
| 622 |
+
f"{' + '.join(repr(p) for p in word_parts)}"
|
| 623 |
+
)
|
| 624 |
+
|
| 625 |
+
return new_tags, changes
|
| 626 |
+
|
| 627 |
+
|
| 628 |
def validate_sentence(syllables, tags):
|
| 629 |
"""Pass 3: Validate BIO invariants.
|
| 630 |
|
|
|
|
| 659 |
# Summary table
|
| 660 |
lines.append("## Summary")
|
| 661 |
lines.append("")
|
| 662 |
+
lines.append("| File | Cross-boundary | Long token | Compound merges | Foreign splits | Name boundary | Validation errors |")
|
| 663 |
+
lines.append("|------|---------------:|-----------:|----------------:|---------------:|--------------:|------------------:|")
|
| 664 |
total_splits = 0
|
| 665 |
total_long_splits = 0
|
| 666 |
total_merges = 0
|
| 667 |
+
total_foreign = 0
|
| 668 |
+
total_name_boundary = 0
|
| 669 |
total_errors = 0
|
| 670 |
for fname, stats in all_stats.items():
|
| 671 |
n_splits = stats["n_cross_boundary"]
|
| 672 |
n_long = stats["n_split_long"]
|
| 673 |
n_merges = stats["n_merge"]
|
| 674 |
+
n_foreign = stats.get("n_foreign", 0)
|
| 675 |
+
n_name_boundary = stats.get("n_name_boundary", 0)
|
| 676 |
n_errors = stats["n_validation_errors"]
|
| 677 |
total_splits += n_splits
|
| 678 |
total_long_splits += n_long
|
| 679 |
total_merges += n_merges
|
| 680 |
+
total_foreign += n_foreign
|
| 681 |
+
total_name_boundary += n_name_boundary
|
| 682 |
total_errors += n_errors
|
| 683 |
+
lines.append(f"| {fname} | {n_splits:,} | {n_long:,} | {n_merges:,} | {n_foreign:,} | {n_name_boundary:,} | {n_errors:,} |")
|
| 684 |
+
lines.append(f"| **TOTAL** | **{total_splits:,}** | **{total_long_splits:,}** | **{total_merges:,}** | **{total_foreign:,}** | **{total_name_boundary:,}** | **{total_errors:,}** |")
|
| 685 |
lines.append("")
|
| 686 |
|
| 687 |
# Merge term frequency across all files
|
|
|
|
| 722 |
lines.append(f"- ... and {len(stats['split_long_examples']) - 30} more")
|
| 723 |
lines.append("")
|
| 724 |
|
| 725 |
+
# Foreign word split examples
|
| 726 |
+
lines.append("## Foreign Word Split Examples")
|
| 727 |
+
lines.append("")
|
| 728 |
+
for fname, stats in all_stats.items():
|
| 729 |
+
examples = stats.get("foreign_examples", [])
|
| 730 |
+
if examples:
|
| 731 |
+
lines.append(f"### {fname}")
|
| 732 |
+
lines.append("")
|
| 733 |
+
for ex in examples[:30]:
|
| 734 |
+
lines.append(f"- {ex}")
|
| 735 |
+
if len(examples) > 30:
|
| 736 |
+
lines.append(f"- ... and {len(examples) - 30} more")
|
| 737 |
+
lines.append("")
|
| 738 |
+
|
| 739 |
+
# Name boundary split examples
|
| 740 |
+
lines.append("## Name Boundary Split Examples")
|
| 741 |
+
lines.append("")
|
| 742 |
+
for fname, stats in all_stats.items():
|
| 743 |
+
examples = stats.get("name_boundary_examples", [])
|
| 744 |
+
if examples:
|
| 745 |
+
lines.append(f"### {fname}")
|
| 746 |
+
lines.append("")
|
| 747 |
+
for ex in examples[:30]:
|
| 748 |
+
lines.append(f"- {ex}")
|
| 749 |
+
if len(examples) > 30:
|
| 750 |
+
lines.append(f"- ... and {len(examples) - 30} more")
|
| 751 |
+
lines.append("")
|
| 752 |
+
|
| 753 |
report = "\n".join(lines)
|
| 754 |
|
| 755 |
if output_path:
|
|
|
|
| 764 |
# Main
|
| 765 |
# ============================================================================
|
| 766 |
|
| 767 |
+
def process_file(filepath, vocab=None, viet_syllables=None, sentences=None, dry_run=False):
|
| 768 |
"""Process a single BIO file: apply fixes, optionally write back.
|
| 769 |
|
| 770 |
Args:
|
| 771 |
filepath: Path to BIO file.
|
| 772 |
vocab: Set of known 2-4 syllable words for long-token splitting.
|
| 773 |
+
If None, Pass 1.5 and 2.75 are skipped.
|
| 774 |
+
viet_syllables: Set of common Vietnamese syllables for foreign word
|
| 775 |
+
filtering. If None, Pass 2.5 is skipped.
|
| 776 |
sentences: Pre-parsed sentences (avoids re-parsing if already loaded).
|
| 777 |
dry_run: If True, report changes without modifying files.
|
| 778 |
|
|
|
|
| 791 |
n_cross_boundary = 0
|
| 792 |
n_split_long = 0
|
| 793 |
n_merge = 0
|
| 794 |
+
n_foreign = 0
|
| 795 |
+
n_name_boundary = 0
|
| 796 |
n_validation_errors = 0
|
| 797 |
cross_boundary_examples = []
|
| 798 |
split_long_examples = []
|
| 799 |
+
foreign_examples = []
|
| 800 |
+
name_boundary_examples = []
|
| 801 |
merge_term_counts = Counter()
|
| 802 |
|
| 803 |
for sent in sentences:
|
|
|
|
| 825 |
term = ch.split('"')[1] if '"' in ch else ch
|
| 826 |
merge_term_counts[term.lower()] += 1
|
| 827 |
|
| 828 |
+
# Pass 2.5: Split foreign word merges
|
| 829 |
+
if viet_syllables is not None:
|
| 830 |
+
tags, fw_changes = fix_foreign_words(syls, tags, viet_syllables)
|
| 831 |
+
n_foreign += len(fw_changes)
|
| 832 |
+
for ch in fw_changes:
|
| 833 |
+
foreign_examples.append(f"[{sent['sent_id']}] {ch}")
|
| 834 |
+
|
| 835 |
+
# Pass 2.75: Split proper name boundary merges
|
| 836 |
+
if vocab is not None:
|
| 837 |
+
tags, nb_changes = fix_proper_name_boundary(syls, tags, vocab)
|
| 838 |
+
n_name_boundary += len(nb_changes)
|
| 839 |
+
for ch in nb_changes:
|
| 840 |
+
name_boundary_examples.append(f"[{sent['sent_id']}] {ch}")
|
| 841 |
+
|
| 842 |
# Pass 3: Validate
|
| 843 |
errors = validate_sentence(syls, tags)
|
| 844 |
n_validation_errors += len(errors)
|
|
|
|
| 852 |
sum(1 for t in s["tags"] if t == "B-W") for s in sentences
|
| 853 |
)
|
| 854 |
|
| 855 |
+
print(f" Cross-boundary splits: {n_cross_boundary:,}")
|
| 856 |
+
print(f" Long token splits: {n_split_long:,}")
|
| 857 |
+
print(f" Compound merges: {n_merge:,}")
|
| 858 |
+
print(f" Foreign word splits: {n_foreign:,}")
|
| 859 |
+
print(f" Name boundary splits: {n_name_boundary:,}")
|
| 860 |
+
print(f" Validation errors: {n_validation_errors:,}")
|
| 861 |
print(f" Words: {total_words_before:,} → {total_words_after:,} "
|
| 862 |
f"(Δ{total_words_after - total_words_before:+,})")
|
| 863 |
assert total_syllables_before == total_syllables_after, \
|
|
|
|
| 877 |
"n_cross_boundary": n_cross_boundary,
|
| 878 |
"n_split_long": n_split_long,
|
| 879 |
"n_merge": n_merge,
|
| 880 |
+
"n_foreign": n_foreign,
|
| 881 |
+
"n_name_boundary": n_name_boundary,
|
| 882 |
"n_validation_errors": n_validation_errors,
|
| 883 |
"cross_boundary_examples": cross_boundary_examples,
|
| 884 |
"split_long_examples": split_long_examples,
|
| 885 |
+
"foreign_examples": foreign_examples,
|
| 886 |
+
"name_boundary_examples": name_boundary_examples,
|
| 887 |
"merge_term_counts": merge_term_counts,
|
| 888 |
"words_before": total_words_before,
|
| 889 |
"words_after": total_words_after,
|
|
|
|
| 929 |
vocab = build_split_vocab(all_sents)
|
| 930 |
print(f"\nBuilt split vocab: {len(vocab):,} entries "
|
| 931 |
f"(2-4 syllable words with count >= 5)")
|
| 932 |
+
viet_syllables = build_viet_syllables(all_sents)
|
| 933 |
+
print(f"Built Vietnamese syllable set: {len(viet_syllables):,} entries "
|
| 934 |
+
f"(syllables with count >= 50)")
|
| 935 |
|
| 936 |
# Phase 3: Process each file
|
| 937 |
all_stats = {}
|
|
|
|
| 940 |
_, stats = process_file(
|
| 941 |
path,
|
| 942 |
vocab=vocab,
|
| 943 |
+
viet_syllables=viet_syllables,
|
| 944 |
sentences=all_sentences_by_file[path],
|
| 945 |
dry_run=args.dry_run,
|
| 946 |
)
|
|
|
|
| 958 |
total_splits = sum(s["n_cross_boundary"] for s in all_stats.values())
|
| 959 |
total_long = sum(s["n_split_long"] for s in all_stats.values())
|
| 960 |
total_merges = sum(s["n_merge"] for s in all_stats.values())
|
| 961 |
+
total_foreign = sum(s.get("n_foreign", 0) for s in all_stats.values())
|
| 962 |
+
total_name_boundary = sum(s.get("n_name_boundary", 0) for s in all_stats.values())
|
| 963 |
total_errors = sum(s["n_validation_errors"] for s in all_stats.values())
|
| 964 |
print(f"\n{'='*50}")
|
| 965 |
print(f"TOTAL: {total_splits:,} cross-boundary splits, "
|
| 966 |
f"{total_long:,} long token splits, "
|
| 967 |
f"{total_merges:,} compound merges, "
|
| 968 |
+
f"{total_foreign:,} foreign word splits, "
|
| 969 |
+
f"{total_name_boundary:,} name boundary splits, "
|
| 970 |
f"{total_errors:,} validation errors")
|
| 971 |
if args.dry_run:
|
| 972 |
print("(dry run — no files modified)")
|
|
@@ -1,8 +1,6 @@
|
|
| 1 |
<View>
|
| 2 |
<Header value="Word Segmentation: Select each word as a span. Multi-syllable words = one span."/>
|
| 3 |
<Header value="Sentence: $sent_id | Rank: $rank" size="4"/>
|
| 4 |
-
<Header value="Dictionary: green = in dict, red = NOT in dict" size="5"/>
|
| 5 |
-
<HyperText name="dict_view" value="$dict_html"/>
|
| 6 |
<Labels name="label" toName="text" choice="single">
|
| 7 |
<Label value="W" background="#4CAF50" hotkey="w"/>
|
| 8 |
<Label value="WH" background="#2196F3" hotkey="h"/>
|
|
|
|
| 1 |
<View>
|
| 2 |
<Header value="Word Segmentation: Select each word as a span. Multi-syllable words = one span."/>
|
| 3 |
<Header value="Sentence: $sent_id | Rank: $rank" size="4"/>
|
|
|
|
|
|
|
| 4 |
<Labels name="label" toName="text" choice="single">
|
| 5 |
<Label value="W" background="#4CAF50" hotkey="w"/>
|
| 6 |
<Label value="WH" background="#2196F3" hotkey="h"/>
|
|
@@ -12,9 +12,8 @@ When --model is provided, computes per-span confidence scores from CRF
|
|
| 12 |
marginal probabilities. Each word span gets score = min confidence across
|
| 13 |
its syllables, so words with any uncertain boundary get a low score.
|
| 14 |
|
| 15 |
-
When --dict is provided (standalone or auto-detected from model dir)
|
| 16 |
-
|
| 17 |
-
- meta.dict: dict status shown in Region Details when a span is selected
|
| 18 |
|
| 19 |
Usage:
|
| 20 |
uv run src/ls_import_ws.py [--validate]
|
|
@@ -23,7 +22,6 @@ Usage:
|
|
| 23 |
"""
|
| 24 |
|
| 25 |
import argparse
|
| 26 |
-
import html
|
| 27 |
import json
|
| 28 |
import sys
|
| 29 |
import unicodedata
|
|
@@ -214,60 +212,6 @@ def add_dict_meta(spans, dictionary):
|
|
| 214 |
span["meta"] = meta
|
| 215 |
|
| 216 |
|
| 217 |
-
def build_dict_html(spans, text, dictionary):
|
| 218 |
-
"""Build inline HTML with colored spans showing dictionary status.
|
| 219 |
-
|
| 220 |
-
Multi-syllable words are colored green (in dict) or red (not in dict).
|
| 221 |
-
Single-syllable words are shown without color.
|
| 222 |
-
|
| 223 |
-
Args:
|
| 224 |
-
spans: list of span dicts from bio_to_spans()
|
| 225 |
-
text: the sentence text
|
| 226 |
-
dictionary: set of NFC-normalized lowercase dictionary entries
|
| 227 |
-
|
| 228 |
-
Returns:
|
| 229 |
-
HTML string for the HyperText panel
|
| 230 |
-
"""
|
| 231 |
-
parts = []
|
| 232 |
-
prev_end = 0
|
| 233 |
-
|
| 234 |
-
for span in spans:
|
| 235 |
-
start = span["value"]["start"]
|
| 236 |
-
end = span["value"]["end"]
|
| 237 |
-
span_text = span["value"]["text"]
|
| 238 |
-
n_syllables = span_text.count(" ") + 1
|
| 239 |
-
|
| 240 |
-
# Add any gap text (spaces between spans)
|
| 241 |
-
if start > prev_end:
|
| 242 |
-
parts.append(html.escape(text[prev_end:start]))
|
| 243 |
-
|
| 244 |
-
escaped = html.escape(span_text)
|
| 245 |
-
if n_syllables > 1:
|
| 246 |
-
normalized = nfc(span_text.lower().strip())
|
| 247 |
-
in_dict = normalized in dictionary
|
| 248 |
-
if in_dict:
|
| 249 |
-
parts.append(
|
| 250 |
-
f'<span style="background:#c8e6c9;padding:1px 3px;'
|
| 251 |
-
f'border-radius:3px">{escaped}</span>'
|
| 252 |
-
)
|
| 253 |
-
else:
|
| 254 |
-
parts.append(
|
| 255 |
-
f'<span style="background:#ffcdd2;padding:1px 3px;'
|
| 256 |
-
f'border-radius:3px;text-decoration:underline;'
|
| 257 |
-
f'text-decoration-color:red">{escaped}</span>'
|
| 258 |
-
)
|
| 259 |
-
else:
|
| 260 |
-
parts.append(escaped)
|
| 261 |
-
|
| 262 |
-
prev_end = end
|
| 263 |
-
|
| 264 |
-
# Trailing text
|
| 265 |
-
if prev_end < len(text):
|
| 266 |
-
parts.append(html.escape(text[prev_end:]))
|
| 267 |
-
|
| 268 |
-
return '<div style="font-size:15px;line-height:1.8;padding:4px 0">' + " ".join(parts) + "</div>"
|
| 269 |
-
|
| 270 |
-
|
| 271 |
def validate_spans(spans, text, syllables):
|
| 272 |
"""Validate that spans cover every character in text without gaps/overlaps."""
|
| 273 |
text_len = len(text)
|
|
@@ -403,46 +347,33 @@ def main():
|
|
| 403 |
tsv_rows = parse_tsv(args.tsv)
|
| 404 |
print(f"Loaded {len(tsv_rows)} rows from {args.tsv}")
|
| 405 |
|
| 406 |
-
# Parse BIO files
|
| 407 |
-
|
| 408 |
-
for split in ("dev", "test"):
|
| 409 |
bio_path = root / f"udd-ws-v1.1-{split}.txt"
|
| 410 |
if not bio_path.exists():
|
| 411 |
-
print(f"WARNING: {bio_path} not found, skipping")
|
| 412 |
continue
|
| 413 |
sentences = parse_bio_file(bio_path)
|
| 414 |
-
bio_data[split] = sentences
|
| 415 |
print(f"Loaded {len(sentences)} sentences from {bio_path}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
# Build tasks
|
| 418 |
tasks = []
|
| 419 |
errors = []
|
| 420 |
|
| 421 |
for row in tsv_rows:
|
| 422 |
-
|
| 423 |
-
sent_idx = row["sent_idx"]
|
| 424 |
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
if sent_idx >= len(bio_data[split]):
|
| 429 |
-
errors.append(
|
| 430 |
-
f"Rank {row['rank']}: sent_idx {sent_idx} >= "
|
| 431 |
-
f"{len(bio_data[split])} sentences in {split}"
|
| 432 |
-
)
|
| 433 |
continue
|
| 434 |
|
| 435 |
-
|
| 436 |
-
text = nfc(" ".join(sent["syllables"]))
|
| 437 |
-
|
| 438 |
-
# Verify text matches TSV
|
| 439 |
-
tsv_text = nfc(row["text"])
|
| 440 |
-
if text != tsv_text:
|
| 441 |
-
errors.append(
|
| 442 |
-
f"Rank {row['rank']}: text mismatch:\n"
|
| 443 |
-
f" BIO: {text!r}\n TSV: {tsv_text!r}"
|
| 444 |
-
)
|
| 445 |
-
continue
|
| 446 |
|
| 447 |
# Compute per-syllable confidence if CRF model available
|
| 448 |
confidences = None
|
|
@@ -471,20 +402,15 @@ def main():
|
|
| 471 |
# Task-level prediction score = 1 - AL uncertainty score
|
| 472 |
pred_score = round(1.0 - row["score"], 6)
|
| 473 |
|
| 474 |
-
# Add dictionary metadata to spans
|
| 475 |
-
dict_html = ""
|
| 476 |
if dictionary:
|
| 477 |
add_dict_meta(spans, dictionary)
|
| 478 |
-
dict_html = build_dict_html(spans, text, dictionary)
|
| 479 |
|
| 480 |
task = {
|
| 481 |
"data": {
|
| 482 |
"text": text,
|
| 483 |
"sent_id": sent["sent_id"],
|
| 484 |
"rank": row["rank"],
|
| 485 |
-
"file": split,
|
| 486 |
-
"sent_idx": sent_idx,
|
| 487 |
-
"dict_html": dict_html,
|
| 488 |
},
|
| 489 |
"predictions": [{
|
| 490 |
"model_version": "silver_crf_v1.1",
|
|
|
|
| 12 |
marginal probabilities. Each word span gets score = min confidence across
|
| 13 |
its syllables, so words with any uncertain boundary get a low score.
|
| 14 |
|
| 15 |
+
When --dict is provided (standalone or auto-detected from model dir),
|
| 16 |
+
adds meta.dict to each span (shown in Region Details when selected).
|
|
|
|
| 17 |
|
| 18 |
Usage:
|
| 19 |
uv run src/ls_import_ws.py [--validate]
|
|
|
|
| 22 |
"""
|
| 23 |
|
| 24 |
import argparse
|
|
|
|
| 25 |
import json
|
| 26 |
import sys
|
| 27 |
import unicodedata
|
|
|
|
| 212 |
span["meta"] = meta
|
| 213 |
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
def validate_spans(spans, text, syllables):
|
| 216 |
"""Validate that spans cover every character in text without gaps/overlaps."""
|
| 217 |
text_len = len(text)
|
|
|
|
| 347 |
tsv_rows = parse_tsv(args.tsv)
|
| 348 |
print(f"Loaded {len(tsv_rows)} rows from {args.tsv}")
|
| 349 |
|
| 350 |
+
# Parse BIO files and build text-based index
|
| 351 |
+
bio_by_text = {}
|
| 352 |
+
for split in ("dev", "test", "train"):
|
| 353 |
bio_path = root / f"udd-ws-v1.1-{split}.txt"
|
| 354 |
if not bio_path.exists():
|
|
|
|
| 355 |
continue
|
| 356 |
sentences = parse_bio_file(bio_path)
|
|
|
|
| 357 |
print(f"Loaded {len(sentences)} sentences from {bio_path}")
|
| 358 |
+
for sent in sentences:
|
| 359 |
+
key = nfc(" ".join(sent["syllables"]))
|
| 360 |
+
bio_by_text[key] = sent
|
| 361 |
+
|
| 362 |
+
print(f"Text index: {len(bio_by_text)} unique sentences")
|
| 363 |
|
| 364 |
# Build tasks
|
| 365 |
tasks = []
|
| 366 |
errors = []
|
| 367 |
|
| 368 |
for row in tsv_rows:
|
| 369 |
+
tsv_text = nfc(row["text"])
|
|
|
|
| 370 |
|
| 371 |
+
sent = bio_by_text.get(tsv_text)
|
| 372 |
+
if sent is None:
|
| 373 |
+
errors.append(f"Rank {row['rank']}: text not found in BIO files")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 374 |
continue
|
| 375 |
|
| 376 |
+
text = tsv_text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
|
| 378 |
# Compute per-syllable confidence if CRF model available
|
| 379 |
confidences = None
|
|
|
|
| 402 |
# Task-level prediction score = 1 - AL uncertainty score
|
| 403 |
pred_score = round(1.0 - row["score"], 6)
|
| 404 |
|
| 405 |
+
# Add dictionary metadata to spans
|
|
|
|
| 406 |
if dictionary:
|
| 407 |
add_dict_meta(spans, dictionary)
|
|
|
|
| 408 |
|
| 409 |
task = {
|
| 410 |
"data": {
|
| 411 |
"text": text,
|
| 412 |
"sent_id": sent["sent_id"],
|
| 413 |
"rank": row["rank"],
|
|
|
|
|
|
|
|
|
|
| 414 |
},
|
| 415 |
"predictions": [{
|
| 416 |
"model_version": "silver_crf_v1.1",
|
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# /// script
|
| 2 |
+
# requires-python = ">=3.9"
|
| 3 |
+
# dependencies = []
|
| 4 |
+
# ///
|
| 5 |
+
"""Merge gold annotations into fixed silver BIO files.
|
| 6 |
+
|
| 7 |
+
Replaces silver sentences with gold annotations where sent_id matches.
|
| 8 |
+
Produces merged BIO files for CRF training.
|
| 9 |
+
|
| 10 |
+
Usage:
|
| 11 |
+
uv run src/merge_gold_silver.py
|
| 12 |
+
uv run src/merge_gold_silver.py --dry-run
|
| 13 |
+
"""
|
| 14 |
+
|
| 15 |
+
import argparse
|
| 16 |
+
import sys
|
| 17 |
+
from os.path import dirname, isfile, join
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def parse_bio_file(filepath):
|
| 21 |
+
"""Parse BIO file into list of dicts with keys: sent_id, text, syllables, tags."""
|
| 22 |
+
sentences = []
|
| 23 |
+
current = {"sent_id": "", "text": "", "syllables": [], "tags": []}
|
| 24 |
+
|
| 25 |
+
with open(filepath, "r", encoding="utf-8") as f:
|
| 26 |
+
for line in f:
|
| 27 |
+
line = line.rstrip("\n")
|
| 28 |
+
if line.startswith("# sent_id = "):
|
| 29 |
+
current["sent_id"] = line.split("= ", 1)[1]
|
| 30 |
+
continue
|
| 31 |
+
if line.startswith("# text = "):
|
| 32 |
+
current["text"] = line.split("= ", 1)[1]
|
| 33 |
+
continue
|
| 34 |
+
if line.startswith("#"):
|
| 35 |
+
continue
|
| 36 |
+
if not line:
|
| 37 |
+
if current["syllables"]:
|
| 38 |
+
sentences.append(dict(current))
|
| 39 |
+
current = {"sent_id": "", "text": "", "syllables": [], "tags": []}
|
| 40 |
+
continue
|
| 41 |
+
parts = line.split("\t")
|
| 42 |
+
if len(parts) == 2:
|
| 43 |
+
current["syllables"].append(parts[0])
|
| 44 |
+
current["tags"].append(parts[1])
|
| 45 |
+
|
| 46 |
+
if current["syllables"]:
|
| 47 |
+
sentences.append(dict(current))
|
| 48 |
+
|
| 49 |
+
return sentences
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def write_bio_file(sentences, filepath):
|
| 53 |
+
"""Write sentences back to BIO format."""
|
| 54 |
+
with open(filepath, "w", encoding="utf-8") as f:
|
| 55 |
+
for sent in sentences:
|
| 56 |
+
f.write(f"# sent_id = {sent['sent_id']}\n")
|
| 57 |
+
f.write(f"# text = {sent['text']}\n")
|
| 58 |
+
for syl, tag in zip(sent["syllables"], sent["tags"]):
|
| 59 |
+
f.write(f"{syl}\t{tag}\n")
|
| 60 |
+
f.write("\n")
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def main():
|
| 64 |
+
parser = argparse.ArgumentParser(
|
| 65 |
+
description="Merge gold annotations into silver BIO files."
|
| 66 |
+
)
|
| 67 |
+
parser.add_argument(
|
| 68 |
+
"--dry-run", action="store_true",
|
| 69 |
+
help="Report what would change without modifying files"
|
| 70 |
+
)
|
| 71 |
+
args = parser.parse_args()
|
| 72 |
+
|
| 73 |
+
base_dir = dirname(dirname(__file__))
|
| 74 |
+
gold_path = join(base_dir, "gold_ws_cycle1.txt")
|
| 75 |
+
|
| 76 |
+
silver_files = {
|
| 77 |
+
split: join(base_dir, f"udd-ws-v1.1-{split}.txt")
|
| 78 |
+
for split in ("train", "dev", "test")
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
# Check files exist
|
| 82 |
+
if not isfile(gold_path):
|
| 83 |
+
print(f"ERROR: Gold file not found: {gold_path}", file=sys.stderr)
|
| 84 |
+
sys.exit(1)
|
| 85 |
+
for split, path in silver_files.items():
|
| 86 |
+
if not isfile(path):
|
| 87 |
+
print(f"ERROR: Silver file not found: {path}", file=sys.stderr)
|
| 88 |
+
sys.exit(1)
|
| 89 |
+
|
| 90 |
+
# Parse gold
|
| 91 |
+
gold_sentences = parse_bio_file(gold_path)
|
| 92 |
+
gold_by_id = {s["sent_id"]: s for s in gold_sentences}
|
| 93 |
+
print(f"Gold sentences: {len(gold_sentences)}")
|
| 94 |
+
|
| 95 |
+
# Process each silver file
|
| 96 |
+
total_replaced = 0
|
| 97 |
+
for split, path in silver_files.items():
|
| 98 |
+
silver_sentences = parse_bio_file(path)
|
| 99 |
+
replaced = 0
|
| 100 |
+
|
| 101 |
+
for i, sent in enumerate(silver_sentences):
|
| 102 |
+
sid = sent["sent_id"]
|
| 103 |
+
if sid in gold_by_id:
|
| 104 |
+
gold = gold_by_id[sid]
|
| 105 |
+
# Verify syllable alignment
|
| 106 |
+
if sent["syllables"] != gold["syllables"]:
|
| 107 |
+
print(f" WARNING: syllable mismatch for {sid}, skipping")
|
| 108 |
+
continue
|
| 109 |
+
# Replace tags with gold
|
| 110 |
+
silver_sentences[i]["tags"] = gold["tags"]
|
| 111 |
+
replaced += 1
|
| 112 |
+
|
| 113 |
+
print(f" {split}: {replaced} sentences replaced with gold "
|
| 114 |
+
f"(out of {len(silver_sentences)} total)")
|
| 115 |
+
total_replaced += replaced
|
| 116 |
+
|
| 117 |
+
if not args.dry_run and replaced > 0:
|
| 118 |
+
write_bio_file(silver_sentences, path)
|
| 119 |
+
print(f" Written: {path}")
|
| 120 |
+
|
| 121 |
+
print(f"\nTotal: {total_replaced} gold sentences merged into silver")
|
| 122 |
+
|
| 123 |
+
if args.dry_run:
|
| 124 |
+
print("(dry-run mode, no files modified)")
|
| 125 |
+
else:
|
| 126 |
+
# Verify symlinks in tree-1 still point to the right files
|
| 127 |
+
tree1_dir = join(base_dir, "..", "tree-1", "datasets", "udd_ws_v1_1")
|
| 128 |
+
if isfile(join(tree1_dir, "train.txt")):
|
| 129 |
+
import os
|
| 130 |
+
for split in ("train", "dev", "test"):
|
| 131 |
+
link = join(tree1_dir, f"{split}.txt")
|
| 132 |
+
if os.path.islink(link):
|
| 133 |
+
target = os.readlink(link)
|
| 134 |
+
print(f" tree-1 symlink {split}.txt → {target}")
|
| 135 |
+
else:
|
| 136 |
+
print(f" tree-1 {split}.txt is not a symlink (direct file)")
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
if __name__ == "__main__":
|
| 140 |
+
main()
|
|
The diff for this file is too large to render.
See raw diff
|
|
|