nl_tokens: Recursive internal subroutine of classify .
pl_tokens: function ( sample , explain , treeNode , depth ) { if ( ! depth ) depth = 1 ; // classify the superlabel  var superlabelsWithExplain = treeNode . superlabelClassifier . classify ( sample , explain ) ; var superlabels = ( explain > 0 ? superlabelsWithExplain . classes : superlabelsWithExplain ) ; var splitLabels = [ ] ; if ( explain > 0 ) { var explanations = [ "depth=" + depth + ": " + superlabels , superlabelsWithExplain . explanation ] ; } // for all superlabels that were classified, may be there are more than one that were classified with it for ( var i in superlabels ) { var superlabel = superlabels [ i ] ; var splitLabel = [ superlabel ] ; // classifier of [Offer] types / second level / classifies Offer's parameters var branch = treeNode . mapSuperlabelToBranch [ superlabel ] ; if ( branch ) { // [ [ 'Without leased car' ] ] var branchLabelsWithExplain = this . classifyRecursive ( sample , explain , branch , depth + 1 ) ; var branchLabels = ( explain > 0 ? branchLabelsWithExplain . classes : branchLabelsWithExplain ) ; for ( var j <mask> branchLabels ) splitLabels . push ( splitLabel . concat ( branchLabels [ j ] ) ) ; if ( explain > 0 ) explanations = explanations . concat ( branchLabelsWithExplain . explanation ) ; } else { splitLabels . push ( splitLabel ) ; } } return ( explain > 0 ? { classes : splitLabels , explanation : explanations } : splitLabels ) ; }