Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Crowd analysis #3935

Merged
merged 3 commits into from
Aug 13, 2021
Merged

Crowd analysis #3935

merged 3 commits into from
Aug 13, 2021

Conversation

mojtaba-komeili
Copy link
Contributor

Patch description

  1. A bit of refactoring on the crowdsourcing analysis module
  2. Added the filtering function to help discarding low quality unit

Copy link
Contributor

@EricMichaelSmith EricMichaelSmith left a comment

Choose a reason for hiding this comment

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

Great to have! Minor nits/questions

@@ -47,7 +48,7 @@ def setup_args(cls):
)
return parser

def __init__(self, opt: Dict[str, Any]):
def __init__(self, opt: Opt):
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@@ -61,6 +62,19 @@ def get_results_path_base(self) -> str:
f'{self.__class__.__name__}__{now.strftime("%Y%m%d_%H%M%S")}',
)

def unit_acceptable(self, unit_data: Dict[str, Any]) -> bool:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: is_unit_acceptable might be clearer

parlai/crowdsourcing/utils/analysis.py Show resolved Hide resolved
@mojtaba-komeili mojtaba-komeili merged commit 6a56b5c into master Aug 13, 2021
@mojtaba-komeili mojtaba-komeili deleted the crowd-analysis branch August 13, 2021 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants