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

Crowdsourcing data analysis. #3958

Merged
merged 5 commits into from
Aug 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parlai/crowdsourcing/utils/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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:
def is_unit_acceptable(self, unit_data: Dict[str, Any]) -> bool:
"""
Helps filtering units that are compiled. Override for use.

Expand Down Expand Up @@ -210,7 +210,7 @@ def get_units_data(self, task_units: List[Unit]) -> List[Dict[str, Any]]:
task_data = []
for unit in task_units:
unit_data = self.get_data_from_unit(unit)
if unit_data and self.unit_acceptable(unit_data):
if unit_data and self.is_unit_acceptable(unit_data):
task_data.append(unit_data)

return task_data