def setupEntities(self):

        if self._confs["NLU"]["Entities"] == "Mitie":
            self.entityController = Entities()
            self.entityController.trainEntities(
                self._confs["NLU"]["Mitie"]["ModelLocation"],
                self.trainingData)
            self.Helpers.logMessage(self.LogFile, "TRAIN", "OK",
                                    "NLU Trainer Entities Ready")
Пример #2
0
	def loadEntityController(self):

		###############################################################
		#
		# Initiates the entity extractor class from tools
		#
		###############################################################

		self.entityController = Entities()
Пример #3
0
	def setupEntities(self):
		""" Prepares the entities. """

		if self.Helpers.confs["NLU"]["Entities"] == "Mitie":
			self.entityController = Entities()
			self.entityController.trainEntities(
				self.Helpers.confs["NLU"]["Mitie"]["ModelLocation"],
				self.trainingData)

			self.Helpers.logger.info("NLU Trainer Entities Ready")
Пример #4
0
    def entities(self):
        """ Initializes the entities. """

        self.entityController = Entities()
        self.ner = self.entityController.restoreNER()
Пример #5
0
    def loadEntityController(self):
        """ Initiates the entity extractor class """

        self.entityController = Entities()