<reponame>AhmedLeithy/Recognizers-Text<gh_stars>100-1000
#  Copyright (c) Microsoft Corporation. All rights reserved.
#  Licensed under the MIT License.

from abc import abstractmethod
from typing import Match
from recognizers_date_time.date_time.date_time_extractor import DateTimeExtractor


class DateExtractor(DateTimeExtractor):

    @abstractmethod
    def get_year_from_text(self, match: Match) -> int:
        raise NotImplementedError
