@staticmethod
    def load(file):
        print 'Loading corpus from', file
        arrays_in = np.load(file)

        c = CorpusSent([], [])
        c.corpus = arrays_in['corpus']
        c.words = arrays_in['words']
        c.sentences = arrays_in['sentences']
        c.context_types = arrays_in['context_types'].tolist()
        try:
            c.stopped_words = set(arrays_in['stopped_words'].tolist())
        except:
            c.stopped_words = set()

        c.context_data = list()
        for n in c.context_types:
            t = arrays_in['context_data_' + n]
            c.context_data.append(t)

        c.__set_words_int()

        return c
Parameters:
dataset/ETHPy150Open inpho/vsm/vsm/extensions/ldasentences.py/CorpusSent.load--crossover with--dataset/ETHPy150Open cloudera/impyla/impala/_thrift_gen/ImpalaService/ImpalaService.py/Iface.Cancel