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.

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