Skip to content

Commit

Permalink
documentation for core dedupe function
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Sep 13, 2012
1 parent 5d158a5 commit 4837d2f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dedupe/dedupe.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,21 @@ def initializeTraining(self, training_file=None) :


def trainX(self, data_d, training_source=None) :
"""
Learn field weights and blocking predicate from file of labeled
examples or round of interactive labeling
Keyword arguments:
data_d -- record_dictionary
training_source -- either a path to a file of labeled examples
, where the key is a unique identifier
for a record and t
"""
if (training_source.__class__ is not str
or not isinstance(training_source, types.FunctionType)):
raise ValueError
Expand Down

0 comments on commit 4837d2f

Please sign in to comment.