diff options
author | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 15:04:39 -0500 |
---|---|---|
committer | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 15:04:39 -0500 |
commit | 0867694ffd2b2c8c7a23691ab74f8548c4baac72 (patch) | |
tree | 3f933d8c0290bca72aa9eb59045c3fab82447d6d /decoder/ff.h | |
parent | 8fc9d9e2775338ef5c652f95476822c70ee27a00 (diff) | |
parent | d2c51ae79bca9b7c87f87ff458f77a6f07fff9a6 (diff) |
Merge branch 'ignore_state' into const_reorder_2
Diffstat (limited to 'decoder/ff.h')
-rw-r--r-- | decoder/ff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/decoder/ff.h b/decoder/ff.h index afa3dbca..647b4834 100644 --- a/decoder/ff.h +++ b/decoder/ff.h @@ -27,6 +27,12 @@ class FeatureFunction { // search. When non-zero, the last N bytes in the state should be ignored when // splitting a hypernode by the state. This allows the feature function to // store some side data and later retrieve it via the state bytes. + // + // In general, this should not be necessary and it should always be possible + // to replace this with a more appropriate design of state (if you find + // yourself having to ignore some part of the state, you are most likely + // storing redundant information in the state). Be sure that you + // understand how this affects ApplyModelSet() before using it. int IgnoredStateSize() const { return ignored_state_size_; } // override this. not virtual because we want to expose this to factory template for help before creating a FF @@ -82,6 +88,7 @@ class FeatureFunction { state_size_ = state_size; } + // See document of IgnoredStateSize() above. void SetIgnoredStateSize(size_t ignored_state_size) { ignored_state_size_ = ignored_state_size; } |