1 /*************************************************************************/ 2 /* Copyright (c) 2004 */ 3 /* Daniel Sleator, David Temperley, and John Lafferty */ 4 /* All rights reserved */ 5 /* */ 6 /* Use of the link grammar parsing system is subject to the terms of the */ 7 /* license set forth in the LICENSE file included with this software. */ 8 /* This license allows free redistribution and use in source and binary */ 9 /* forms, with or without modification, subject to certain conditions. */ 10 /* */ 11 /*************************************************************************/ 12 13 #ifndef _COUNT_H 14 #define _COUNT_H 15 16 #include "fast-match.h" // fast_matcher_t 17 #include "histogram.h" // Count_bin 18 19 typedef struct count_context_s count_context_t; 20 21 Count_bin* table_lookup(count_context_t *, int, int, Connector *, Connector *, unsigned int); 22 int do_parse(Sentence, fast_matcher_t*, count_context_t*, Parse_Options); 23 24 count_context_t* alloc_count_context(Sentence); 25 void free_count_context(count_context_t*, Sentence); 26 #endif /* _COUNT_H */ 27