from abc import ABC, abstractmethod from typing import Dict, List, Tuple class BaseAnalyzer(ABC): @abstractmethod def analyze(self, text: str): pass @abstractmethod def format_output(self, result) -> str: pass