You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Aaron Radzinski (Jira)" <ji...@apache.org> on 2021/01/19 17:47:00 UTC

[jira] [Assigned] (NLPCRAFT-20) Limits not found for entities which names coincide with numeric units names.

     [ https://issues.apache.org/jira/browse/NLPCRAFT-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Radzinski reassigned NLPCRAFT-20:
---------------------------------------

    Assignee: Sergey Kamov  (was: Aaron Radzinski)

> Limits not found for entities which names coincide with numeric units names.
> ----------------------------------------------------------------------------
>
>                 Key: NLPCRAFT-20
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-20
>             Project: NLPCraft
>          Issue Type: Bug
>          Components: probe
>    Affects Versions: 0.5.0
>            Reporter: Sergey Kamov
>            Assignee: Sergey Kamov
>            Priority: Minor
>             Fix For: 0.7.4
>
>
> How to reproduce
>  # Define entity with synonym `A`
>  # Ask "top 10 A"  - the limit is not defined because 10 A skipped from numerics because of `10 A` detected as `10 amperes`
>  # See org.apache.nlpcraft.probe.mgrs.nlp.enrichers.limit.NCLimitEnricher; line {color:#000080}val {color}numsMap = NCNumericManager.find(ns).filter(_.unit.isEmpty).map(p ⇒ p.tokens → p).toMap



--
This message was sent by Atlassian Jira
(v8.3.4#803005)