summaryrefslogtreecommitdiff
path: root/decoder/ff_fsa.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-25 21:05:06 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-25 21:05:06 +0000
commitdc78bb0d8590033475404c1950fa49e984e2108a (patch)
tree1a4f138930a0f15cd8826c1d5054bc918ad67831 /decoder/ff_fsa.h
parent725ac32757ab6663933e649e8f7dc7052ff7c696 (diff)
USE_INFO_EDGE 0 include
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@412 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_fsa.h')
-rwxr-xr-xdecoder/ff_fsa.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/decoder/ff_fsa.h b/decoder/ff_fsa.h
index 93e3bd5e..1be773b9 100755
--- a/decoder/ff_fsa.h
+++ b/decoder/ff_fsa.h
@@ -14,7 +14,13 @@
//TODO: decide whether to use init_features / add_value vs. summing elsewhere + set_value once (or inefficient for from_fsa: sum distinct feature_vectors. but L->R if we only scan 1 word at a time, that's fine
//#define FSA_DEBUG
+
+#ifdef USE_INFO_EDGE
#define FSA_DEBUG_CERR 0
+#else
+#define FSA_DEBUG_CERR 1
+#endif
+
#define FSA_DEBUG_DEBUG 0
# define FSADBGif(i,e,x) do { if (i) { if (FSA_DEBUG_CERR){std::cerr<<x;} INFO_EDGE(e,x); if (FSA_DEBUG_DEBUG){std::cerr<<"FSADBGif edge.info "<<&e<<" = "<<e.info()<<std::endl;}} } while(0)
# define FSADBGif_nl(i,e) do { if (i) { if (FSA_DEBUG_CERR) std::cerr<<std::endl; INFO_EDGE(e,"; "); } } while(0)