You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config_loader.py 375 B

7 years ago
1234567891011121314
  1. from loader.base_loader import BaseLoader
  2. class ConfigLoader(BaseLoader):
  3. """loader for configuration files"""
  4. def __int__(self, data_name, data_path):
  5. super(ConfigLoader, self).__init__(data_name, data_path)
  6. self.config = self.parse(super(ConfigLoader, self).load())
  7. @staticmethod
  8. def parse(string):
  9. # To do
  10. return string

一款轻量级的自然语言处理(NLP)工具包,目标是减少用户项目中的工程型代码,例如数据处理循环、训练循环、多卡运行等