def __init__(self, entityType, sentenceFilter):
   """ create a component that can be trained cluster similar mentions 
       of a given type. 
       threshold = probability threshold for two mentions refering to same entity
                   if two mention have a match probability greater than this
                   threshold, consider them to refer to same entity
                   (default is 0.5)
       useDetected = True if detected mentions should be clustered. 
                     Otherwise cluster annotated mentions
       """
   BaseMentionClusterer.__init__(self, entityType, sentenceFilter, useDetected=False)
Esempio n. 2
0
 def __init__(self,
              entityType,
              sentenceFilter,
              threshold=0.5,
              useDetected=True):
     """ create a component that can be trained cluster similar mentions 
     of a given type. 
     threshold = probability threshold for two mentions refering to same entity
                 if two mention have a match probability greater than this
                 threshold, consider them to refer to same entity
                 (default is 0.5)
     useDetected = True if detected mentions should be clustered. 
                   Otherwise cluster annotated mentions
     """
     BaseMentionClusterer.__init__(self, entityType, sentenceFilter,
                                   useDetected)
     self.matchThreshold = threshold
Esempio n. 3
0
 def __init__(self, entityType, sentenceFilter):
     """ create a component that can be trained cluster similar mentions 
     of a given type. 
     """
     BaseMentionClusterer.__init__(self, entityType, sentenceFilter)
     self.finderType = 'baseline-cluster'
 def __init__(self, entityType, sentenceFilter):
   """ create a component that can be trained cluster similar mentions 
       of a given type. 
       """
   BaseMentionClusterer.__init__(self, entityType, sentenceFilter)
   self.finderType = 'baseline-cluster'