Open bab2min opened 2 years ago
Suggested by #147.
result_corpus, ll_per_doc = mdl.infer(corpus)
Currently, ll_per_doc are actually sums of ll for doc-topic and ll for topic-term in above code. But depending on the situation, it may be convenient to return a different ll value. So suggest following a new argument:
ll_per_doc
result_corpus, ll_per_doc = mdl.infer(corpus, ll=ll_type)
A valid ll_type is one of followings:
ll_type
doc+topic
doc
topic
doc+topic/w
doc/w
topic/w
Suggested by #147.
Currently,
ll_per_doc
are actually sums of ll for doc-topic and ll for topic-term in above code. But depending on the situation, it may be convenient to return a different ll value. So suggest following a new argument:A valid
ll_type
is one of followings:doc+topic
: sum of ll for doc-topic and ll for topic-termdoc
: only ll for doc-topictopic
: only ll for topic-termdoc+topic/w
: same asdoc+topic
, but per-worddoc/w
: same asdoc
, but per-wordtopic/w
: same astopic
, but per-word