# How to approach NER "sub-entities" task?

**URL:** <https://support.prodi.gy/t/how-to-approach-ner-sub-entities-task/3545>\
**Category:** Uncategorized\
**Tags:** usage, ner, spacy\
**Created:** [October 19, 2020, 6:49pm UTC](https://support.prodi.gy/t/how-to-approach-ner-sub-entities-task/3545 "2020-10-19T18:49:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 20, 2020, 7:37am UTC](https://support.prodi.gy/t/how-to-approach-ner-sub-entities-task/3545/2 "2020-10-20T07:37:51Z")

</div>

You could also train a custom parser like in this [example](https://spacy.io/usage/examples#intent-parser). So you keep `DRUG` as an entity but `DOSAGE` is a relation to that entity. This [example](https://spacy.io/usage/examples#entity-relations) might inspire you as well.

If you find those approaches relevant then I suggest you follow this [thread](https://support.prodi.gy/t/annotation-scheme-workflow-for-entity-relations/3547) that I just started on the subject.

---

_[View the full topic](https://support.prodi.gy/t/how-to-approach-ner-sub-entities-task/3545)._
