下面的 JAPE 规则会覆盖现有的注释还是添加额外的注释?
will the following JAPE rule override the existing annotation or add an extra annotation?
下面的 JAPE 规则将用地址替换电子邮件注释或只添加一个额外的注释地址?
Rule: EmailFinal
Priority: 50
(
{Email}
)
:address
-->
:address.Address = {kind = "email", rule = "EmailFinal"}
A :label.Type = {...}
将始终创建新注释,但不会触及现有注释。如果要删除输入注释,则需要向规则添加第二个操作:
Rule: EmailFinal
Priority: 50
(
{Email}
)
:address
-->
:address.Address = {kind = "email", rule = "EmailFinal"},
:address { inputAS.removeAll(addressAnnots); }
下面的 JAPE 规则将用地址替换电子邮件注释或只添加一个额外的注释地址?
Rule: EmailFinal
Priority: 50
(
{Email}
)
:address
-->
:address.Address = {kind = "email", rule = "EmailFinal"}
A :label.Type = {...}
将始终创建新注释,但不会触及现有注释。如果要删除输入注释,则需要向规则添加第二个操作:
Rule: EmailFinal
Priority: 50
(
{Email}
)
:address
-->
:address.Address = {kind = "email", rule = "EmailFinal"},
:address { inputAS.removeAll(addressAnnots); }