コード例 #1
0
ファイル: fox.py プロジェクト: AKSW/CSV2RDF-WIKI
 def __init__(self, foxlight=4):
     """
         TODO: feed scmc.eu to spotlight
     """
     ClassifierInterface.__init__(self)
     DataInterface.__init__(self)
     self.fox = foxpy.fox.Fox(foxlight) #foxlight stands for NER method, see Fox class for details
コード例 #2
0
ファイル: linker.py プロジェクト: AKSW/CSV2RDF-WIKI
    def __init__(self, resourceId):
        DataInterface.__init__(self)
        self.confgen = LimesConfigGenerator()

        self.setSourceUri(resourceId)
        self.mappings = self._getMappings(resourceId)
        self.mappings.init_mappings_only()
        self.setSourceProperty(resourceId)

        self.mapping = self.mappings.get_mapping_by_name('csv2rdf-interface-generated')
        class_ = urllib.unquote(self.mapping['class'])
        self.setTargetRestriction(class_)

        self.setMetricString()
        self.setAcceptanceConditions()
        self.setReviewConditions()
コード例 #3
0
ファイル: dbpediaspotlight.py プロジェクト: AKSW/CSV2RDF-WIKI
 def __init__(self):
     ClassifierInterface.__init__(self)
     DataInterface.__init__(self)