Skip to content

Instantly share code, notes, and snippets.

@yssymmt
Created September 19, 2022 16:54
Show Gist options
  • Save yssymmt/6e6d013b6988d62cdf09ae5c3c50f978 to your computer and use it in GitHub Desktop.
Save yssymmt/6e6d013b6988d62cdf09ae5c3c50f978 to your computer and use it in GitHub Desktop.
select *
from naivebayestextclassifierpredict (
on jumbo.aud07_wordseq as predictorvalues partition by docid
on jumbo.aud10_model_tfidf 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