def save(self, path, format, binary=False, use_load_condition=False):
if use_load_condition:<EOL><INDENT>if self._load_cond is None:<EOL><INDENT>raise ValueError(<EOL>b"<STR_LIT>"<EOL>b"<STR_LIT>")<EOL><DEDENT>mod = self._load_cond<EOL><DEDENT>else:<EOL><INDENT>mod = _select_module(format, binary)<EOL><DEDENT>if self.freqs is None:<EOL><INDENT>itr = list(<EOL>sorted(six.iteritems(self.vocab), key=lambda k_v: k_v[<NUM_LIT:1>]))<EOL><DEDENT>else:<EOL><INDENT>itr = list(<EOL>sorted(six.iteritems(self.vocab),<EOL>key=lambda k_v: self.freqs[k_v[<NUM_LIT:0>]], reverse=True)<EOL>)<EOL><DEDENT>with open(path, mode='<STR_LIT:wb>') as f:<EOL><INDENT>mod.saver.save(f, self.vectors, itr)<EOL><DEDENT>
Save object as word embedding file. For most arguments, you should refer
to :func:`~word_embedding_loader.word_embedding.WordEmbedding.load`.

Args:
    use_load_condition (bool): If `True`, options from
        :func:`~word_embedding_loader.word_embedding.WordEmbedding.load`
        is used.

Raises:
    ValueError: ``use_load_condition == True`` but the object is not
        initialized via
        :func:`~word_embedding_loader.word_embedding.WordEmbedding.load`.