--
You received this message because you are subscribed to the Google Groups "PSL Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psl-users/a86e4b38-baf4-4ae2-96b4-c903aa3bb1f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Tzahi,I believe that @Min/@Max are operators on coefficients, not full atoms.Have you tried a logical rule instead?100: base_similarity(A) & infered_name_similarity(A) -> infered_similarity(A) ^2-eriq
On Thu, May 23, 2019 at 3:36 PM TzahiJ <tza...@hotmail.com> wrote:
--Hi All,I have the following rule:100: base_similarity(A) + infered_name_similarity(A) <= infered_similarity(A)^2It works OK, but when the sum of the two atoms (The body) is larger than 1, it will reduce the open predicate on the body.I tried using the @Min operator:100: @Min[base_similarity(A) + infered_name_similarity(A),1] <= infered_similarity(A)^2But this rule will not compile.What am I doing wrong?Thanks, Tzahi
You received this message because you are subscribed to the Google Groups "PSL Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-...@googlegroups.com.
I tried another approach:
--
You received this message because you are subscribed to the Google Groups "PSL Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psl-users/56151f38-7e5e-4f4b-9d0f-6e4022744877%40googlegroups.com.
In a rule, you cannot get the value of an atom.Is base_similarity closed and infered_name_similarity open?-eriq
On Sat, May 25, 2019 at 8:35 AM TzahiJ <tza...@hotmail.com> wrote:
--I tried another approach:base_similarity(A) & inferred_name_similarity(A) -> inferred_similarity(A)^4but this does not compile :-(. only ^2 and ^1 are excepted.That is a pity. It seems to me a consistent way of saying that if conditions match - the "truthiness" of the head is increased.Is there a way to get the value of an atom so that I can use math operations on it? something like atom(A).value?
You received this message because you are subscribed to the Google Groups "PSL Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psl-users/72affc69-17a8-432c-b678-304ee9fec720%40googlegroups.com.
Thanks Eriq,
AFAIU, This will only guarantee that inferred_similarity will be the maximum the other two atoms. I am afraid this does not help.
My situation is as follows:
All entities in a network are linked to a source entity. Their base_similarity to the source is computed by a separate algorithm.
If an entity name is similar to the source entity name – Then it has a inferred_name_similarity that should increase the inferred_similarity.
Similarity is transferred to other entities by the rule:
Inferred_name_similarity(A) & Linked(A,B) -> inferred_name_similarity(B)
My understanding is that Atom values in PSL can not increase in a rule.
Is there any way around this ?
Thanks again, Tzahi
My understanding is that Atom values in PSL can not increase in a rule.
To unsubscribe from this group and stop receiving emails from it, send an email to psl-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psl-users/dfc5edb5-8235-486b-810d-5b317bfa832c%40googlegroups.com.