from utils import Constants

from engine.Classification import Classification
from engine.POSTagger import POSTagger


class Engine:

    def __init__(self):

        self.intent = None
        self.narration = None
        self.sentiment = None

        self.entity = None
        self.pos = None

        self.context = None

        self.behaviour = None

    def build(self):

        self.intent = Classification(Constants.DATA_SET_FILE_PATH_INTENT,
                                     Constants.EVENT_NAME_INTENT,
                                     Constants.REGEX_ALL_ALPHA_NUMERIC)

        self.pos = POSTagger(Constants.DATA_SET_FILE_PATH_POS)

    def start(self):

        self.intent.build_classification()
        self.pos.build_pos_tagger()

from utils import Constants

from engine.Classification import Classification
from engine.POSTagger import POSTagger


class Engine:

    def __init__(self):

        self.intent = None
        self.narration = None
        self.sentiment = None

        self.entity = None
        self.pos = None

        self.context = None

        self.behaviour = None

    def build(self):

        self.intent = Classification(Constants.DATA_SET_FILE_PATH_INTENT,
                                     Constants.EVENT_NAME_INTENT,
                                     Constants.REGEX_ALL_ALPHA_NUMERIC)

        self.pos = POSTagger(Constants.DATA_SET_FILE_PATH_POS)

    def start(self):

        self.intent.build_classification()
        self.pos.build_pos_tagger()
