[][src]Struct vextractor::Vextract

pub struct Vextract {
    pub text: String,
    pub vocab: Vec<String>,
    // some fields omitted
}

Fields

text: Stringvocab: Vec<String>

Implementations

impl Vextract[src]

pub fn new(fileurl: &str, al: Vec<&str>, pl: Vec<&str>) -> Vextract[src]

pub fn pstrip(&mut self)[src]

pub fn make_lower(&mut self)[src]

pub fn remove_nums(&mut self)[src]

pub fn add_punctuation(&mut self, s: &str)[src]

pub fn get_vocab(&self) -> Vec<String>[src]

pub fn get_pretty_vocab(&self) -> String[src]

pub fn get_sorted_vocab(&self) -> Vec<String>[src]

pub fn get_sorted_pretty_vocab(&self) -> String[src]

pub fn get_len(&self) -> u32[src]

pub fn write_to_file(&self, fileurl: &str)[src]

Trait Implementations

impl Clone for Vextract[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.