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

[jira] [Comment Edited] (NLPCRAFT-247) Synonyms DSL improvements.

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

Gleb edited comment on NLPCRAFT-247 at 2/19/21, 7:56 PM:
---------------------------------------------------------

Looks like a good feature to have.

Maybe 1. could be defined as *{A[0-3]}x* ?

Also, 2 could be *{A}?*

I think it's more natural to make regex-like definitions


was (Author: ifropc):
Looks like a good feature to have.

Maybe 1. could be defined as *{A[0-3]} x?*

Also, 2 could be *{A}?* 

I think it's more natural to make regex-like definitions

> Synonyms DSL improvements.
> --------------------------
>
>                 Key: NLPCRAFT-247
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-247
>             Project: NLPCraft
>          Issue Type: Improvement
>          Components: probe
>            Reporter: Sergey Kamov
>            Assignee: Aaron Radzinski
>            Priority: Major
>             Fix For: 0.7.5
>
>
> Synonyms DSL improvements.
> 1) Add quantifiers for synonyms
> Now we have to write following if we want to add synonyms for x and 1, 2 or 3 A before
> x|A x|A A x|A A A x
> Let's define it as \{A[0, 3]|*} x
> If will be useful if A defined via nested elements
> 2) \{A|*} x - means `A x` or `x` (* indicates that A is optional 0 ..1)
> it is suitable symbols ? I guess it can be confused with intents quantifiers (* means [0, ∞])?
> What do you think?
>  
>  



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