[ 
https://issues.apache.org/jira/browse/NLPCRAFT-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17288847#comment-17288847
 ] 

Aaron Radzinski commented on NLPCRAFT-250:
------------------------------------------

What is wrong exactly with regex? Seems to be like a perfect solution...

> Support <any word> in DSL
> -------------------------
>
>                 Key: NLPCRAFT-250
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-250
>             Project: NLPCraft
>          Issue Type: Improvement
>            Reporter: Gleb
>            Priority: Major
>
> It's handy to define "any word" or "any K words" in synonym.
> For example, user nickname could be any word and right now it's required to 
> write a regex to detect it. This doesn't work in several cases, for example, 
> all words in sentence are treated as username.
> But if there was a way to define when any word could be inserted (after 
> certain word, etc.), this problem should be resolved or avoided.
> To illustrate:
> {"send <AnyWord> nlpcraft:num"} -> send AnotherUser123 10 dollars
> Thoughts?



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

Reply via email to