Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cleanLine (lineToClean : String) : String = {
- lineToClean
- .trim
- .toLowerCase()
- .replaceAll("[-«»><'_¡!¿?0123456798/()\\*~\"+,.;:]", "")
- .replaceAll("[áäâà]", "a")
- .replaceAll("[éëêè]", "e")
- .replaceAll("[íïîì]", "i")
- .replaceAll("[óöôò]", "o")
- .replaceAll("[úüûù]", "u")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement