-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reorg_lf_helpers #81
reorg_lf_helpers #81
Conversation
fonduer/supervision/lf_helpers.py
Outdated
from fonduer.supervision.utils.structural import * | ||
from fonduer.supervision.utils.tabular import * | ||
from fonduer.supervision.utils.textual import * | ||
from fonduer.supervision.utils.visual import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the correct way to organize this so that the imports to the user is the same is to make lf_helpers the directory with an init.py, and having the separate modaility helper files in that directory, rather than making a utils directory. If that sounds OK to you, I can take care of that update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's sound right! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other changes LGTM.
) | ||
|
||
|
||
def is_superset(a, b): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function and overlap() seemed too general to be in tabular.py, so I moved them here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
return | ||
|
||
|
||
def get_visual_header_ngrams(c, axis=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't expose these unimplemented helpers in the __init__.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.