from core.ExecutionContext import ExecutionContext from parsers.ParserInput import ParserInput class BaseParser: """ Base class for parser than can be used in concept recognition """ def __init__(self, name): self.name = name # name of the parser def parse(self, context: ExecutionContext, parser_input: ParserInput, error_sink: list): """ Default signature for parsing :param context: :param parser_input: :param error_sink: :return: """ pass