2024-02-22 23:31:57 +08:00
|
|
|
"""Abstract interface for document cleaner implementations."""
|
2024-09-10 17:00:20 +08:00
|
|
|
|
2024-02-22 23:31:57 +08:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
|
|
|
|
class BaseCleaner(ABC):
|
2024-09-10 17:00:20 +08:00
|
|
|
"""Interface for clean chunk content."""
|
2024-02-22 23:31:57 +08:00
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def clean(self, content: str):
|
|
|
|
raise NotImplementedError
|