Thanks Thomas. May I ask if there is any sample code of UIMA readers that
can provide file name information for developing annotation? I was looking
on the internet today, but couldn't find one. Thanks again for your help -
much appreciated!
Regards,
Debbie Zhang
> -----Original Message-----
> From: Thomas Ginter [mailto:thomas.ginter@utah.edu]
> Sent: Thursday, 10 July 2014 5:00 AM
> To: user@uima.apache.org
> Subject: Re: Read file name in an annotator
>
> Hi Debbie,
>
> The file name is not provided by default in UIMA although I believe the
> UIMA FileReader does populate a SourceDocumentInformation annotation
> with this information. Our group has a set of readers that populate
> our own annotation type to provide location data and other meta-
> information for each record (CAS) being processed. In short you will
> be better off writing your reader to provide that information for you.
>
> Thanks,
>
> Thomas Ginter
> 801-448-7676
> thomas.ginter@utah.edu
>
>
>
>
> On Jul 9, 2014, at 5:41, Debbie Zhang <debbie.d.zhang@gmail.com> wrote:
>
> > Hi,
> >
> > Can anyone tell me how to read the file name in an annotator using
> the
> > JCas? It seems the DocumentAnnotation does't contain file name. Thank
> > you!
> >
> > Best regards,
> >
> > Debbie Zhang
|