-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add test for all_by_all_pairwise_similarity() in semsimian using custom IC map #801
Conversation
You may want to lint it |
raise AssertionError("SemanticSimilarityInterface not implemented") | ||
entities = [VACUOLE, ENDOMEMBRANE_SYSTEM] | ||
|
||
sim = (adapter.all_by_all_pairwise_similarity(entities, entities, predicates=self.predicates)) |
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.
not related to this PR but the way this test module uses object variables for constants is a little unusual
sim = (adapter.all_by_all_pairwise_similarity(entities, entities, predicates=self.predicates)) | ||
|
||
for s in sim: | ||
if s is not None: |
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.
super pedantic: I much prefer doing an initial assert s is not None
, then no need for the indented if/else clause.
@caufieldjh @hrshdhgd