edu.umn.cs.nlp.mt.tools
Class CalculatePhrasePairLexProbs
java.lang.Object
edu.umn.cs.nlp.mt.tools.CalculatePhrasePairLexProbs
public class CalculatePhrasePairLexProbs
- extends Object
Earlier steps extracted phrase pairs from an aligned corpus;
each phrase pair at that stage has an associated relative frequency weight
and preliminary source-to-target and target-to-source
lexical translation probabilities.
This program calculates the actual lexical translation probabilities using weighted averaging.
This program uses real probabilities, not logprobs.
- Version:
- $LastChangedDate: 2007-11-26 10:42:44 -0600 (Mon, 26 Nov 2007) $
- Author:
- Lane Schwartz
- See Also:
2 of "A Hierarchical Phrase-Based Model for Statistical Machine Translation" by David Chiang (ACL, 2005)
,
4.4 of "Statistical Phrase-Based Translation" by Philipp Koehn, Franz Josef Och, & Daniel Marcu (HLT-NAACL, 2003)
Method Summary |
static void |
calculate(Scanner input,
String input_delimiter,
Writer output,
String output_delimiter)
|
static void |
main(String[] args)
Calculates the actual lexical translation probability (in one direction only)
for each phrase pair using weighted averaging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalculatePhrasePairLexProbs
public CalculatePhrasePairLexProbs()
calculate
public static void calculate(Scanner input,
String input_delimiter,
Writer output,
String output_delimiter)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
- Calculates the actual lexical translation probability (in one direction only)
for each phrase pair using weighted averaging.
- Parameters:
args
-