Browse Source

Update config_loader.py

tags/v0.1.0
Yige XU GitHub 7 years ago
parent
commit
aaac041fc3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fastNLP/loader/config_loader.py

+ 1
- 1
fastNLP/loader/config_loader.py View File

@@ -24,7 +24,7 @@ class ConfigLoader(BaseLoader):
Example:
test_args = ConfigSection()
ConfigLoader("config.cfg", "").load_config("./data_for_tests/config", {"POS_test": test_args})
:return:
:return: return nothing, but the value of attributes are saved in sessions
"""
assert isinstance(sections, dict)
cfg = configparser.ConfigParser()


Loading…
Cancel
Save