intermediate commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user