mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-11-30 03:07:59 +08:00
update config loader
This commit is contained in:
parent
7c57bc6fc9
commit
7fb2bcc78c
@ -9,7 +9,7 @@ class ConfigLoader(BaseLoader):
|
||||
"""loader for configuration files"""
|
||||
|
||||
def __int__(self, data_name, data_path):
|
||||
super(ConfigLoader, self).__init__(data_name, data_path)
|
||||
super(ConfigLoader, self).__init__(data_path)
|
||||
self.config = self.parse(super(ConfigLoader, self).load())
|
||||
|
||||
@staticmethod
|
||||
@ -100,7 +100,7 @@ class ConfigSection(object):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = ConfigLoader('configLoader', 'there is no data')
|
||||
config = ConfigLoader('there is no data')
|
||||
|
||||
section = {'General': ConfigSection(), 'My': ConfigSection(), 'A': ConfigSection()}
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user