def __init__(self, name='other'): if name == 'tnt': self.segger = Tnt() else: self.segger = CharacterBasedGenerativeModel()