# NER + Dependency Parsing

**URL:** <https://support.prodi.gy/t/ner-dependency-parsing/3727>\
**Category:** Uncategorized\
**Tags:** usage, ner, spacy, dep\
**Created:** [December 11, 2020, 1:13pm UTC](https://support.prodi.gy/t/ner-dependency-parsing/3727 "2020-12-11T13:13:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiardinelli](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mgiardinelli](https://support.prodi.gy/u/mgiardinelli)\
**Post date:** [December 11, 2020, 1:13pm UTC](https://support.prodi.gy/t/ner-dependency-parsing/3727/1 "2020-12-11T13:13:53Z")

</div>

I am trying to figure out how I can utilize the spaCy dependency tree + NER and/or pattern matching to associate characteristics for entities I am identifying in my text. For example, "I really like red motorcycles with black saddle bags".

I want to be able to identify "red motorcycles" as an entity (I can do this part) but also associate the black saddle bags. Is there a way with the dependency tree (other) to do that? I can leverage the matchers / NER models to get the entities but the associated characteristics is unclear. Any help would be greatly appreciated.

It would be great if I could somehow create the association

- Entity: red motorcycle
- Characteristics: black saddle bags

A subset of my matcher rule to get the entities:

```python
matcher.add("VEHICLE", None,
            [colors,vehicles],
            [vehicles],
            [colors,{"LOWER":"car"}],
            [{"LOWER":"car"}]
           )

```

What I am ultimately looking for is to see if I can generate or pull out the below.

VEHICLE - red motorcycles ATTRIBUTES - black saddle bags

Is using NER + Dependency Parsing the way to pursue this output?

---

<div class="post-metadata">

**Author:** ![nix411](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/nix411/32/2982_2.png) [@nix411](https://support.prodi.gy/u/nix411)\
**Post date:** [December 14, 2020, 10:07am UTC](https://support.prodi.gy/t/ner-dependency-parsing/3727/2 "2020-12-14T10:07:47Z")

</div>

Check out this related question + answer: [Annotation scheme / workflow for entity relations](https://support.prodi.gy/t/annotation-scheme-workflow-for-entity-relations/3547/8)
