KeyBERT icon indicating copy to clipboard operation
KeyBERT copied to clipboard

How to get 100 similar words?

Open Gautamshahi opened this issue 3 years ago • 3 comments

With the given examples, the code works for five similar keywords; which parameter is required to get 100 keywords?

Gautamshahi avatar Apr 11 '22 20:04 Gautamshahi

You can use the top_n keywords to select the number of keywords that you require. You can find more about the different types of parameters here.

MaartenGr avatar Apr 12 '22 11:04 MaartenGr

Thanks, I am wondering how the top keywords(unigram) using keybert are different from frequent words but there is a significant difference in words filtered from both approaches.

On Tue, Apr 12, 2022 at 1:38 PM Maarten Grootendorst < @.***> wrote:

You can use the top_n keywords to select the number of keywords that you require. You can find more about the different types of parameters here https://maartengr.github.io/KeyBERT/api/keybert.html#keybert._model.KeyBERT.extract_keywords .

— Reply to this email directly, view it on GitHub https://github.com/MaartenGr/KeyBERT/issues/103#issuecomment-1096612549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6IKFWFQQI4UWWTDJ6VDDDVEVODLANCNFSM5TEMGW7Q . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards, Gautam Kishore Shahi

Gautamshahi avatar Apr 12 '22 15:04 Gautamshahi

You can find a bit more about the general approach here and follow along with the API.

MaartenGr avatar Apr 13 '22 10:04 MaartenGr