#NEWLINE# def match( self , data_1 , data_2 , threshold = 0.5 ) : #NEWLINE# #INDENT# '\n        Identifies pairs of records that refer to the same entity, returns\n        tuples containing a set of record ids and a confidence score as a float\n        between 0 and 1. The record_ids within each set should refer to the\n        same entity and the confidence score is the estimated probability that\n        the records refer to the same entity.\n\n        This method should only used for small to moderately sized datasets\n        for larger data, use matchBlocks\n\n        Arguments:\n        data_1    -- Dictionary of records from first dataset, where the\n                     keys are record_ids and the values are dictionaries\n                     with the keys being field names\n\n        data_2    -- Dictionary of records from second dataset, same form\n                     as data_1\n\n        threshold -- Number between 0 and 1 (default is .5). We will consider\n                     records as potential duplicates if the predicted\n                     probability of being a duplicate is above the threshold.\n\n                     Lowering the number will increase recall, raising it\n                     will increase precision\n        ' #NEWLINE# blocked_pairs = self . _blockData ( self , data_2 ) #NEWLINE# return self . matchBlocks ( blocked_pairs , threshold )