Crates.io | summary |
lib.rs | summary |
version | 0.1.0 |
source | src |
created_at | 2024-07-01 04:10:07.021631 |
updated_at | 2024-07-01 04:10:07.021631 |
description | Extract the sentences which best summarize a document. |
homepage | https://github.com/ryanavella/summary-rs |
repository | https://github.com/ryanavella/summary-rs |
max_upload_size | |
id | 1288364 |
size | 28,047 |
Extract the sentences which best summarize a document.
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}");
}