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

LF for binary text classification #815

Closed ProudHoosier closed 6 years ago

ProudHoosier commented 7 years ago

How do we write the labeler function for a binary text classification problem? Especially when they are short sentences and very fluid and colloquial in nature and it's difficult to write the regex for such sentences.

ajratner commented 6 years ago

Hi @ProudHoosier hard to say without further information about the problem... hopefully looking through some of the examples in the tutorials gives some ideas though! You can also check out some of the blog posts on snorkel.stanford.edu e.g. the post on other weak supervision strategies people have played with in practice, many of which can be expressed in Snorkel as LFs. Hope this helps a bit!

ajratner commented 6 years ago

Closing for now- will be accessible via "Q&A" link, and feel free to re-open!