Fix CSV format issues

This commit is contained in:
Reinhard Pointner 2016-04-25 15:23:12 +08:00
parent 94929baaef
commit 87daa80459
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ new File(dir_data).mkdirs()
def reviews = []
new File("${dir_root}/reviews.tsv").eachLine('UTF-8'){
def s = it.split(/\t/, 3)*.trim()*.replaceAll('["]{2}', '"')
def s = it.split(/\t/, 3)*.trim()
reviews << [user: s[0], date: s[1], text: s[2]]
}
reviews = reviews.sort{ it.date }