You can't toggle a model from using negative-sampling (eg negative=5, hs=0
) to using hierarchical-softmax (eg hs=1, negative=0
) after initial setup and training. The two models use different internal properties, that are only created by setup & training. (For example, the property syn1
only exists in a model that was created & trained in hierarchical-softmax mode.)
Since the score()
method is currently only functional for HS models, you'd need to only use it with models that were trained in that mode.
(Note also that a value from score()
of a single text, against a single model, isn't interpretable as an absolute probability. It's only in comparison against the scores of other texts against the same model, or the same text against alternate models, that the relative value of the score becomes meaningful.)