Difference between revisions of "Ideas for Google Summer of Code/Weighted transfer rules"

From Apertium
Jump to navigation Jump to search
(Created page with " ==Example== Transfer rules: {|class=wikitable |- ! ID !! Rule !! Input !! Output |- | 1 || <math>x</math> de <math>y</math> → <math>x</math> <math>y</math> || memoria de...")
 
Line 30: Line 30:
 
| || ''La canciller se reúne hoy con el presidente de EE UU para limar asperezas y preparar la cumbre del miércoles con Putin.'' ||
 
| || ''La canciller se reúne hoy con el presidente de EE UU para limar asperezas y preparar la cumbre del miércoles con Putin.'' ||
 
|-
 
|-
| 1 1 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday summit] with Putin. ||
+
| 1 1 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday summit] with Putin. || -74.55
 
|-
 
|-
| 2 1 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday summit] with Putin. ||
+
| 2 1 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday summit] with Putin. || -69.51
 
|-
 
|-
| 3 1 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday summit] with Putin. ||
+
| 3 1 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday summit] with Putin. || -74.47
 
|-
 
|-
| 1 2 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday's summit] with Putin. ||
+
| 1 2 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday's summit] with Putin. || -75.02
 
|-
 
|-
| 2 2 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday's summit] with Putin. ||
+
| 2 2 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday's summit] with Putin. || -69.98
 
|-
 
|-
| 3 2 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday's summit] with Putin. ||
+
| 3 2 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday's summit] with Putin. || -74.94
 
|-
 
|-
| 1 3 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the summit of the Wednesday] with Putin. ||
+
| 1 3 || The chancellor gathers today with [the U.S. president] for mend fences and prepare [the summit of the Wednesday] with Putin. || -82.88
 
|-
 
|-
| 2 3 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the summit of the Wednesday] with Putin. ||
+
| 2 3 || The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the summit of the Wednesday] with Putin. || -77.84
 
|-
 
|-
| 3 3 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the summit of the Wednesday] with Putin. ||
+
| 3 3 || The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the summit of the Wednesday] with Putin. || -82.80
 
|-
 
|-
 
|}
 
|}

Revision as of 14:16, 9 February 2015

Example

Transfer rules:

ID Rule Input Output
1 de memoria de traducción translation memory
2 de 's la hermana de mi novia my girlfriend's sister
3 de of el estado de la cuestión the state of the art

Training

  • Take a big corpus
  • For each sentence:
    • Apply transfer rules
    • For each possible combination of transfer rules
      • Translate the sentence and score on language model
      • Each sentence gets a count 1. This count is shared between the transfer rules.


La canciller se reúne hoy con el presidente de EE UU para limar asperezas y preparar la cumbre del miércoles con Putin.
1 1 The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday summit] with Putin. -74.55
2 1 The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday summit] with Putin. -69.51
3 1 The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday summit] with Putin. -74.47
1 2 The chancellor gathers today with [the U.S. president] for mend fences and prepare [the Wednesday's summit] with Putin. -75.02
2 2 The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the Wednesday's summit] with Putin. -69.98
3 2 The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the Wednesday's summit] with Putin. -74.94
1 3 The chancellor gathers today with [the U.S. president] for mend fences and prepare [the summit of the Wednesday] with Putin. -82.88
2 3 The chancellor gathers today with [the U.S.'s president] for mend fences and prepare [the summit of the Wednesday] with Putin. -77.84
3 3 The chancellor gathers today with [the president of the U.S.] for mend fences and prepare [the summit of the Wednesday] with Putin. -82.80