Skip to content

First pass at semantic similarity#49

Open
cmungall wants to merge 4 commits into
masterfrom
sim
Open

First pass at semantic similarity#49
cmungall wants to merge 4 commits into
masterfrom
sim

Conversation

@cmungall

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread ontobio/ontol.py
"""
return self._get_meta_prop(nid, 'definition')

def definition_val(self, nid):

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

cmungall commented Jul 1, 2017

Copy link
Copy Markdown
Contributor Author

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