Skip to content

a notebook and python code aimed at demonstrating information retrieval using binary independence model

Notifications You must be signed in to change notification settings

Mwebia-Dennis/binary-independence-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

binary-independence-model

a notebook and python code aimed at demonstrating information retrieval using binary independence model

example usage

implementing this code is as easy as importing the BIMModel class, then search the query, with the limit of documents you want to retrieve. The search_query function takes 2 parameters, the query to be searched and the number/limit of results you want to retrieve. The steps are as follows:

  • from model import BIMModel

  • bim_model = BIMModel()

  • results = bim_model.search_query("secondary emission of electrons by positive ion bombardment of the cathode", 10)

  • print(results)

Dataset and notebook

  • unzip the dataset from HW04 zip FILE
  • notebook is provided in code

Codes details

  • There are 2 implemetations, a notebook and .py files.
  • All are similar, just pick your choice.

About

a notebook and python code aimed at demonstrating information retrieval using binary independence model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published