mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
documentation/permissions
This commit is contained in:
parent
5625d30a26
commit
1113f83f98
0
contrib/server/client_multimodel.py
Normal file → Executable file
0
contrib/server/client_multimodel.py
Normal file → Executable file
@ -7,9 +7,9 @@
|
||||
# The benefit is that models can be combined quickly, with the same results as if we trained a model on the concatenation of all data (excepting differences in word alignment).
|
||||
# Also, each model can be given a weight, which is applied to all frequencies of the model for the combination.
|
||||
|
||||
# Note: the input phrase table must have alignment information (--phrase-word-alignment in train-model.perl);
|
||||
# Note: the input phrase table must have alignment information;
|
||||
# it must be unsmoothed;
|
||||
# additionally, the online model type requires the lexical counts files lex.counts.e2f and lex.counts.f2e to be in the same folder (--write-lexical-counts in train-model.perl)
|
||||
# additionally, the phrase table type PhraseDictionaryMultiModelCounts requires the lexical counts files lex.counts.e2f and lex.counts.f2e (obtained by using the option --write-lexical-counts in train-model.perl)
|
||||
# The results may differ from training on the concatenation of all data due to differences in word alignment, and rounding errors.
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# add flexibility scores to a phrase table half
|
||||
# you usually don't have to call this script directly, but you can run train_model.perl with the option "--flexibility-score" (will only affect steps 5 and 6)
|
||||
# you usually don't have to call this script directly; to add flexibility scores to your model, run train-model.perl with the option "--flexibility-score" (will only affect steps 5 and 6)
|
||||
# usage: python flexibility_score.py extract.context(.inv).sorted [--Inverse] [--Hierarchical] < phrasetable > output_file
|
||||
# author: Rico Sennrich
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user