Newer
Older

Michał Pogoda
committed
from src.detections import Detection
from abc import ABC, abstractmethod
class MorphosyntacticDictionary(ABC):
@abstractmethod
def get_supported_detection_classes(self) -> List[Type[Detection]]:
"""
Returns a list of supported detection classess

Michał Pogoda
committed
def get_random_replacement(self, original_entry: Detection) -> Optional[str]:
"""
Returns a random replacement for the original entry
"""