Syntax 门-日本规则嵌套‘;包含’;运算符-正确的语法
当我尝试使用OR运算符创建“句子包含”jape规则时,即当一个句子包含1或2以及3或4时,我会出错:Syntax 门-日本规则嵌套‘;包含’;运算符-正确的语法,syntax,nlp,grammar,gate,Syntax,Nlp,Grammar,Gate,当我尝试使用OR运算符创建“句子包含”jape规则时,即当一个句子包含1或2以及3或4时,我会出错: ( { Sentence contains { Annotation1 | Annotation2 }, Sentence contains { Annotation3 | Annotation4 } } ) :temp --> 有人能告诉我正确的语法吗 在LSH-jape语法中没有像AND运算符这样的东西,我们不能在上下文运算符ie中
(
{
Sentence contains { Annotation1 | Annotation2 },
Sentence contains { Annotation3 | Annotation4 }
}
)
:temp
-->
有人能告诉我正确的语法吗 在LSH-jape语法中没有像AND运算符这样的东西,我们不能在上下文运算符ie中使用OR运算符;包含并在其中。相反,您可以这样编写代码
(
({Sentence contains {Annotation1}} | {Sentence contains {Annotation2}})
({Sentence contains {Annotation3}} | {Sentence contains {Annotation4}})
)
:temp
-->