Hi all,
thanks for the interest to the relation framework. I'd to know if the
framework has been released.
I have a problem with two jape rules.
Rule: VenditoreSecondo
(
((PERSONA)|(PERSONACC)):vendesecondo
({Token.kind == word})*
({Token.string =="vende"})
) -->
:vendesecondo.Person ={rule = "VenditoreSecondo" ,
class="http://mia.ontologia#VENDITORE"}
Rule: Compratore
(
((PERSONA)|(PERSONACC)):compra
({Token.kind == word})*
({Token.string =="compra"}|{Token.string =="acquista"})
) -->
:compra.Person ={rule = "Compratore" ,
class="http://mia.ontologia#COMPRATORE"}
The control mode is appelt.
The two rules are similar, the first recognize a seller(Venditore) the second a
buyer(Compratore).
The first rule recognize a Person followed by a generic number of word then the
word "vende".
The second is equal, but the last word is "compra".
I try to annotate this
"BATTISTELLA ANNA cede e vende al sig. GREATTI FRANCO che accetta e acquista un
appartamento"
in this there are buyer and seller. The first rule must annotate "BATTISTELLA
ANNA cede e vende" like seller
but the result of the annotation is only BATTISTELLA ANNA == "buyer" because
in the phrase there is the word "acquista", but there is also "vende".
But if I annotate only "BATTISTELLA ANNA cede e vende" the result is correct. I
think the problem is the range of word that the operator * use.
Thanks and regards.
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion