[
https://issues.apache.org/jira/browse/NLPCRAFT-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17267577#comment-17267577
]
Aaron Radzinski commented on NLPCRAFT-20:
-----------------------------------------
Is this still an issue?
> 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)