sentiment_classifier.scripts package

Submodules

sentiment_classifier.scripts.train module

Script to train the classifiers.

Example usage:
python sentiment_classifier/scripts/train.py --models ExampleModel BiLSTM
sentiment_classifier.scripts.train.main()[source]

Function in charge of training.

  1. Parse arguments from the command line
  2. Instanciate the requested models
  3. Train them
sentiment_classifier.scripts.train.parse_arguments()[source]

Parse arguments from command line.

Returns:Parser object, with the arguments as attributes.
Return type:argparse.ArgumentParser