Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2670

FileSystemCollectionReader doesn't set lastSegment correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0SDK
    • None
    • Examples
    • None

    Description

      FileSystemCollectionReader only sets lastSegment=true (in the SourceDocumentInformation) on the last document. Given that it loads individual documents, not segments of a document, this should be "true" for each CAS that it generates.

      This is a problem when later using a CAS multiplier to segment the CAS. It should be possible to check whether the CAS is a complete document or a segment by testing for "offsetInSource==0 && lastSegment==true".

      in org.apache.uima.examples.cpe.FileSystemCollectionReader:166

      srcDocInfo.setLastSegment(mCurrentIndex == mFiles.size());

      should be:

      srcDocInfo.setLastSegment(true);

      Attachments

        Activity

          People

            Unassigned Unassigned
            jg Jens Grivolla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified