Uploaded image for project: 'NLPCraft'
  1. NLPCraft
  2. NLPCRAFT-20

Limits not found for entities which names coincide with numeric units names.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5.0
    • 0.7.4
    • None
    • None

    Description

      How to reproduce

      1. Define entity with synonym `A`
      2. Ask "top 10 A"  - the limit is not defined because 10 A skipped from numerics because of `10 A` detected as `10 amperes`
      3. See org.apache.nlpcraft.probe.mgrs.nlp.enrichers.limit.NCLimitEnricher; line val numsMap = NCNumericManager.find(ns).filter(_.unit.isEmpty).map(p ⇒ p.tokens → p).toMap

      Attachments

        Activity

          People

            sergeykamov Sergey Kamov
            sergeykamov Sergey Kamov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: