Statistical Machine Translation Foundations › From Alignments to Phrase Pairs
Language AI HandbookAll chapters Word-level translation is obviously insufficient. Idioms, collocations, and morphology all demand larger units. The move that defined phrase-based SMT was to derive those units from the alignments rather than annotate them: any contiguous source span that is consistently aligned to a contiguous target span becomes a phrase pair, with no requirement that it be a linguistic constituent.
Koehn, Och, and Marcu (2003) compared phrase extraction methods and showed how alignment-based extraction learns multiword entries without syntactic annotations.
A dictionary from source phrases to a list of candidate target phrases, each with one or more scores (direct and inverse translation probability, lexical weights) and often a count. Entries are induced automatically from word-aligned bitext; "phrase" here means "contiguous token sequence," not "syntactic constituent."
Extracting Consistent Phrase Pairs
The extraction rule (Koehn, Och, and Marcu, 2003) is a consistency condition. For a source span and a target span :
- At least one alignment point connects the two spans.
- Every alignment point whose source index is in has its target index in .
- Every alignment point whose target index is in has its source index in .
Conditions 2 and 3 require that all links involving either span stay inside both spans. Extractors can start with the shortest compatible target span and extend it across neighboring unaligned tokens. A length- sentence has nonempty contiguous spans. A maximum phrase length reduces the number of candidates; the pinned Moses phrase-based trainer defaults to seven tokens.
The test operates on token spans. For example, if “look up the word” aligns to “busca la palabra,” a consistent pair can include just the first two target tokens and their linked source span, even though “busca la” is not a complete phrase in the syntactic sense. The extraction test depends on the supplied links.
Links may cross inside the proposed spans. A candidate is inconsistent when a link connects a position inside one span to a position outside the other span. A single misplaced boundary-crossing link can therefore prevent the extractor from retaining that phrase pair.
Scoring the Phrase Table
For phrase extraction and counting here, is the phrase we condition on and is its paired phrase. The English–Zeta decoder learns that direction from English to Zeta. A relative-frequency estimate is
A phrase seen once with only one observed partner gets a relative-frequency estimate of 1.0 in that direction. The inverse probability uses the same pair count and sums over conditioning phrases paired with in the denominator. Both estimates can equal 1.0 if neither phrase has another observed partner. Keeping both as weighted features exposes directional ambiguity, while the count shows how much data supports the estimate.
Moses commonly uses direct and inverse phrase probabilities and direct and inverse lexical weights. For generated word , let be the set of conditioning positions aligned to it within the phrase pair. Let be the word-level probability estimated from aligned counts. Use the special NULL word when is empty. Koehn, Och, and Marcu (2003), section 4.4.
For a phrase pair with the conditioning phrase “house” and the generated phrase “la casa,” suppose “casa” aligns to “house” and “la” is unaligned. If and , the lexical weight is . These are illustrative probabilities. The lexical weight adds word-level evidence as a separate feature.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!