SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
spr_pylib.train.master Namespace Reference

Data Structures

class  MasterConfig
 Defines the attributes of the configuration used by the trainer objects. More...
 
class  MasterTrainer
 Defines the trainer object that will perform the various training steps. More...
 

Functions

def create_new_trainer
 Instantiates a new trainer object with associated config object. More...
 
def run_user_config
 Runs a training description file in a new environment. More...
 

Function Documentation

def spr_pylib.train.master.create_new_trainer ( )

Instantiates a new trainer object with associated config object.

Returns
A tuple holding a new MasterConfig object config and a new MasterTrainer object trainer.
def spr_pylib.train.master.run_user_config (   fname)

Runs a training description file in a new environment.

The new environment gives access to several objects:

  • config : A MasterConfig object that can be used to set configuration attributes.
  • trainer : A MasterTrainer object linked to the config object, that can be used to initiate various training steps.
  • get_user : A function that can be used to get the name of the current user.
Parameters
fnameThe filename (absolute or relative to the current directory) of the training description file.