'Initialise a model directory.'

@classmethod
def setup_directory(cls, path, **configs):

    for (name, config) in configs.items():
        directory = (path / name)
        if directory.exists():
            shutil.rmtree(str(directory))
        directory.mkdir()
        with (directory / u'config.json').open(u'w') as file_:
            data = json_dumps(config)
            file_.write(data)
    if (not (path / u'vocab').exists()):
        (path / u'vocab').mkdir()
