Insert rule templates
To insert a rule template in your rules file:
- Open or select the
.cr
file in the editor. - Put the cursor where you want to insert the rule.
- Right-click and choose Insert categorization rule template or Insert extractions rule template.
This is what a categorization rule template looks like:
SCOPE SENTENCE
{
DOMAIN(dom1:NORMAL)
{
SYNCON(123456)
}
DOMAIN(dom1:NORMAL)
{
LEMMA("lemma")
}
DOMAIN(dom1:NORMAL)
{
KEYWORD("keyword")
}
}
SCOPE SENTENCE
{
IDENTIFY(TEMPLATE1)
{
@FIELD1[SYNCON(123456)]
}
IDENTIFY(TEMPLATE1)
{
@FIELD1[LEMMA("lemma")]
}
IDENTIFY(TEMPLATE1)
{
@FIELD1[KEYWORD("keyword")]
}
}