inpho / vsm

Vector Space Model Framework developed for InPhO
http://inpho.github.io/vsm
Other
36 stars 14 forks source link

Legacy load_model issues with `beta` var #142

Closed JaimieMurdock closed 6 years ago

JaimieMurdock commented 8 years ago

Weird error showing up in htrc-anthropomorphism-1315 model load. Need to figure out why backwards compatability is breaking and fix.

Traceback (most recent call last):
File "/home/jammurdo/workspace/vsm/vsm/model/ldafunctions.py", line 85, in load_lda
    alpha=alpha.result(), beta=beta.result())
File "/home/jammurdo/workspace/vsm/vsm/model/ldacgsseq.py", line 69, in __init__
    priors = init_priors(self.V, self.K, beta, alpha)
File "/home/jammurdo/workspace/vsm/vsm/model/ldafunctions.py", line 12, in init_priors
    if len(beta) > 0:
TypeError: len() of unsized object