cancel
Showing results for 
Search instead for 
Did you mean: 
andrei
Level 7

Tagging Rule proplem.

Hi,

I have a problem in tagging Rules.

It gows like this:

if i create a tagging rule that recognises the pattern "top cat" and one for the pattern "cat" i have the following problem: the document will be classified bouth "top cat" and "cat".

The text patterns are like this:

\b(?!top )cat\b for "cat"                                                        ?< !  (Lookback)    - dose not work

(?:top) +(?:cat) for "top cat"

thank you very much!

Andrei.

0 Kudos
5 Replies
vimalnavis
Level 13

Re: Tagging Rule proplem.

For matching "top cat", just use \btop\scat\b. Also try this with content categories instead of tagging.

0 Kudos
andrei
Level 7

Re: Tagging Rule proplem.

The problem is with "cat" , i have to make the regex to look back and ignore "top". It marks my document bouth "cat" and "top cat". this is the problem i have to solve.

Thank you for your time.

0 Kudos
vimalnavis
Level 13

Re: Tagging Rule proplem.

Got it. Use this expression to exclude top and any number of spaces between top and cat.

\b(?<!top\s+)cat\b

0 Kudos
andrei
Level 7

Re: Tagging Rule proplem.

it dosen't work i don't know why? it dosen't tag my documet.

0 Kudos
vimalnavis
Level 13

Re: Tagging Rule proplem.

Does your document have more than ~700 characters? Tagging has minimum character requirements.

Use the same RegEx with Content Category (which does not have any minimum character requirement)

0 Kudos