class Object
Public Instance Methods
print_usage()
click to toggle source
# File bin/rmmseg, line 8 def print_usage puts <<EOF #{__FILE__} Segment Chinese text. Read from stdin and print to stdout. Options: -h --help Print this message -a --algorithm Select segment algorithm. Valid values are 'complex' and 'simple'. 'simple' is the default one. -A --ambiguity Select a behavior when an ambiguity occurs. Valid values are 'raise_exception' and 'select_first'. 'select_first' is the default one. -s --separator Select the separator of the segmented text. Default is space. EOF exit 0 end