Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1240

Lucene FST linking engine does not check if FST models are available in canEnhance(..)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.12.0
    • 0.12.0
    • None
    • None

    Description

      EnhancementEngines need to check in the canEnhance(..) method if they can enhance a ContentItem.

      While the Lucene FST Linking engine does check for the language and the required NLP analysis results it fails to check if an fitting FST model is present.

      Because of that the Constructor of the LinkingSession throws an IllegalStateException as it expects such calls to be already rejected by the Engine.

      The fix is that the canEnhance checks if the configuration provides a FST model for the language OR a FST model for the default matching lanugage. If both is not available it needs to return EnhancementEngine.CANNOT_ENHANCE.

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            rwesten Rupert Westenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: