Skip to content

Building a text summarization crate in Rust that uses TF-IDF scoring

Notifications You must be signed in to change notification settings

zakariahajji/tfidf_summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF-IDF Summarizer

tfidf-summarizer is a Rust crate for computing Term Frequency-Inverse Document Frequency (TF-IDF) vectors for a set of documents. This statistical measure is used to evaluate how important a word is to a document in a collection or corpus.

Features

  • Tokenization of text data.
  • Calculation of term frequency (TF) for words in each document.
  • Calculation of document frequency (DF) for words across all documents.
  • Calculation of inverse document frequency (IDF) across all documents.
  • Computation of TF-IDF scores for words in each document.

Installation

Add this to your Cargo.toml:

[dependencies]
tfidf-summarizer = "0.1.0"

About

Building a text summarization crate in Rust that uses TF-IDF scoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages