Created
April 5, 2020 14:30
-
-
Save vikeshsingh37/ec6628ac7ef6df631cafa0a298311df2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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