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

Adapt instance algo to multi labels #23

Open
wants to merge 3 commits into
base: alpha-dev
Choose a base branch
from

Conversation

DerIntergalaktischeGrosshorst

This should allow the algorithm to run on freebase

Integer nodeLabelId = labelDictionary.get(new AbstractMap.SimpleEntry<>(edgeLabel, nodeLabel));
initialInstances.get(nodeLabelId).add(node);
for (int nodeLabel : nodeLabels) {
Integer nodeLabelId = labelDictionary.get(new AbstractMap.SimpleEntry<>(edgeLabel, nodeLabel));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really introduce a new datastructure pair consisting of one edge and one node label.


int labelID = 0;
for (int label : labels) {
labelID = labelDictionary.get(new AbstractMap.SimpleEntry<>(edgeLabel, label));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only adds the last label to the next instances. Is this intended?

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