109 年 國立臺灣大學語言學研究所《語言與計算方法》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題

  1. Էրֆէրէ պկտ մե $ htիենդ mg/In եսդ
    dear/expensive gift my friend of/from Tokyo lost
    (An expensive gift to my friend from Tokyo was lost.)
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

本題為語言學研究所考試的經典考題,主要在測試考生對於語言的結構分析能力,以及如何將語言片段與其對應的語意結構進行連結。題目提供了四個不知名語言的句子片段,包含該語言的詞彙、可能的英文翻譯,以及一個英文的句子翻譯。考生需要根據這些資訊,將這些句子片段與後續提供的樹狀結構圖進行配對,並提供說明。

核心概念:

  • 詞彙與語意對應: 理解單詞在不同語言中的基本含義,並推測其在句子中的功能。
  • 句法結構分析: 辨識句子中的主語、謂語、賓語、修飾語等成分,並理解其語序關係。
  • 樹狀結構(句法樹): 語言學中用來表示句子層次結構和詞語之間關係的圖示。

解題步驟與說明:

首先,我們需要仔細分析每一個句子片段的詞彙、可能的英文翻譯,以及最終的英文句子翻譯,試圖推斷出句子的基本結構和詞語的語意功能。

句子 1:

  • 原文片段: Էրֆէրէ պկտ մե
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題

  1. h სევ ინ ըրպէն կարտէն thnnლე გირლ0
    I See in urban garden little boy
    (I saw a little boy in the city garden.)
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

句子 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 題

  1. ტრონგ ჰუმან ეასილყ რაისէ դհիս լոատ
    Strong human easily raise this load
    (A strong man will easily lift this load.)
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

句子 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 題

  1. Uht վիլլ 378 ტჰის არnhait ინ ոըր ლოხ
    She will_put this article in our box
    (She will put this article in our box.)
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

句子 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:
α=1−DoDe\alpha = 1 - \frac{D_o}{D_e}
where DoD_o is the observed disagreement among values assigned to units of analysis:
Do=∑k∑loklnknln(n−1)D_o = \sum_{k} \sum_{l} o_{kl} \frac{n_k n_l}{n(n-1)}
and DeD_e is the disagreement one would expect when the coding of units is attributable to chance rather than to the properties of these units:
De=1n(n−1)∑knk(nk−1)D_e = \frac{1}{n(n-1)} \sum_{k} n_k (n_k - 1)
The arguments in the two disagreement measures, oklo_{kl}, nkn_k, nln_l and nn, 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:

  1. 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

  2. Transform it into a coincidence matrix.

Values:
1..k
o11..o1ko_{11}..o_{1k}
n1..nkn_1..n_k
n=∑∑okln = \sum \sum o_{kl}

Where okl=∑uo_{kl} = \sum_u Number of c-k pairs in unit u specifically:
oab=1o_{ab} = 1 a-b pair in unit 1
oba=1o_{ba} = 1 b-a pair in unit 1
oaa=2o_{aa} = 2 a-a pairs in unit 2
obb=4=2o_{bb} = 4 = 2 b-b pairs in unit 3 + 2 b-b pairs in unit 4
and so forth.
na=4n_a = 4 is the number of a's
nb=6n_b = 6 is the number of b's
and so forth.
n=24n = 24 is the total number of values for two observers: n=2Nn = 2N

  1. Compute alpha (a):
    αnominal=1−DoDe\alpha_{nominal} = 1 - \frac{D_o}{D_e}

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'),

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 3 頁原卷第 4 頁原卷第 5 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念:
本題探討的是「標註一致性」(inter-annotator agreement),特別是「原始一致性」(raw agreement) 與「可靠性」(reliability) 之間的關係,以及如何使用更為穩健的統計方法(如 Krippendorff's alpha)來衡量標註品質。

Problem.1 (15%): 原始一致性為何不等於可靠性?

詳解:
原始一致性 (raw agreement) 僅計算兩位(或多位)標註者在多少比例的項目上給出了完全相同的標註。例如,如果總共有 100 個項目,標註者 A 和 B 在 80 個項目上達成一致,則原始一致性為 80%。

然而,原始一致性有幾個嚴重的缺點,無法保證標註過程的可靠性:

  1. 未排除機會一致性 (Chance Agreement): 原始一致性沒有考慮到標註者可能僅僅因為隨機猜測而達成一致的情況。如果標註類別很少,或者某些類別非常普遍,那麼即使標註者並不真正理解資料,他們也有很高的機率隨機達成一致。
  2. 無法反映標註類別的分布: 如果其中一個標註類別出現的頻率非常高,標註者即使都選擇這個最頻繁的類別,原始一致性也會很高,但這並不代表他們對資料有深入的理解。
  3. 對錯誤標註的敏感度低: 原始一致性只計算「相同」,而不考慮「錯誤」。兩個標註者可能都錯誤地標記了一個項目,但只要他們都標記為相同,原始一致性就會計入。

舉例說明:

假設我們有一個非常簡單的標註任務:判斷一個詞語是「正面」還是「「負面」。

  • 情境一:資料本身高度偏斜
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 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()

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 5 頁原卷第 6 頁

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題計算的是 Krippendorff’s alpha,用來衡量多位標註者的一致程度。程式中的 binary_distance 為名目尺度距離:

δ(c1,c2)={0,c1=c21,c1≠c2\delta(c_1,c_2)= \begin{cases} 0,&c_1=c_2\\ 1,&c_1\ne c_2 \end{cases}

Alpha 定義為:

α=1−DoDe\alpha=1-\frac{D_o}{D_e}

其中:

  • DoD_o:實際觀察到的不一致程度。
  • DeD_e:假設標註隨機分配時的預期不一致程度。

解題方法

12 題中,兩位標註者不一致的題號為:

  • 第 1 題:11 與 22
  • 第 5 題:44 與 22
  • 第 12 題:11 與 44

因此共有 3 題不一致、9 題一致。

各類別的總標註次數如下:

類別BenGerry總數 ncn_c
1314
2246
3336
4336
5112
合計1212n=24n=24

實際不一致程度為:

Do=312=14D_o=\frac{3}{12}=\frac14

預期不一致程度使用不重複抽樣:

De=1−∑cnc(nc−1)n(n−1)D_e =1-\frac{\sum_c n_c(n_c-1)}{n(n-1)}

其中:

∑cnc(nc−1)=4(3)+6(5)+6(5)+6(5)+2(1)=104\begin{aligned} \sum_c n_c(n_c-1) &=4(3)+6(5)+6(5)+6(5)+2(1)\\ &=104 \end{aligned}

所以:

De=1−10424(23)=1−104552=5669D_e =1-\frac{104}{24(23)} =1-\frac{104}{552} =\frac{56}{69}

代入 alpha:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題