Skip to content

fanta-mnix/python-bm25

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

BM25 for document ranking

This project implements BM25 algorithm described in this paper for ranking documents according to relevance.

Installing

Make sure to run the setup.sh script. It will install all required dependencies.

Running the sample

Use python sample.py to see it in action. It may take some time, but eventually it will print to the console retrieved documents matching the query, sorted by relevance.

Known issues

This implementation is best fit for small datasets because it lacks the inverted index required for fast querying in big datasets

Alternatives

https://github.com/nhirakawa/BM25

About

Python implementation of BM25 function for document retrieval

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published