예제 #1
0
    def getEntityType(self, entityName):
        types = self.getEntityTypes(entityName)

        entityDetector = EntityDetector()
        entityTypeResult = entityDetector.detect(types.get("type", []))

        result = {"entity_detection": entityTypeResult, "types": types}
        return result
예제 #2
0
파일: SPARQL.py 프로젝트: torgebo/jroc
    def getEntityType(self, entityName):
        types = self.getEntityTypes(entityName)

        entityDetector = EntityDetector()
        entityTypeResult = entityDetector.detect(types.get("type", []))

        result = {
            "entity_detection": entityTypeResult,
            "types": types
        }
        return result