Skip to content

Instantly share code, notes, and snippets.

@vikeshsingh37
Created April 5, 2020 14:30
Show Gist options
  • Save vikeshsingh37/ec6628ac7ef6df631cafa0a298311df2 to your computer and use it in GitHub Desktop.
Save vikeshsingh37/ec6628ac7ef6df631cafa0a298311df2 to your computer and use it in GitHub Desktop.
from snorkel.labeling import PandasLFApplier
# Define the set of labeling functions (LFs)
lfs = [lf_keyword_my, lf_regex_check_out, lf_short_comment, lf_textblob_polarity]
# Apply the LFs to the unlabeled training data
applier = PandasLFApplier(lfs)
L_train = applier.apply(df_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment