diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lookup/phonetic_lookup.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index f571fa5..0ea9b68 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -68,8 +68,13 @@ struct matrix_value_t { } }; +#if 1 /* for debug purpose */ #include "phonetic_lookup_linear.h" +#else +/* for optimization */ +#include "phonetic_lookup_heap.h" +#endif struct trellis_constraint_t { /* the constraint type */ @@ -158,6 +163,11 @@ public: bool validate_constraint(PhoneticKeyMatrix * matrix); }; +/* use maximum heap to get the topest results. */ +static bool get_top_results(/* out */ GPtrArray * topresults, + /* in */ GPtrArray * candidates); + + /* Array of MatchResults */ typedef GPtrArray * NBestMatchResults; |
