Skip to content

Commit

Permalink
updating mekano to have better repr statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Jan 3, 2014
1 parent d13124a commit 082cb31
Show file tree
Hide file tree
Showing 7 changed files with 3,863 additions and 4,479 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ possible_classifiers
.DS_Store
mysql.cnf
*settings
Dedupe.egg-info/
2,978 changes: 1,549 additions & 1,429 deletions dedupe/mekano/atomvector.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dedupe/mekano/atomvector.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cdef class AtomVector:
self.set(k,v)

def __repr__(self):
return "(" + self.name + "[" + ",".join(["%s:%5.3f" % (a,v) for a,v in self.iteritems()]) + "])"
return "(" + str(self.name) + "[" + ",".join(["%s:%5.3f" % (a,v) for a,v in self.iteritems()]) + "])"

def tostring(self, af):
"""Return a pretty-formatted string.
Expand Down
1,407 changes: 634 additions & 773 deletions dedupe/mekano/atomvectorstore.cpp

Large diffs are not rendered by default.

1,518 changes: 691 additions & 827 deletions dedupe/mekano/corpusstats.cpp

Large diffs are not rendered by default.

1,474 changes: 635 additions & 839 deletions dedupe/mekano/invidx.cpp

Large diffs are not rendered by default.

962 changes: 352 additions & 610 deletions dedupe/mekano/weightvectors.cpp

Large diffs are not rendered by default.

0 comments on commit 082cb31

Please sign in to comment.