# encoding: UTF-8 class TextNlp class Normalizer def normalize(text) text.downcase! text.tr!("éèàçîêô","eeacieo") text.tr!("!',;?.()/\\_|[]{}\"<>:*$%\-"," ") text.gsub!(/\s+/," ") text.strip! text end end end