On Wed, Feb 20, 2008 at 3:36 PM, Eddie Epstein <[EMAIL PROTECTED]> wrote:
> Edward,
>
>  As a quick test, I tried using some test data for the
>  XCASDeserializerTest. This data can be found in
>  
> http://svn.apache.org/repos/asf/incubator/uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleCas

Eddie,

Thanks for pointing these files out.  I fixed a couple minor bugs and
now pycas can read both the files you listed.  A couple questions
though:

- In XCAS, what exactly is the meaning of the _indexed attrib?  I was
assuming that it specified the sofaNum of the sofa that indexes a
given feature structure.  But if so, what does "_indexed=0" mean, and
how does that differ from just not having an "_indexed" attribute?
(The only place where I see "_indexed=0" is on sofas.)

- From what you said before, the only view that's allowed to not have
a sofa is _InitialView.  Does that mean I can assume that a
<cas:View.../> element without a sofa is for the _initialView?  And
what should happen if there is more than one <cas:View.../> element
without a sofa?

- I assume that the "size" attribs in the XCAS files are not
specifying a feature value, but are just used to allow the
deserializer to preallocate the right amount of space.  Can I safely
ignore them?  Or should I handle cases like <uima.cas.StringArray
_id="12" size="10"/> where the number of children doesn't match the
size?  If this type of mismatch *is* allowed, then I assume I should
fill in a null/0/false value for any elements without corresponding
xml children?

Thanks,
-Edward

Reply via email to