diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-08 01:46:32 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-08 01:46:32 -0500 |
commit | e2998fc79c9dd549b1c1bad537fdf1052276f82c (patch) | |
tree | 5ed5a727b030c804ddb026e61b184e179b685132 /gi/pf/align-tl.cc | |
parent | 7fd9fe26f00cf31a7b407364399d37b4eaf04eba (diff) |
simple context feature for tagger
Diffstat (limited to 'gi/pf/align-tl.cc')
-rw-r--r-- | gi/pf/align-tl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gi/pf/align-tl.cc b/gi/pf/align-tl.cc index 0e0454e5..6bb8c886 100644 --- a/gi/pf/align-tl.cc +++ b/gi/pf/align-tl.cc @@ -310,18 +310,16 @@ int main(int argc, char** argv) { // TODO CONFIGURE THIS int min_trans_src = 4; - cerr << "Initializing transliteration DPs ...\n"; + cerr << "Initializing transliteration graph structures ...\n"; for (int i = 0; i < corpus.size(); ++i) { const vector<int>& src = corpus[i].src; const vector<int>& trg = corpus[i].trg; - cerr << '.' << flush; - if (i % 80 == 79) cerr << endl; for (int j = 0; j < src.size(); ++j) { const vector<int>& src_let = letters[src[j]]; for (int k = 0; k < trg.size(); ++k) { const vector<int>& trg_let = letters[trg[k]]; if (src_let.size() < min_trans_src) - tl.Forbid(src[j], trg[k]); + tl.Forbid(src[j], src_let, trg[k], trg_let); else tl.Initialize(src[j], src_let, trg[k], trg_let); } |