singsing215 / SVD-and-Truncated-SVD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVD-and-Truncated-SVD

  1. Calculate the tf-idf feature vectors from doc file to obtain the document-to-term matrix
  2. Apply truncated SVD to the document-to-term matrix with k=2 to obtain the representation of reduced dimension for each of the documents
  3. Convert the query š¯’’={attract, TV, program} to its representation of the reduced dimension
  4. Rank the four documents accordingly

About


Languages

Language:Jupyter Notebook 100.0%