[−][src]Crate zoea
Functions
cosine_similarity | |
get_url | EXAMPLE let url: String = String::from("https://qlsv4412xi.execute-api.us-east-1.amazonaws.com/default/ClientIP"); let resp_str: String = get_url(&url); println!("url={}, response={}", &url, &resp_str); |
hash_string | EXAMPLE: let string_1 = String::from("Here is a string you want to hash."); let h_1 = hash_string(&string_1); println!("{} and its hash is {}",string_1, h_1); |
text_token_bigrams | EXAMPLE let string_2 = String::from("I walked to San Diego slowly today!"); let bigrams_2 = text_token_bigrams(&string_2); println!("Sentence = {}", string_2); for gram in bigrams_2 { println!("bigram= {}", gram); |
text_tokens | EXAMPLE let string_2 = String::from("I walked to San Diego slowly today!"); let tokens = text_tokens(&string_2); println!("Sentence = {}", string_2); for token in tokens { println!("bigram= {}", token); |