diff options
Diffstat (limited to 'scripts/training/memscore/lexdecom.h')
-rw-r--r-- | scripts/training/memscore/lexdecom.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/training/memscore/lexdecom.h b/scripts/training/memscore/lexdecom.h deleted file mode 100644 index 1d87caf66..000000000 --- a/scripts/training/memscore/lexdecom.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * File: lexdecom.h - * Author: Felipe Sánchez-Martínez, Universitat d'Alacant <fsanchez@dlsi.ua.es> - * - * Created on 2010/01/27 - */ - -#ifndef _LEXDECOM_H -#define _LEXDECOM_H - -#include "phrasetable.h" -#include "scorer.h" - -class LexicalDecompositionPhraseScorer : public PhraseScorer -{ -private: - explicit LexicalDecompositionPhraseScorer(PhraseTable &pd, bool reverse, const String &lwfile, - const char *argv[], int &argp, const PhraseScorerFactory &ptf); - - virtual void do_score_phrases(); - virtual Score do_get_score(const PhraseTable::const_iterator &it); - - Score get_weight(const String &s_src, const String &s_tgt) const; - Score get_weight(Count src, Count tgt) const; - - typedef std::map<std::pair<Count,Count>, Score> WeightMapType_; - - WeightMapType_ weight_map_; - - // p(J|I) = probability of source-length J given target-length I - std::map<unsigned, std::map<unsigned, Score> > prob_srclen_tgtlen_; - - Score get_noisy_or_combination(Count src_word, PhraseInfo &tgt_phrase); - - PhraseScorer* black_box_scorer; - -public: - static PhraseScorer *create_scorer(const char *argv[], int &argp, bool reverse, const PhraseScorerFactory &ptf); -}; - -#endif /* _LEXDECOM_H */ |