Skip to content

INFR11133/hw1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

There are two python programs here (-h for usage):

-decode translates input sentences from French to English. -compute-model-score computes p(e|f) for a translated corpus.

These commands work in a pipeline. For example:

> python decode | python compute-model-score

There is also a module:

-model.py implements very simple interfaces for language models and translation models, so you don't have to.

You can finish the assignment without modifying this file at all. You should look at it if you need to understand the interface to the translation and language model.

The data directory contains files derived from the Canadian Hansards, originally aligned by Ulrich Germann:

-input: French sentences to translate.

-tm: a phrase-based translation model. Each line is in the form:

French phrase ||| English phrase ||| log_10(translation_prob)

-lm: a trigram language model file in ARPA format.

log_10(ngram_prob)   ngram   log_10(backoff_prob)

About

Homework 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages