Hi,
The length of the phrase your pattern matches depends heavily on the
input annotations defined in the current jape phase. Only the defined
input annotations take part in the matching, so if you include the Split
annotation, this will stop the matching on the first appearance of Split
(in other words, your patterns will work in the boundaries of a
sentence). The Split is produces by the sentence splitter processing
resource and marks the beginning and ending of sentences in the text.
All the best,
Philip
On 12/03/2009 02:19 PM, [email protected] wrote:
Hi all ,
thanks for your attention.
I have this question.
My jape rule is like this.
( (PERSON)
({Token})*
({Token.string =="buy"})
)
This rule don't work correctly, because if the word "buy" is present in a different
phrase where the person is recognized the rule is fired, this rule is fired also when the word
"buy" is present in another paragraph . is there a way to limit the research of a token's
generic number, until you will find a punctuation mark ?
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion
--
Philip Alexiev<[email protected]>
Software Engineer
Ontotext AD
_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion