lib/text_nlp/normalizer.rb in text_nlp-0.0.0 vs lib/text_nlp/normalizer.rb in text_nlp-0.0.1

- old
+ new

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