def getEntityType(self, entityName): types = self.getEntityTypes(entityName) entityDetector = EntityDetector() entityTypeResult = entityDetector.detect(types.get("type", [])) result = {"entity_detection": entityTypeResult, "types": types} return result
def getEntityType(self, entityName): types = self.getEntityTypes(entityName) entityDetector = EntityDetector() entityTypeResult = entityDetector.detect(types.get("type", [])) result = { "entity_detection": entityTypeResult, "types": types } return result