diff options
Diffstat (limited to 'src/lookup/lookup.h')
-rw-r--r-- | src/lookup/lookup.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h index bcc7006..902ed0d 100644 --- a/src/lookup/lookup.h +++ b/src/lookup/lookup.h @@ -37,13 +37,17 @@ typedef phrase_token_t lookup_key_t; struct lookup_value_t{ /* previous and current tokens of the node */ phrase_token_t m_handles[2]; + /* the sentence length */ + gint32 m_length; /* maximum possibility of current node */ gfloat m_poss; /* trace back information for final step */ gint32 m_last_step; lookup_value_t(gfloat poss = FLT_MAX){ - m_handles[0] = null_token; m_handles[1] = null_token; + m_handles[0] = null_token; + m_handles[1] = null_token; + m_length = 0; m_poss = poss; m_last_step = -1; } |