Factory
Merge github.com:moses-smt/mosesdecoder into hieu_opt_input