Skip to content

cool425589/VSM-rocchio-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

VSM-rocchio-algorithm

Vector space Model implement rocchio algorithm

  1. About
  2. basic function
  3. Quick start
  4. Contacts

  1. About

In this project, you will have

800 Queries

2265 Documents

A Background Language Model(BGLM.txt)

Our goal is to implement the VSM model, and inhence by rocchio-algorithm

  1. basic function

Here are the basic function for this web:

Update_new_query() :

Update query by top_k rocchio-algorithm

cosine_similarity:

Calculator documents and query cosine_similarity

rank_ALL_func:

Get score with each document for each Query

Get_read_data_func :

Read and Get only integer in text

init_subfilename :

Get all subfilename in spec File

init_idf :

Calculator term idf and update idf matrix

update_tf_func :

Calculator term tf in each document and update tf matrix

  1. Quick start

Download data you need

Edit a、b、k_top for rocchio algorithm you wanted

Run the p.y

Get the result for our query

  1. Contacts

You can send your suggestions and send them directly to cool425589@gmail.com.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages