uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Re: How to detect text sofa?
Date Mon, 04 Apr 2011 19:23:28 GMT
On 4/4/11 8:43 PM, Eddie Epstein wrote:
> On Mon, Apr 4, 2011 at 6:52 AM, Jörn Kottmann<kottmann@gmail.com>  wrote:
>> Hi all,
>> what is the suggested way to detect a text sofa?
>> As far as I know the suggested way of doing it is via
>> the mime type, right?
>> Which options remain when the mime type is not set?
>> Is CAS.getDocumentText != null appropriate ?
> This seems right to me. The sofastring feature is a valid Java string,
> so if it is non-null this must be a text sofa.
> The only complication for an editor could be with the default view
> which does not yet have a sofa. It is possible for the default view to
> have indexed FS without a sofaFS, and the CAS editor could create a
> text sofa.

Thanks Eddie, that is very helpful, we of course need to consider this
and also how to create a new view.


View raw message