Weighted entropic associative memory and phonetic learning