コード例 #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