Skip to content
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

Yuxuan - Unhashable value checks and some restructure #343

Merged
merged 9 commits into from
Mar 2, 2025
Merged

Conversation

sundy1994
Copy link
Collaborator

Basic Info

What's this pull request about?

  1. Add a function in preprocess to catch unhashable values
  2. Restructure some of the funcionalities in FeatureBuilder's initialization to increase readability

Copy link
Collaborator

@xehu xehu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I made a few changes:
(1) added in the updated LIWC docs and built the documentation;
(2) changed the hashability check to be more general (test if something is hashable) rather than look for specific unhashable types;
(3) added two checks under tests/ to ensure that the behavior is as expected, including throwing the correct ValueError.

Things seem to pass -- LGTM

@xehu xehu merged commit 730cb46 into dev Mar 2, 2025
1 check passed
@xehu xehu deleted the yuxuan/set_error branch March 2, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants