diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-10 01:58:30 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-10 01:58:30 -0500 |
commit | 4f9933d668d247ea5831c3f2af0b996a94da28f7 (patch) | |
tree | 965f1ade8619dbb7387a3b33d29f157e04a6fff2 /decoder/ff_bleu.cc | |
parent | 0acaff8e91fbec0699da8c4a84fdba8c4be9c229 (diff) |
remove dependency on SRILM
Diffstat (limited to 'decoder/ff_bleu.cc')
-rw-r--r-- | decoder/ff_bleu.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/decoder/ff_bleu.cc b/decoder/ff_bleu.cc index aa4e6d85..a842bba8 100644 --- a/decoder/ff_bleu.cc +++ b/decoder/ff_bleu.cc @@ -13,8 +13,6 @@ char const* bleu_usage_verbose="Uses feature id 0! Make sure there are no other #include "ff_bleu.h" #include "tdict.h" -#include "Vocab.h" -#include "Ngram.h" #include "hg.h" #include "stringlib.h" #include "sentence_metadata.h" @@ -25,7 +23,7 @@ using namespace std; class BLEUModelImpl { public: explicit BLEUModelImpl(int order) : - ngram_(TD::dict_, order), buffer_(), order_(order), state_size_(OrderToStateSize(order) - 1), + buffer_(), order_(order), state_size_(OrderToStateSize(order) - 1), floor_(-100.0), kSTART(TD::Convert("<s>")), kSTOP(TD::Convert("</s>")), @@ -219,7 +217,6 @@ class BLEUModelImpl { } protected: - Ngram ngram_; vector<WordID> buffer_; const int order_; const int state_size_; |