Hello,
The reason for this behavior is the way Appelt mode works. This is a
quote from the GATE Jape documentation about appelt mode:
"From all the rules that match a region of the document starting at some
point X, the one which matches the longest region is fired. "
Maybe you should use the "first" control style for these specific rules.
You can find some more documentation at GATE's website
(http://gate.ac.uk/sale/tao/) and more specifically at
http://gate.ac.uk/sale/tao/splitch7.html#sec:jape:priority
Greetings,
Philip
On 10/19/2009 01:30 PM, [email protected] wrote:
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
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion