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

Refactor analysis for per turn eval #3780

Merged
merged 8 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions parlai/crowdsourcing/tasks/model_chat/model_chat_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def __init__(
left_pane_path = os.path.expanduser(args.blueprint.left_pane_text_path)
with open(left_pane_path, "r") as left_pane_file:
self.left_pane_text = left_pane_file.read()
self.format_left_pane_text()
self.annotations_config: Optional[str] = None
if args.blueprint.get("annotations_config_path", "") != "":
annotations_config_path = os.path.expanduser(
Expand Down Expand Up @@ -253,6 +254,12 @@ def __init__(
}
)

def format_left_pane_text(self):
"""
Modifies self.left_pane_text for code injection
"""
pass

@abstractmethod
def _get_shared_models(self, args: "DictConfig") -> Dict[str, dict]:
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
blender_90M: >
--model-file zoo:blender/blender_90M/model
--model-file zoo:blender/blender_90M/model