Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding confidence to write_function #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding confidence to write_function #38

wants to merge 1 commit into from

Conversation

evz
Copy link
Contributor

@evz evz commented Jul 25, 2015

@fgregg Not sure if this is what you were talking about but, here ya go.

Closes #7

@@ -62,8 +62,11 @@ def writeResults(clustered_dupes, input_file, output_file):

cluster_membership = {}
for cluster_id, (cluster, score) in enumerate(clustered_dupes):
for record_id in cluster:
cluster_membership[record_id] = cluster_id
for record_index, record_id in enumerate(cluster):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we do this as

for record_id, score in zip(cluster, score)

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants