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

cleaner_base.py 266B

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