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

Prospective Search in Lucas

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.1Addons
    • None
    • Sandbox-Lucas
    • None

    Description

      I would like to use UIMA Lucas to perform a prospective search. When the search query is a phrase query, ProspectiveSearchAE.process() could not find the matching tokens even if there are matches in the document. It worked well for boolean queries.

      In org.apache.uima.lucas.ProspectiveSearchAE line 189, the original code is scorer.init(tokenStream). I suspect that we need to do tokenStream = scorer.init(tokenStream). The original tokenStream was consumed in the scorer.init(tokenStream). If we want to consume it again (as the code did), we need to use the returned tokenStream, which has been reset to the beginning.

      I am a newbie to Lucas. Please correct me if I am wrong.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yanna.kang Yanna Kang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: