Skip to content

Instantly share code, notes, and snippets.

@yssymmt
Created September 19, 2022 16:52
Show Gist options
  • Save yssymmt/b34532287eef1cd005dd8e56f51b4175 to your computer and use it in GitHub Desktop.
Save yssymmt/b34532287eef1cd005dd8e56f51b4175 to your computer and use it in GitHub Desktop.
select *
from naivebayestextclassifierpredict (
on jumbo.aud07_wordseq as predictorvalues partition by docid
on jumbo.aud09_model_bow as model dimension
using
inputtokencolumn ('word')
modeltype ('Multinomial')
docidcolumns ('docid')
modeltokencolumn ('token')
modelcategorycolumn ('category')
modelprobcolumn ('prob')
topk('2')
) as a1
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment