vextractor

Crates.iovextractor
lib.rsvextractor
version0.3.1
sourcesrc
created_at2021-01-08 02:55:14.314377
updated_at2021-02-12 17:21:44.294642
descriptionThe library for vextractor-cli
homepagehttps://github.com/SaadiSave/vextractor
repositoryhttps://github.com/SaadiSave/vextractor
max_upload_size
id334130
size46,314
Saadi Save (SaadiSave)

documentation

README

vextractor

Crates.io Crates.io

vextractor is a simple library for extracting the vocabulary of a text file.

About

vextractor works for any language in any script supported by unicode, as long as the language separates words with a unicode space ' ' (U+20).

Quick Example

extern crate vextractor;
use vextractor::vex::Vextract;
let x = Vextract::new(
    "somepath/somefile.txt", // file containing the text to be processed
    vec!["EU", "etc.", "i.e.", "e.g."], // Acronyms
    vec!["Germany", "France", "Belgium", "Italy"] // Proper Nouns
);
println!("{}", x.get_pretty_vocab()); // Prints the vocabulary
println!("{}", x.get_sorted_pretty_vocab()); // Sorts, then prints
x.write_to_file("somepath/somefile.txt"); // Writes vocab to a text file

Licence

vextractor is licensed under GNU AFFERO GENERAL PUBLIC LICENSE version 3. Please read the LICENSE.md file for more information.

Commit count: 20

cargo fmt