def save_parameters(self, filename):
params = self._collect_params_with_prefix()<EOL>if self.pret_word_embs:  <EOL><INDENT>params.pop('<STR_LIT>', None)<EOL><DEDENT>arg_dict = {key: val._reduce() for key, val in params.items()}<EOL>ndarray.save(filename, arg_dict)<EOL>
Save model

        Parameters
        ----------
        filename : str
            path to model file