summary

Crates.iosummary
lib.rssummary
version0.1.0
sourcesrc
created_at2024-07-01 04:10:07.021631
updated_at2024-07-01 04:10:07.021631
descriptionExtract the sentences which best summarize a document.
homepagehttps://github.com/ryanavella/summary-rs
repositoryhttps://github.com/ryanavella/summary-rs
max_upload_size
id1288364
size28,047
Ryan Avella (ryanavella)

documentation

https://docs.rs/summary

README

summary

Extract the sentences which best summarize a document.

License: MIT License: Apache 2.0 crates.io docs.rs

Example

let summarizer = Summarizer::new(Language::English);
let text = "See Spot. See Spot run. Run Spot, run!";
let n = 2.try_into().unwrap();
for sentence in summarizer.summarize_sentences(text, n) {
    println!("{sentence}");
}
Commit count: 1

cargo fmt