Re: Annotation/Feature creation, changing types

2011-12-10 Thread Tomas By
On Sat, December 10, 2011 5:58 pm, francesco.tangari@gmail.com wrote: > Please you can show me how to get the Matched Word with the pattern? It's not really clear what exactly you are asking for. Do you feel that you understand the concept of "annotation"? If so, are there annotations in the

Re: AW: Annotation/Feature creation, changing types

2011-12-10 Thread Tomas By
Armin, I am happy to report that this works fine. The last call should be "addFsToIndexes" (typo I guess). /Tomas On Wed, December 7, 2011 9:44 am, armin.weg...@bka.bund.de wrote: > try this in your annotator: > > final Type type = cas.getTypeSystem().getType(X); > cas.addFsIndexes(cas.create

Re: Annotation/Feature creation, changing types

2011-12-10 Thread Tomas By
On Sat, December 10, 2011 5:58 pm, francesco.tangari@gmail.com wrote: > Please you can show me how to get the Matched Word with the pattern? It's not really clear what exactly you are asking for. Do you feel that you understand the concept of "annotation"? If so, are there annotations in the

Re: AW: Annotation/Feature creation, changing types

2011-12-10 Thread Tomas By
Armin, I am happy to report that this works fine. The last call should be "addFsToIndexes" (typo I guess). /Tomas On Wed, December 7, 2011 9:44 am, armin.weg...@bka.bund.de wrote: > try this in your annotator: > > final Type type = cas.getTypeSystem().getType(X); > cas.addFsIndexes(cas.create

Re: AW: Annotation/Feature creation, changing types

2011-12-07 Thread Tomas By
;s a > meta API like, e.g., JDBC. You can write code that will work with any > type system. We use this API in our own generic tools, like the CVD. > > > --Thilo > > >> >> -Ursprüngliche Nachricht- >> Von: Tomas By [mailto:t...@cmu.edu] >> Gesende

Re: Annotation/Feature creation, changing types

2011-12-06 Thread Tomas By
Hi, Thanks for the reply. On Wed, December 7, 2011 12:04 am, Thilo Goetz wrote: > On 06/12/11 20:47, Tomas By wrote: >> So suppose my data looks like this: >> >> "word" ANNOTATIONTYPE [ MYTYPE = VALUE, ... ] >> ... > > Not in any way that still makes

Annotation/Feature creation, changing types

2011-12-06 Thread Tomas By
Hi all, I am wondering if it is possible to (for example) first create an annotation or a feature that has no type, and then set the type in a second step. >From looking at the docs, it seems there is no obvious way to do this. I want this for two reasons: (1) I have a lexicon lookup module that