snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

Labelling functions #880

Closed SrikarNamburu closed 6 years ago

SrikarNamburu commented 6 years ago

Is it possible that labelling functions gives 1,2,3,4,5 as output instead of only 1,-1&0 ?For ex, If in a category 'A' there are 4 sub categories(x,y,z,w) can we label all the sub categories using labelling functions? @ajratner @jason-fries

jason-fries commented 6 years ago

Hi @srikar2605,

Yes, you can use labeling functions with categorical variables. See our tutorial at: Categorical Variables in Snorkel