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

Have produceResource for CollectionReaders operate like other Analysis Engines with respect to setup of type system

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.1, 2.2
    • 2.3
    • Core Java Framework
    • None

    Description

      This code fails but works if you uncomment out line 3:

      CollectionReader cr = UIMAFramework.produceCollectionReader(aSpecifier);
      CasManager casManager = cr.getCasManager();
      // casManager.addMetaData((ProcessingResourceMetaData)cr.getMetaData());
      casManager.defineCasPool("pool", 2, null);

      Other "produce" methods (i.e. for analysis engines) add their metadata to their cas managers. Consider doing this for Collection Readers too (this is now done during CPE initialization).

      Use case: User found this while trying to test collection reader by itself.

      Attachments

        Activity

          People

            Unassigned Unassigned
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: