summaryrefslogtreecommitdiff
path: root/decoder/ff_sample_fsa.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-31 05:10:54 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-31 05:10:54 +0000
commit6da285dfa7b0a1929dcec882d7e48a585e878d18 (patch)
tree1063307d28e9d386f0aee99782d495b2c90726bb /decoder/ff_sample_fsa.h
parent78c13aa02075f07f7361bf53eea2a9a247f39575 (diff)
shorten_left comment
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@464 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_sample_fsa.h')
-rwxr-xr-xdecoder/ff_sample_fsa.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/decoder/ff_sample_fsa.h b/decoder/ff_sample_fsa.h
index a129806d..9f44f1a4 100755
--- a/decoder/ff_sample_fsa.h
+++ b/decoder/ff_sample_fsa.h
@@ -15,8 +15,7 @@ struct WordPenaltyFsa : public FsaFeatureFunctionBase<WordPenaltyFsa> {
WordPenaltyFsa(std::string const& param) {
Init();
- return;
- //below are all defaults:
+ return; //below are all defaults:
set_state_bytes(0);
start.clear();
h_start.clear();
@@ -104,7 +103,6 @@ struct LongerThanPrev : public FsaFeatureFunctionBase<LongerThanPrev> {
};
// similar example feature; base type exposes stateful type, defines markov_order 1, state size = sizeof(State)
-// also buggy right now: give it a bonus weight
struct ShorterThanPrev : FsaTypedBase<int,ShorterThanPrev> {
typedef FsaTypedBase<int,ShorterThanPrev> Base;
static std::string usage(bool param,bool verbose) {
@@ -119,8 +117,7 @@ struct ShorterThanPrev : FsaTypedBase<int,ShorterThanPrev> {
return std::strlen(TD::Convert(w));
}
ShorterThanPrev(std::string const& param)
- : Base(-1,4/* ,singleton_sentence(TD::se) */)
- // start, h_start, end_phrase
+ : Base(-1,4,singleton_sentence(TD::se)) // start, h_start, end_phrase
// estimate: anything <4 chars is usually shorter than previous
{
Init();