public class ParseOptions
extends java.lang.Object
Here's how the default values are initialized
Modifier and Type | Class and Description |
---|---|
(package private) class |
ParseOptions.BooleanSetter |
static interface |
ParseOptions.Setter |
(package private) class |
ParseOptions.Switch |
(package private) static class |
ParseOptions.UserCommand |
Modifier and Type | Field and Description |
---|---|
boolean |
all_short
If true, there can be no connectors that are exempt
|
boolean |
allow_null
true if we allow null links in parsing
|
boolean |
batch_mode
if true, process sentences non-interactively
|
java.util.Comparator<LinkageInfo> |
cost_model
For sorting linkages in post_processing
|
(package private) ParseOptions.Switch[] |
default_switches |
int |
disjunct_cost
Max disjunct cost to allow
default 10000
|
boolean |
display_bad
if true, bad linkages are displayed
|
int |
display_constituents
if true, output treebank-style constituent structure
|
boolean |
display_link_subscripts
as in "Ss" as opposed to "S"
|
boolean |
display_links
if true, a list o' links is printed out
|
boolean |
display_on
if true, output graphical linkage diagram
|
boolean |
display_postscript |
boolean |
display_short |
boolean |
display_union
print squashed version of linkage with conjunction?
|
boolean |
display_walls
set true to display walls default = true.
|
boolean |
display_word_subscripts
as in "dog.n" as opposed to "dog"
|
boolean |
echo_on
true if we should echo the input sentence
|
java.io.InputStream |
input
Set the input reader
|
boolean |
islands_ok
If true, then linkages with islands
(separate component of the link graph)
will be generated (default=false)
|
int |
linkage_limit
The maximum number of linkages processed
default 10000
|
int |
max_null_count
The maximum number of null links to allow
|
int |
max_sentence_length
max_sentence_length = 70
Where is this used? Can't find a reference to it in the code!
|
int |
min_null_count
The minimum number of null links to allow
default 0
|
int |
null_block
consecutive blocks of this many words are
considered as one null link (default=1)
|
java.io.PrintStream |
out
Set the output writer
|
Resources |
resources
For deciding when to "abort" the parsing
|
int |
screen_width
width of screen for displaying linkages
|
int |
short_length
Links that are limited in length can be
no longer than this.
|
int |
twopass_length
min length for two-pass post processing
|
(package private) static ParseOptions.UserCommand[] |
user_command |
int |
verbosity
Level of detail to give about the computation
default 0
|
Constructor and Description |
---|
ParseOptions()
Here's where the values are initialized
verbosity = 5;
linkage_limit = 100;
disjunct_cost = GlobalBean.MAX_DISJUNCT_COST;
min_null_count = 0;
max_null_count = 0;
null_block = 1;
islands_ok = false;
cost_model = new VDALCostModel();
short_length = 6;
all_short = false;
twopass_length = 30;
max_sentence_length = 70;
resources = new Resources();
display_short = true;
display_word_subscripts = true;
display_link_subscripts = true;
display_walls = false;
display_union = false;
allow_null = true;
echo_on = false;
batch_mode = false;
screen_width = 79;
display_on = true;
display_postscript = false;
display_constituents = 0;
display_bad = false;
display_links = false;
out = System.out;
input = System.in;
|
public int verbosity
public int linkage_limit
Sentence.parse(int, ParseOptions)
public int disjunct_cost
GlobalBean.MAX_DISJUNCT_COST
public int min_null_count
public int max_null_count
default 0
public int null_block
public boolean islands_ok
public int twopass_length
public int max_sentence_length
public int short_length
public boolean all_short
public java.util.Comparator<LinkageInfo> cost_model
public Resources resources
public boolean display_short
public boolean display_word_subscripts
public boolean display_link_subscripts
public boolean display_walls
public boolean display_union
public boolean allow_null
public boolean echo_on
public boolean batch_mode
public int screen_width
public boolean display_on
public boolean display_postscript
public int display_constituents
public boolean display_bad
public boolean display_links
public java.io.InputStream input
public java.io.PrintStream out
ParseOptions.Switch[] default_switches
static ParseOptions.UserCommand[] user_command
public ParseOptions()
public void parse_options_set_cost_model_type(ParseOptions opts, int cm)
public void parse_options_set_verbosity(int dummy)
public int parse_options_get_verbosity()
public void parse_options_set_linkage_limit(int dummy)
public int parse_options_get_linkage_limit()
public void parse_options_set_disjunct_cost(int dummy)
public int parse_options_get_disjunct_cost()
public void parse_options_set_min_null_count(int val)
public int parse_options_get_min_null_count()
public void parse_options_set_max_null_count(int val)
public int parse_options_get_max_null_count()
public void parse_options_set_null_block(int dummy)
public int parse_options_get_null_block()
public void parse_options_set_islands_ok(boolean dummy)
public boolean parse_options_get_islands_ok()
public void parse_options_set_short_length(int short_length)
public int parse_options_get_short_length()
public void parse_options_set_all_short_connectors(boolean val)
boolean parse_options_get_all_short_connectors()
public void parse_options_set_max_sentence_length(int dummy)
public int parse_options_get_max_sentence_length()
public void parse_options_set_echo_on(boolean dummy)
public boolean parse_options_get_echo_on()
public void parse_options_set_batch_mode(boolean dummy)
public boolean parse_options_get_batch_mode()
public void parse_options_set_allow_null(boolean dummy)
public boolean parse_options_get_allow_null()
public void parse_options_set_screen_width(int dummy)
public int parse_options_get_screen_width()
public void parse_options_set_display_on(boolean dummy)
public boolean parse_options_get_display_on()
public void parse_options_set_display_postscript(boolean dummy)
public boolean parse_options_get_display_postscript()
public void parse_options_set_display_constituents(ParseOptions opts, int dummy)
public int parse_options_get_display_constituents()
public void parse_options_set_display_bad(boolean dummy)
public boolean parse_options_get_display_bad()
public void parse_options_set_display_links(boolean dummy)
public boolean parse_options_get_display_links()
public void parse_options_set_display_walls(boolean dummy)
public boolean parse_options_get_display_walls()
public void parse_options_set_display_union(boolean dummy)
public boolean parse_options_get_display_union()
public void parse_options_reset_resources()
public void clean_up_string(java.lang.StringBuffer s)
public void issue_special_command(java.lang.String line, Dictionary dict)
void print_time(java.lang.String s)
void print_total_time()
boolean is_numerical_rhs(java.lang.String s)
public void left_print_string(java.lang.String s, java.lang.String t)
public void print_expression(Exp n)