dorianbrown / rank_bm25

A Collection of BM25 Algorithms in Python
Apache License 2.0
1.05k stars 89 forks source link

Added exception for empty corpuses #45

Open dorianbrown opened 1 month ago

dorianbrown commented 1 month ago

Adding custom exceptions to allow for better error handling.

Currently only EmptyCorpusException has been implemented, but the framework for additional exceptions has been put in place to make it easier in the future.