BERTopic icon indicating copy to clipboard operation
BERTopic copied to clipboard

transform function documentation's return is different to provided example

Open jwaugh28 opened this issue 4 years ago • 2 comments

Documentation for the transform function states it returns only a "predictions" object, while the usage example returns both topics and probs objects: image

jwaugh28 avatar Feb 01 '22 22:02 jwaugh28

topics are prdicted label and probs are probability.

fsysean avatar Feb 02 '22 02:02 fsysean

Strange, the probabilities are mentioned in the documentation but it seems that for whatever reasons, MKDOCS does not generate the additional parameters in .transform(). Thank you for bringing up this issue and I'll put it on the roadmap!

MaartenGr avatar Feb 02 '22 07:02 MaartenGr