From 2af5a445f3905c69c42be5c758c52a2f21b17446 Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 31 Aug 2010 01:08:42 +0000 Subject: l2r bugfixes git-svn-id: https://ws10smt.googlecode.com/svn/trunk@634 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/tdict.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/tdict.h') diff --git a/utils/tdict.h b/utils/tdict.h index a7b3ee1c..dd7f0237 100644 --- a/utils/tdict.h +++ b/utils/tdict.h @@ -21,7 +21,8 @@ struct TD { } */ static const WordID max_wordid=0x7fffffff; - static const WordID none=(WordID)-1; // Vocab_None + static const WordID null=max_wordid-1; + static const WordID none=(WordID)-1; // Vocab_None - this will collide with mixed node/variable id / word space, though. max_wordid will be distinct (still positive) static char const* const ss_str; //=""; static char const* const se_str; //=""; static char const* const unk_str; //=""; -- cgit v1.2.3