109 年 國立臺灣大學語言學研究所《語言與計算方法》
第 1 題
- Էրֆէրէ պկտ մե $ htիենդ mg/In եսդ
dear/expensive gift my friend of/from Tokyo lost
(An expensive gift to my friend from Tokyo was lost.)
登入後即可作答並保存紀錄。
本題為語言學研究所考試的經典考題,主要在測試考生對於語言的結構分析能力,以及如何將語言片段與其對應的語意結構進行連結。題目提供了四個不知名語言的句子片段,包含該語言的詞彙、可能的英文翻譯,以及一個英文的句子翻譯。考生需要根據這些資訊,將這些句子片段與後續提供的樹狀結構圖進行配對,並提供說明。
核心概念:
- 詞彙與語意對應: 理解單詞在不同語言中的基本含義,並推測其在句子中的功能。
- 句法結構分析: 辨識句子中的主語、謂語、賓語、修飾語等成分,並理解其語序關係。
- 樹狀結構(句法樹): 語言學中用來表示句子層次結構和詞語之間關係的圖示。
解題步驟與說明:
首先,我們需要仔細分析每一個句子片段的詞彙、可能的英文翻譯,以及最終的英文句子翻譯,試圖推斷出句子的基本結構和詞語的語意功能。
句子 1:
- 原文片段: Էրֆէրէ պկտ մե
第 2 題
- h სევ ინ ըրպէն կարտէն thnnლე გირლ0
I See in urban garden little boy
(I saw a little boy in the city garden.)
登入後即可作答並保存紀錄。
句子 2:
- 原文片段: h სევ ინ ըրպէն կարտէն thnnლე გირლ0
- 詞彙翻譯: I See in urban garden little boy
- 句子翻譯: (I saw a little boy in the city garden.)
分析:
這個句子描述了「我」(I) 看見 (See) 一個「小男孩」(little boy) 在「城市花園」(urban garden) 的情景。
- 主語:I
第 3 題
- ტრონგ ჰუმან ეასილყ რაისէ դհիս լոատ
Strong human easily raise this load
(A strong man will easily lift this load.)
登入後即可作答並保存紀錄。
句子 3:
- 原文片段: ტრონგ ჰუმან ეასილყ რაისէ դհիս լոատ
- 詞彙翻譯: Strong human easily raise this load
- 句子翻譯: (A strong man will easily lift this load.)
分析:
這個句子描述了一個「強壯的人」(Strong man) 能夠「輕鬆地」(easily) 「舉起」(raise) 「這個重物」(this load)。
- 主語:A strong man
- 謂語:will lift (raise)
第 4 題
- Uht վիլլ 378 ტჰის არnhait ინ ոըր ლოხ
She will_put this article in our box
(She will put this article in our box.)
登入後即可作答並保存紀錄。
句子 4:
- 原文片段: Uht վիլլ 378 ტჰის არnhait ინ ոըր ლოხ
- 詞彙翻譯: She will_put this article in our box
- 句子翻譯: (She will put this article in our box.)
分析:
這個句子描述了「她」(She) 會將「這篇文章」(this article) 「放進」(put) 「我們的盒子」(our box) 裡。
- 主語:She
- 謂語:will put
- 賓語:this article
第 Problem.1 題
B. (50%) inter-annotator agreement
An agreement coefficient calculates the amount that annotators agreed on label assignments beyond what is expected by chance. In a prototypical linguistic annotation task, annotators (a.k.s. coders) assign predefined labels (or values) to specific units (words, sentences, chunks, etc.) in the source. To measure the reliability of the annotation, a simple way of reporting agreement between annotators is called raw agreement measure which counts the number of items for which they provide identical labels, and report that number as a percentage of the total to be annotated.
Problem.1 (15%)
Why raw agreement does not imply that the annotation process is reliable? Provide examples to support your arguments.
In corpus and computational linguistics, a more accepted way is to measure the reliability of agreement by using a coefficient from the kappa/alpha family. For instance, Krippendorff's alpha (a)'s general form is:
where is the observed disagreement among values assigned to units of analysis:
and is the disagreement one would expect when the coding of units is attributable to chance rather than to the properties of these units:
The arguments in the two disagreement measures, , , and , refer to the frequencies of values in coincidence matrices, to be defined below.
(Krippendorff, 2011)
Take the following nominal data coded by two annotators for example, the computational steps involve:
-
Construct a 2-by-12 rating table
Items judged: 1 2 3 4 5 6 7 8 9 10 11 12
Ben: a a b b d c c e d d a
Gerry: a b a b b c c e d d a -
Transform it into a coincidence matrix.
Values:
1..k
Where Number of c-k pairs in unit u specifically:
a-b pair in unit 1
b-a pair in unit 1
a-a pairs in unit 2
b-b pairs in unit 3 + 2 b-b pairs in unit 4
and so forth.
is the number of a's
is the number of b's
and so forth.
is the total number of values for two observers:
- Compute alpha (a):
Problem.2 (35%)
We can use NLTK metrics package to calculate the inter-annotator agreement for this toy example. What'd be expected in the result? Calculate it manually based on the formulas.
from nltk.metrics.agreement import AnnotationTask
from nltk.metrics import binary_distance
annotation_triples = [{'Ben', '1', '1'),
登入後即可作答並保存紀錄。
核心觀念:
本題探討的是「標註一致性」(inter-annotator agreement),特別是「原始一致性」(raw agreement) 與「可靠性」(reliability) 之間的關係,以及如何使用更為穩健的統計方法(如 Krippendorff's alpha)來衡量標註品質。
Problem.1 (15%): 原始一致性為何不等於可靠性?
詳解:
原始一致性 (raw agreement) 僅計算兩位(或多位)標註者在多少比例的項目上給出了完全相同的標註。例如,如果總共有 100 個項目,標註者 A 和 B 在 80 個項目上達成一致,則原始一致性為 80%。
然而,原始一致性有幾個嚴重的缺點,無法保證標註過程的可靠性:
- 未排除機會一致性 (Chance Agreement): 原始一致性沒有考慮到標註者可能僅僅因為隨機猜測而達成一致的情況。如果標註類別很少,或者某些類別非常普遍,那麼即使標註者並不真正理解資料,他們也有很高的機率隨機達成一致。
- 無法反映標註類別的分布: 如果其中一個標註類別出現的頻率非常高,標註者即使都選擇這個最頻繁的類別,原始一致性也會很高,但這並不代表他們對資料有深入的理解。
- 對錯誤標註的敏感度低: 原始一致性只計算「相同」,而不考慮「錯誤」。兩個標註者可能都錯誤地標記了一個項目,但只要他們都標記為相同,原始一致性就會計入。
舉例說明:
假設我們有一個非常簡單的標註任務:判斷一個詞語是「正面」還是「「負面」。
- 情境一:資料本身高度偏斜
第 Problem.2 題
Problem.2 (35%)
We can use NLTK metrics package to calculate the inter-annotator agreement for this toy
example. What'd be expected in the result? Calculate it manually based on the formulas.
from nltk.metrics.agreement import AnnotationTask
from nltk.metrics import binary_distance
annotation_triples = [{'Ben', '1', '1'),
('Gerry', '1', '2'),
('Ben', '2', '1'),
('Gerry', '2', '1'),
('Ben', '3', '2'),
('Gerry', '3', '2'),
('Ben', '4', '2'),
('Gerry', '4', '2'),
('Ben', '5', '4'),
('Gerry', '5', '2'),
('Ben', '6', '3'),
('Gerry', '6', '3'),
('Ben', '7', '3'),
('Gerry', '7', '3'),
('Ben', '8', '3'),
('Gerry', '8', '3'),
('Ben', '9', '5'),
('Gerry', '9', '5'),
('Ben', '10', '4'),
('Gerry', '10', '4'),
('Ben', '11', '4'),
('Gerry', '11', '4'),
('Ben', '12', '1'),
('Gerry', '12', '4')]
t = AnnotationTask (annotation_triples, distance = binary_distance)
result = t.alpha()
登入後即可作答並保存紀錄。
核心觀念
本題計算的是 Krippendorff’s alpha,用來衡量多位標註者的一致程度。程式中的 binary_distance 為名目尺度距離:
Alpha 定義為:
其中:
- :實際觀察到的不一致程度。
- :假設標註隨機分配時的預期不一致程度。
解題方法
12 題中,兩位標註者不一致的題號為:
- 第 1 題: 與
- 第 5 題: 與
- 第 12 題: 與
因此共有 3 題不一致、9 題一致。
各類別的總標註次數如下:
| 類別 | Ben | Gerry | 總數 |
|---|---|---|---|
| 1 | 3 | 1 | 4 |
| 2 | 2 | 4 | 6 |
| 3 | 3 | 3 | 6 |
| 4 | 3 | 3 | 6 |
| 5 | 1 | 1 | 2 |
| 合計 | 12 | 12 |
實際不一致程度為:
預期不一致程度使用不重複抽樣:
其中:
所以:
代入 alpha: