示例#1
0
文件: lda.py 项目: aminnetmimi/vsm
    def load(filename, multiprocessing=False, n_proc=None):
        """
        A static method for loading a saved LdaCgsMulti model.

        :param filename: Name of a saved model to be loaded.
        :type filename: string

        :returns: m : LdaCgsMulti object

        :See Also: :class:`numpy.load`
        """
        if multiprocessing and platform.system() != 'Windows':
            return load_lda(filename, LdaCgsMulti)
        else:
            if platform.system() == 'Windows':
                warnings.warn("""Multiprocessing is not implemented on Windows.
                Defaulting to sequential algorithm.""", RuntimeWarning)
            return load_lda(filename, LdaCgsSeq)
示例#2
0
    def load(filename):
        """
        A static method for loading a saved LdaCgsMulti model.

        :param filename: Name of a saved model to be loaded.
        :type filename: string

        :returns: m : LdaCgsMulti object

        :See Also: :class:`numpy.load`
        """
	if platform.system() == 'Windows':
            raise NotImplementedError("""LdaCgsMulti is not implemented on 
            Windows. Please use LdaCgsSeq.""")
        return load_lda(filename, LdaCgsMulti)
示例#3
0
文件: ldacgs.py 项目: inpho/vsm
 def load(filename):
     return load_lda(filename, LdaCgsSeq)
示例#4
0
 def load(filename):
     return load_lda(filename, LdaCgsSeq)