# ner.manual: highlight patterns

**URL:** <https://support.prodi.gy/t/ner-manual-highlight-patterns/3474>\
**Category:** Uncategorized\
**Tags:** usage, ner, spacy, solved\
**Created:** [October 1, 2020, 7:00pm UTC](https://support.prodi.gy/t/ner-manual-highlight-patterns/3474 "2020-10-01T19:00:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aph61](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/aph61/32/417_2.png) [@aph61](https://support.prodi.gy/u/aph61)\
**Post date:** [October 1, 2020, 7:00pm UTC](https://support.prodi.gy/t/ner-manual-highlight-patterns/3474/1 "2020-10-01T19:00:09Z")

</div>

Hi,

According to the documentation pre-defined patterns are highlighted in ner.manual.

{"label":"PERSON","pattern":[{"lower":"Obama"}]}  
{"label":"PERSON","pattern":[{"lower":"Barack"}, {"lower":"Obama"}]}  
{"label":"PERSON","pattern":[{"lower":"Putin"}]}

I run  
prodigy ner.manual politicians blank:en --label PERSON --patterns politicians.jsonl

However, none of the above are highlighted. Rather, I have patterns highlighted that have nothing to do with PERSONs. Once I have highlighted an new PERSON (eg. Clinton) It is not identified as PERSON either

Where do I go wrong?

cheers,

Andreas

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [October 1, 2020, 7:11pm UTC](https://support.prodi.gy/t/ner-manual-highlight-patterns/3474/2 "2020-10-01T19:11:56Z")

</div>

Hi! The problem here is that your patterns don't match: you're looking for **lowercase** tokens that match "Obama" or "Putin". This is never going to be true, since those strings are not lowercase. Prodigy uses the same patterns logic as spaCy and you can find more details here: [https://spacy.io/usage/rule-based-matching](https://spacy.io/usage/rule-based-matching) You might also find the [interactive demo](https://explosion.ai/demos/matcher) helpful, which lets you test your patterns and make sure they match.

---

<div class="post-metadata">

**Author:** ![aph61](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/aph61/32/417_2.png) [@aph61](https://support.prodi.gy/u/aph61)\
**Post date:** [October 1, 2020, 7:46pm UTC](https://support.prodi.gy/t/ner-manual-highlight-patterns/3474/3 "2020-10-01T19:46:40Z")

</div>

Hi Ines,

thanks; the modification did do the trick!  
I thought the "lower" did not make a difference as I interpreted as "it will be compared in lowercase". So I will chance it to the verbatim "ORTH (TEXT)", as the names should occur verbatim

thanks again

Andreas
