sner package

Module contents

Sumerian Named Entity Recognition: sner.py

This file bootstraps the program, parsing arguments and configuration file. Also offers interface for our analysis and formatting tools and test functions.

sner.add_args(parser)

Adds arguments from the command line and interprets them as appropriate. Available arguments:

Parameters:parser
Returns:None
Raises:None
sner.bool_check(arg, config, default)

Return bool from arg or config str, or default bool.

Arguments from the parser and configuration file are represented as strings. Arguments that represent boolean values need string compares, and then return the actual boolean object.

Parameters:
  • arg (str) –
  • config (str) –
  • default (bool) –
Returns:

Return type:

True, False, or default (bool)

Raises:

TypeError

sner.main()

Collects arguments and configurations, or sets defaults. Calls either the NER, analysis, formatting, or testing routines.

Parameters:None
Returns:None
Raises:None