Skip to content

franckbrl/bilingual_morph_normalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bilingual morph normalizer

Normalize the source language with respect to the target language by merging source words that have a similar distribution over target words p(e|f) using an entropy-based criterion.

In the source file, words are represented as a sequence of one lemma, one PoS and tags, separated by space. Each word representation is separated by tabs. Ex.:

je Pron Sg Ps1 - [TAB] normaliser Vb Sg Ps1 Pres

Usage

To train a normalization model, you need source and target files file.tags.src and file.words.trg, as well as the source-to-target word alignment file file.ali:

python3 train_bmn.py -s file.tags.src -t file.words.trg -a file.ali

This outputs the model to the pickle file norm_model.pkl. Using the -use-mean argument is recommended for better runtime and performance.

Apply the model to the data:

python3 normalize_morph.py -i file.tags.src -o file.normalized.src -n norm_model.pkl

Publications

Franck Burlot and François Yvon. Learning Morphological Normalization for Translation from and into Morphologically Rich Languages, European Association for Machine Translation (EAMT), 2017

Franck Burlot and François Yvon. Normalisation automatique du vocabulaire source pour traduire depuis une langue à morphologie riche, Actes de la 24e conférence sur le Traitement Automatique des Langues Naturelles, 2017

About

Normalize source-side morphology, given a target language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages