| … | … | @@ -69,6 +69,21 @@ static const char *use_prompt(int verbosity_level) |
| 69 | 69 | return (0 == verbosity_level)? "" : prompt; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | /** |
| 73 | * Set link-parser's default parse options. |
| 74 | */ |
| 75 | static void set_default_parse_options(Parse_Options opts) |
| 76 | { |
| 77 | parse_options_set_max_parse_time(opts, 30); |
| 78 | parse_options_set_linkage_limit(opts, 1000); |
| 79 | parse_options_set_min_null_count(opts, 0); |
| 80 | parse_options_set_max_null_count(opts, 0); |
| 81 | parse_options_set_short_length(opts, 16); |
| 82 | parse_options_set_islands_ok(opts, false); |
| 83 | parse_options_set_display_morphology(opts, false); |
| 84 | parse_options_set_spell_guess(opts, 7); |
| 85 | } |
| 86 | |
| 72 | 87 | typedef enum |
| 73 | 88 | { |
| 74 | 89 | UNGRAMMATICAL = '*', |
| … | … | @@ -604,14 +619,7 @@ int main(int argc, char * argv[]) |
| 604 | 619 | } |
| 605 | 620 | opts = copts->popts; |
| 606 | 621 | |
| 607 | | parse_options_set_max_parse_time(opts, 30); |
| 608 | | parse_options_set_linkage_limit(opts, 1000); |
| 609 | | parse_options_set_min_null_count(opts, 0); |
| 610 | | parse_options_set_max_null_count(opts, 0); |
| 611 | | parse_options_set_short_length(opts, 16); |
| 612 | | parse_options_set_islands_ok(opts, false); |
| 613 | | parse_options_set_display_morphology(opts, false); |
| 614 | | parse_options_set_spell_guess(opts, 7); |
| 622 | set_default_parse_options(opts); |
| 615 | 623 | |
| 616 | 624 | /* Get the panic disjunct cost from the dictionary. */ |
| 617 | 625 | const char *panic_max_cost_str = |