Skip to content

print out cluster of relations for each relation prediction with the associated entities #3

@bhomass

Description

@bhomass

Hi, I am still reading thru the code, not sure if I am close. It would really help if you could give some code example, how the trained model would predict the relation per input sentence features, and at the end provide sample data (entities with their predicted relation, along with original text) for each relation cluster.

It would seem after loading the saved model, you still need to call OieInduction.compileFunction to create the theano graph, apply the parameters from the saved model, then call functions like OieInduction.getClustersSets() which depends on the output from OieInduction.compileFunction().

Is my assessment correct?

I know you can turn on the pickle output during learn(), but it seems you would be dumping out one version per iteration, when I only want the final version. In addition, I don't really want to call learn repeatedly after initial training, just want to do inference on new data using the trained model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions