linqs / psl

The PSL software from the University of Maryland and the University of California Santa Cruz
http://psl.linqs.org
Apache License 2.0
298 stars 100 forks source link

Refactoring and merging PSL-VMI feature #335

Open mhm90 opened 2 years ago

mhm90 commented 2 years ago

I need some changes in PSL-VMI feature and I was wondering if you could help me with that to change implementation accordingly and apply the feature in the main repo to be released in the next version. I am not using PSL-CLI but PSL-Java in my project. I have a standalone application which has its lifecycle beyond the PSL run and is using PSL to infer a result from some input received as a request! Consider it as a backend service which uses PSL (runs a PSL job per each request and waits for it to calculate the response). I need to track why my rules resulting this specific response (which is what PSL-VMI is doing) and log the JSON output of PSL-VMI in a searchable log container with my PSL job id like Graylog. So thats why I don't need PSL-VMI to output the debug data as a file after inference process. I need it to be like a callback after inference in java code and I use that data for my logging purposes. The callback could also handles the JSON debug file generation in the CLI.

eriq-augustine commented 2 years ago

So it sounds like the key information that you want are the ground rules/terms associated with a specific atom/prediction. Does that sound right?

mhm90 commented 2 years ago

Yeah, I think I need pretty much everything for the inference debugging, but hasn't all this been implemented once in the PSL-Viz fork? Should I start from scratch?

eriq-augustine commented 2 years ago

I would take a look at PSL-Viz and see what components you may want to bring over from that.