

def setUp(self):
    from vsm.corpus.util.corpusbuilders import random_corpus
    from vsm.model.tf import TfSeq
    from vsm.model.tfidf import TfIdf
    from vsm.model.lsa import Lsa
    c = random_corpus(10000, 1000, 0, 30, context_type='document', metadata=True)
    tf = TfSeq(c, 'document')
    tf.train()
    tfidf = TfIdf.from_tf(tf)
    tfidf.train()
    m = Lsa.from_tfidf(tfidf)
    m.train()
    m.v = LsaViewer(c, m)

dataset/ETHPy150Open inpho/vsm/unit_tests/tests_lsaviewer.py TestLsaViewer.setUp/VarMisuse@114/146 `self`->`m`