Skip to main content

fasttext_hash

Function fasttext_hash 

Source
fn fasttext_hash(bytes: &[u8]) -> u32
Expand description

fastText’s hash: 32-bit FNV-1a, each byte sign-extended first, as the C++ casts it (uint32_t(int8_t(c))): bytes above 127 differ from plain FNV-1a.