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.

base_saver.py 311 B

1234567891011121314
  1. class BaseSaver(object):
  2. """base class for all savers"""
  3. def __init__(self, save_path):
  4. self.save_path = save_path
  5. def save_bytes(self):
  6. raise NotImplementedError
  7. def save_str(self):
  8. raise NotImplementedError
  9. def compress(self):
  10. raise NotImplementedError

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