您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

cleaner_base.py 261B

1234567891011
  1. """Abstract interface for document cleaner implementations."""
  2. from abc import ABC, abstractmethod
  3. class BaseCleaner(ABC):
  4. """Interface for clean chunk content."""
  5. @abstractmethod
  6. def clean(self, content: str):
  7. raise NotImplementedError