# PhraseMatcher or the EntityRuler?

**URL:** <https://support.prodi.gy/t/phrasematcher-or-the-entityruler/3575>\
**Category:** Uncategorized\
**Tags:** off-topic\
**Created:** [October 27, 2020, 2:12pm UTC](https://support.prodi.gy/t/phrasematcher-or-the-entityruler/3575 "2020-10-27T14:12:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aksh](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@aksh](https://support.prodi.gy/u/aksh)\
**Post date:** [October 27, 2020, 2:12pm UTC](https://support.prodi.gy/t/phrasematcher-or-the-entityruler/3575/1 "2020-10-27T14:12:25Z")

</div>

# Fairly new to python/spacy

I am trying to do some basic NER for detecting PERSON names. However, I want to detect two kinds of person names.

List 1 - Ones that are already in a list of names that I have access to

List 2 - All the person names detected by the Spacy NER

Upon reading the documentation and some examples, I figure that I could either use the _PhraseMatcher_ or the _EntityRuler_.

If my goal is to label only the entities from **List 2 excluding those in List 1** , what is the best methodology to pursue?

Any views are appreciated, thanks in advance! 🙂

Best,  
Aksh
