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

First pass at semantic similarity #49

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

First pass at semantic similarity #49

wants to merge 4 commits into from

Conversation

cmungall
Copy link
Contributor

No description provided.

"""
return self._get_meta_prop(nid, 'definition')

def definition_val(self, nid):
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

@cmungall cmungall changed the title SemSim First pass at semantic similarity Jul 1, 2017
@cmungall
Copy link
Contributor Author

cmungall commented Jul 1, 2017

NOTE:

it's likely this will end up living in a different repo

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