presage
0.9.2~beta
|
Go to the source code of this file.
Functions | |
void | disclaimer () |
void | parse_cmd_line_args (int argc, char **argv) |
void | print_version () |
void | print_usage () |
void | print_prediction (const std::vector< std::string > &) |
int | main (int argc, char **argv) |
void | parse_cmd_line_args (int argc, char *argv[]) |
Variables | |
const char | PROGRAM_NAME [] = "presage_demo_text" |
std::string | config |
int | suggestions = 0 |
void disclaimer | ( | ) |
Definition at line 90 of file presageDemoText.cpp.
References endl().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 51 of file presageDemoText.cpp.
References buffer, config, Presage::config(), Presage::context(), Presage::context_change(), disclaimer(), endl(), parse_cmd_line_args(), Presage::predict(), print_prediction(), suggestions, and LegacyPresageCallback::update().
void parse_cmd_line_args | ( | int | argc, |
char ** | argv | ||
) |
void parse_cmd_line_args | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 105 of file presageDemoText.cpp.
References config, print_usage(), print_version(), and suggestions.
void print_prediction | ( | const std::vector< std::string > & | words | ) |
Definition at line 153 of file presageDemoText.cpp.
References endl().
Referenced by main().
void print_usage | ( | ) |
Definition at line 171 of file presageDemoText.cpp.
References endl(), and PROGRAM_NAME.
Referenced by parse_cmd_line_args().
void print_version | ( | ) |
Definition at line 162 of file presageDemoText.cpp.
References endl(), and PROGRAM_NAME.
Referenced by parse_cmd_line_args().
std::string config |
Definition at line 48 of file presageDemoText.cpp.
Referenced by main(), and parse_cmd_line_args().
const char PROGRAM_NAME[] = "presage_demo_text" |
Definition at line 40 of file presageDemoText.cpp.
Referenced by print_usage(), and print_version().
int suggestions = 0 |
Definition at line 49 of file presageDemoText.cpp.
Referenced by main(), and parse_cmd_line_args().