nl_tokens: var syn = self . synsets [ id ] ; if ( _ . isUndefined ( syn )) { syn = def ( self . synsets [ id . replace ( / - 0 + / - ) ] [ 0 . 0 0 . 0 ] ) ; } return syn . slice ( 0 2 ) ; } } ;
pl_tokens: function avgAssessment ( assessments , weighted ) { var w ; var s = 0 ; var n = 0 ; assessments . forEach ( function ( ws ) { w = weighted ( ws [ 0 ] ) ; s += w * <mask> [ 1 ] ; n += w ; } ) ; if ( n === 0 ) { return 0 ; } else { return s / n ; } }