(cls, task_name, hparams, vocabs, **kwargs)
return model
Saves the vocab files
Saves the vocab files
Saves the vocab files
def create(cls, task_name, hparams, vocabs, **kwargs):
        """
        Saves the vocab files
        """
        model = super(Tagger, cls).create(task_name, hparams, vocabs=vocabs, **kwargs)
        model_dir = gen_model_dir(task_name, cls)
        torch.save(vocabs, os.path.join(model_dir, VOCABS_FILE))

        return model
def create ( cls , task_name , hparams , vocabs , * * kwargs ) : model = super ( Tagger , cls ) . create ( task_name , hparams , vocabs = vocabs , * * kwargs ) model_dir = gen_model_dir ( task_name , cls ) torch . save ( vocabs , os . path . join ( model_dir , VOCABS_FILE ) ) return model