Skip to content

Reduce package size #251

@Goldziher

Description

@Goldziher

Hi and thanks for this great library.

I am encountering a common problem with ML libraries using KeyBERT - namely, the package is very large due to its dependencies. E.g. torch is a gigantic library (used in the sentence-transformers li), scikit-learn is very large etc. This makes it very difficult to use this library in a serverless context due to cloud function size limitations and cold start issues.

I would like to suggest working to reduce the package size. This can be done by making some dependencies optional and adding guards against them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions