corrade-group-linguistics – Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 2
Line 82... Line 82...
82   82  
83 /* Performs message analysis and updates the database. */ 83 /* Performs message analysis and updates the database. */
84 function exeUpdate(notification) { 84 function exeUpdate(notification) {
Line 85... Line -...
85 const result = sentiment.analyze(notification.message) -  
86   -  
87 console.dir(result) 85 const result = sentiment.analyze(notification.message)
88   86  
Line 89... Line 87...
89 db.add(`group.${notification.group.toUpperCase()}.${notification.firstname.toUpperCase()} ${notification.lastname.toUpperCase()}.tokens.total`, result.tokens.length) 87 db.add(`group.${notification.group.toUpperCase()}.${notification.firstname.toUpperCase()} ${notification.lastname.toUpperCase()}.tokens.total`, result.tokens.length)
90 db.add(`group.${notification.group.toUpperCase()}.${notification.firstname.toUpperCase()} ${notification.lastname.toUpperCase()}.sentiment.score`, result.comparative) 88 db.add(`group.${notification.group.toUpperCase()}.${notification.firstname.toUpperCase()} ${notification.lastname.toUpperCase()}.sentiment.score`, result.comparative)