-
Notifications
You must be signed in to change notification settings - Fork 31
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
First pass at semantic similarity #49
base: master
Are you sure you want to change the base?
Conversation
""" | ||
return self._get_meta_prop(nid, 'definition') | ||
|
||
def definition_val(self, nid): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like this should just be a method on whatever is returned from self.definition
. So if you want the string version, you would just say str(definition(id))
instead of providing a separate method here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the most common operation is getting the value; but in any case this will be dropped as I accidentlly reimplemented this code on a separate PR that's already been merged, doh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it's merged already? Where at? I was thinking we would release after this PR to get my logging changes in and this.
Oh, I just saw that it's just a dictionary that's being returned and not a real Object. I guess my suggestion doesn't make as much sense then.
NOTE: it's likely this will end up living in a different repo |
No description provided.