00001 // -*- mode: c++; indent-tabs-mode: nil; tab-width:2 -*- 00002 // Phrase scoring functions for suffix array-based phrase tables 00003 // written by Ulrich Germann 00004 #pragma once 00005 #include "sapt_pscore_unaligned.h" // count # of unaligned words 00006 #include "sapt_pscore_provenance.h" // reward for joint phrase occ. per corpus 00007 #include "sapt_pscore_rareness.h" // penalty for rare occurrences (global?) 00008 #include "sapt_pscore_length_ratio.h" // model of phrase length ratio 00009 #include "sapt_pscore_logcnt.h" // logs of observed counts 00010 #include "sapt_pscore_lex1.h" // plain vanilla Moses lexical scores 00011 #include "sapt_pscore_pfwd.h" // fwd phrase prob 00012 #include "sapt_pscore_pbwd.h" // bwd phrase prob 00013 #include "sapt_pscore_coherence.h" // coherence feature: good/sample-size 00014 #include "sapt_pscore_phrasecount.h" // phrase count 00015 #include "sapt_pscore_wordcount.h" // word count 00016 #include "sapt_pscore_cumulative_bias.h" // cumulative bias score