Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Syntax 门-日本规则嵌套‘;包含’;运算符-正确的语法_Syntax_Nlp_Grammar_Gate - Fatal编程技术网

Syntax 门-日本规则嵌套‘;包含’;运算符-正确的语法

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中

当我尝试使用OR运算符创建“句子包含”jape规则时,即当一个句子包含1或2以及3或4时,我会出错:

(
   { 
      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
-->