cognates and word alignment in bitexts greg kondrak university of alberta

35
Cognates and Cognates and Word Alignment Word Alignment in Bitexts in Bitexts Greg Kondrak Greg Kondrak University of Alberta University of Alberta

Post on 22-Dec-2015

224 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

Cognates and Cognates and Word Alignment Word Alignment

in Bitextsin Bitexts

Greg KondrakGreg Kondrak

University of AlbertaUniversity of Alberta

Page 2: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

22

OutlineOutline

BackgroundBackground Improving LCSRImproving LCSR Cognates vs. word alignment linksCognates vs. word alignment links Experiments & resultsExperiments & results

Page 3: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

33

MotivationMotivation

Claim: words that are orthographically Claim: words that are orthographically similar are more likely to be mutual similar are more likely to be mutual translations than words that are not translations than words that are not similar.similar.

Reason: existence of cognates, which Reason: existence of cognates, which are usually orthographically are usually orthographically andand semantically similar.semantically similar.

Use: Considering cognates can improve Use: Considering cognates can improve word alignment and translation models.word alignment and translation models.

Page 4: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

44

ObjectiveObjective

Evaluation of orthographic Evaluation of orthographic similarity measures in the context similarity measures in the context of word alignment in bitexts. of word alignment in bitexts.

Page 5: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

55

MT applicationsMT applications

sentence alignment sentence alignment word alignmentword alignment improving translation modelsimproving translation models inducing translation lexiconsinducing translation lexicons aid in manual alignmentaid in manual alignment

Page 6: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

66

CognatesCognates

Similar in orthography or Similar in orthography or pronunciation.pronunciation.

Often mutual translations.Often mutual translations. May include:May include:

– genetic cognatesgenetic cognates– lexical loanslexical loans– namesnames– numbersnumbers– punctuationpunctuation

Page 7: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

77

The task of cognate The task of cognate identificationidentification Input: two wordsInput: two words Output: the likelihood that they Output: the likelihood that they

are cognateare cognate One method: compute their One method: compute their

orthographic/phonetic/semantic orthographic/phonetic/semantic similaritysimilarity

Page 8: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

88

ScopeScope

The measures that we consider areThe measures that we consider are language-independentlanguage-independent orthography-basedorthography-based operate on the level of individual operate on the level of individual

lettersletters binary identity functionbinary identity function

Page 9: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

99

Similarity measuresSimilarity measures

Prefix method Prefix method Dice coefficientDice coefficient Longest Common Subsequence Longest Common Subsequence

Ratio (LCSR)Ratio (LCSR) Edit distanceEdit distance Phonetic alignmentPhonetic alignment Many other methodsMany other methods

Page 10: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1010

IDENTIDENT

1 if two words are identical, 0 1 if two words are identical, 0 otherwiseotherwise

The simplest similarity measureThe simplest similarity measure e.g. IDENT(e.g. IDENT(cocolour, lour, cocouleur) = 0uleur) = 0

Page 11: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1111

PREFIXPREFIX

The ratio of the longest common The ratio of the longest common prefix of two words to the length prefix of two words to the length of the longer wordof the longer word

e.g. PREFIX(e.g. PREFIX(cocolour, lour, cocouleur) = 2/7 = uleur) = 2/7 = 0.280.28

Page 12: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1212

DICE coefficientDICE coefficient

The ratio of the number of The ratio of the number of common letter bigrams to the common letter bigrams to the total number of letter bigramstotal number of letter bigrams

e.g. DICE(colour, couleur) = 6/11 = e.g. DICE(colour, couleur) = 6/11 = 0.550.55

coco ol lo ol lo ouou urur

coco ouou ul le eu ul le eu urur

Page 13: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1313

Longest Common Sub-Longest Common Sub-sequence Ratio (LCSR)sequence Ratio (LCSR) The ratio of the longest common The ratio of the longest common

subsequence of two words to the subsequence of two words to the length of the longer word.length of the longer word.

e.g. LCSR(colour, couleur) = 5/7 = e.g. LCSR(colour, couleur) = 5/7 = 0.710.71

cc oo -- ll oo -- uu rr

cc oo uu ll -- ee uu rr

Page 14: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1414

LCSRLCSR

Method of choice in several papersMethod of choice in several papers Weak point: insensitive to word Weak point: insensitive to word

lengthlength ExampleExample

– LCSR(LCSR(walls, allwalls, allééss) = 0.8) = 0.8– LCSR(LCSR(sanctuary, sanctuairesanctuary, sanctuaire) = 0.8) = 0.8

Sometimes a minimal word length Sometimes a minimal word length imposedimposed

A principled solution?A principled solution?

Page 15: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1515

The random modelThe random model

Assumption: strings are Assumption: strings are generated randomly from a given generated randomly from a given distribution of letters.distribution of letters.

Problem: what is the probability Problem: what is the probability of seeing of seeing kk matches between two matches between two strings of length strings of length mm and and nn??

Page 16: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1616

A special caseA special case

Assumption: Assumption: kk=0 (no matches)=0 (no matches) t – alphabet sizet – alphabet size S(n,i) - Stirling number of the S(n,i) - Stirling number of the

second kindsecond kind

mtn

i

itinSi

t

tLCS mn ))(,(

1)0Pr(

),max(

1

Page 17: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1717

The problemThe problem

What is the probability of seeing What is the probability of seeing kk matches between two strings of length matches between two strings of length mm and and nn??

An exact analytical formula is unlikely to An exact analytical formula is unlikely to exist.exist.

A very similar problem has been studied in A very similar problem has been studied in bioinformatics as bioinformatics as statistical significance of statistical significance of alignment scoresalignment scores..

Approximations developed in Approximations developed in bioinformatics are not applicable to words bioinformatics are not applicable to words because of length differences.because of length differences.

Page 18: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1818

Solutions for the Solutions for the general casegeneral case SamplingSampling

– Not reliable for small probability valuesNot reliable for small probability values– Works well for low Works well for low k/nk/n ratios (uninteresting) ratios (uninteresting)– Depends on a given alphabet size and Depends on a given alphabet size and

letter frequenciesletter frequencies– No insightNo insight

Inexact approximation Inexact approximation – Works well for high Works well for high k/nk/n ratios (interesting) ratios (interesting)– Easy to useEasy to use

Page 19: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

1919

Formula 1Formula 1

- probability of a match- probability of a match

))1log(exp(

)1()Pr(

k

k

m

k

n

k

pk

m

k

n

pkLCS

t

j jpp1

2

)Pr()1Pr()Pr( kLCSkLCSkLCS

Page 20: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2020

Formula 1Formula 1

Exact for Exact for k=m=nk=m=n Inexact in generalInexact in general Reason: implicit independence Reason: implicit independence

assumptionassumption Lower bound for the actual probabilityLower bound for the actual probability Good approximation for high Good approximation for high k/nk/n ratios. ratios. Runs into numerical problems for largerRuns into numerical problems for larger

nn

nnn pnL )Pr( ,

Page 21: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2121

Formula 2Formula 2

Expected number of pairs of Expected number of pairs of kk--letter substrings.letter substrings.

Approximates the required Approximates the required probability for high probability for high k/nk/n ratios. ratios.

)Pr()( kLCSpk

m

k

nxE kk

Page 22: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2222

Formula 2Formula 2

Does not work for low Does not work for low k/nk/n ratios. ratios. Not monotonic.Not monotonic. Simpler than Formula 1.Simpler than Formula 1. More robust against numerical More robust against numerical

underflow for very long words.underflow for very long words.

Page 23: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2323

Comparison of both Comparison of both formulasformulas Both are exact for Both are exact for k=m=nk=m=n For k close to max(m,n)For k close to max(m,n)

– both formulas are good both formulas are good approximationsapproximations

– their values are their values are veryvery close close Both can be quickly computed Both can be quickly computed

using dynamic programming.using dynamic programming.

Page 24: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2424

LCSFLCSF

A new similarity measure based on A new similarity measure based on Formula 2.Formula 2.

LCSR(X,Y) = k/nLCSR(X,Y) = k/n LCSF(X,Y) =LCSF(X,Y) = LCSF is as fast as LCSR because its LCSF is as fast as LCSR because its

values that depend only on values that depend only on kk and and n n can be pre-computed and storedcan be pre-computed and stored

)0),logmax( kpk

n

k

n

Page 25: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2525

Evaluation - motivationEvaluation - motivation

Intrinsic evaluation of orthographic Intrinsic evaluation of orthographic similarity is difficult and subjective.similarity is difficult and subjective.

My idea: extrinsic evaluation on My idea: extrinsic evaluation on cognates and word aligned bitexts.cognates and word aligned bitexts.– Most cross-language cognates are Most cross-language cognates are

orthographically similar and vice-versa.orthographically similar and vice-versa.– Cognation is binary and Cognation is binary and notnot subjective subjective

Page 26: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2626

Cognates vs alignment Cognates vs alignment linkslinks Manual identification of cognates Manual identification of cognates

is tedious.is tedious. Manually word-aligned bitexts are Manually word-aligned bitexts are

available, but only some of the available, but only some of the links are between cognates.links are between cognates.

Question #1: can we use Question #1: can we use manually-constructed word manually-constructed word alignment links instead?alignment links instead?

Page 27: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2727

Manual vs automatic Manual vs automatic alignment linksalignment links Automatically word-aligned bitext Automatically word-aligned bitext

are easily obtainable, but a good are easily obtainable, but a good fraction of the links are wrong.fraction of the links are wrong.

Question #2: can we use Question #2: can we use machine-generated word machine-generated word alignment links instead?alignment links instead?

Page 28: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2828

Evaluation Evaluation methodologymethodology Assumption: a word aligned bitextAssumption: a word aligned bitext Treat aligned sentences as bags of Treat aligned sentences as bags of

wordswords Compute similarity for all word pairs Compute similarity for all word pairs Order word pairs by their similarity Order word pairs by their similarity

valuevalue Compute precision against a gold Compute precision against a gold

standardstandard– either a cognate list or alignment linkseither a cognate list or alignment links

Page 29: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

2929

Test dataTest data

Blinker bitext (French-English)Blinker bitext (French-English)– 250 Bible verse pairs250 Bible verse pairs– manual word alignmentmanual word alignment– all cognates manually identifiedall cognates manually identified

Hansards (French-English)Hansards (French-English)– 500 sentences500 sentences– manual and automatic word-alignmentmanual and automatic word-alignment

Romanian-EnglishRomanian-English– 248 sentences248 sentences– manually alignedmanually aligned

Page 30: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3030

Blinker resultsBlinker results

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

Cognates Links

IDENTPREFIXDICELCSRLCSF

Page 31: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3131

Hansards resultsHansards results

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Manual Automatic

IDENTPREFIXDICELCSRLCSF

Page 32: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3232

Romanian-English Romanian-English resultsresults

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Manual

IDENTPREFIXDICELCSRLCSF

Page 33: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3333

ContributionsContributions

We showed that word alignment We showed that word alignment links can be used instead of links can be used instead of cognates for evaluating word cognates for evaluating word similarity measures.similarity measures.

We proposed a new similarity We proposed a new similarity measure which outperforms measure which outperforms LCSR.LCSR.

Page 34: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3434

Future workFuture work

Extend our approach to length Extend our approach to length normalization to edit distance and normalization to edit distance and other similarity measures.other similarity measures.

Incorporate cognate information Incorporate cognate information into statistical MT models as an into statistical MT models as an additional feature function.additional feature function.

Page 35: Cognates and Word Alignment in Bitexts Greg Kondrak University of Alberta

3535

Thank you