-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from RUCAIBox/master
Merge
- Loading branch information
Showing
11 changed files
with
100,095 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from config.abstract_configurator import AbstractConfig | ||
|
||
|
||
class DataConfig(AbstractConfig): | ||
def __init__(self, config_file_name): | ||
super().__init__() | ||
self.must_args = [] | ||
self.args = self._read_config_file(config_file_name, 'data') | ||
for cmd_arg_name, cmd_arg_value in self.cmd_args.items(): | ||
if cmd_arg_name.startswith('data.'): | ||
self.args[cmd_arg_name] = cmd_arg_value | ||
|
||
self.default_args = self.default_parser.getargs() | ||
for default_args in self.default_args.keys(): | ||
|
||
if str(default_args) not in self.args and (str(default_args).startswith('data.')): | ||
self.args[str(default_args)] = str(self.default_args[default_args]) | ||
|
||
self._check_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.