def get_parser(segmenter, **options):
if segmenter == '<STR_LIT>':<EOL><INDENT>return NLAPIParser(**options)<EOL><DEDENT>elif segmenter == '<STR_LIT>':<EOL><INDENT>return MecabParser()<EOL><DEDENT>elif segmenter == '<STR_LIT>':<EOL><INDENT>return TinysegmenterParser()<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(segmenter))<EOL><DEDENT>
Gets a parser.

    Args:
      segmenter (str): Segmenter to use.
      options (:obj:`dict`, optional): Optional settings.

    Returns:
      Parser (:obj:`budou.parser.Parser`)

    Raises:
      ValueError: If unsupported segmenter is specified.