[ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
Hi, I use RUTA and I want to delete an annotation if it is within the first 50 tokens of a document. I came up with the following rules : ANY{POSITION(Document, 1)- Header};// Annotate the first token in the document Header{-SHIFT(Header, 1, 2)} ANY[0,49];

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Peter Klügl
On 28.08.2013 16:52, Alexandre Patry wrote: Hi, I use RUTA and I want to delete an annotation if it is within the first 50 tokens of a document. I came up with the following rules : ANY{POSITION(Document, 1)- Header};// Annotate the first token in the document

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Peter Klügl
On 28.08.2013 18:17, Alexandre Patry wrote: On 2013-08-28 11:25, Peter Klügl wrote: On 28.08.2013 16:52, Alexandre Patry wrote: Hi, I use RUTA and I want to delete an annotation if it is within the first 50 tokens of a document. I came up with the following rules :

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
On 2013-08-28 12:19, Peter Klügl wrote: On 28.08.2013 18:17, Alexandre Patry wrote: I will be happy to test drive MARKFIRST when it will be in trunk. It's already in the trunk. If you want, then I can also think of something that avoid the visibility problem. I was able to make it work in my

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Peter Klügl
Am 28.08.2013 20:33, schrieb Alexandre Patry: On 2013-08-28 12:19, Peter Klügl wrote: On 28.08.2013 18:17, Alexandre Patry wrote: I will be happy to test drive MARKFIRST when it will be in trunk. It's already in the trunk. If you want, then I can also think of something that avoid the

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
On 2013-08-28 15:20, Peter Klügl wrote: Am 28.08.2013 20:33, schrieb Alexandre Patry: On 2013-08-28 12:19, Peter Klügl wrote: On 28.08.2013 18:17, Alexandre Patry wrote: I will be happy to test drive MARKFIRST when it will be in trunk. It's already in the trunk. If you want, then I can also