# Combining Models

**URL:** <https://support.prodi.gy/t/combining-models/3155>\
**Category:** Uncategorized\
**Tags:** usage, ner\
**Created:** [July 6, 2020, 10:50pm UTC](https://support.prodi.gy/t/combining-models/3155 "2020-07-06T22:50:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tshah1](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@tshah1](https://support.prodi.gy/u/tshah1)\
**Post date:** [July 6, 2020, 10:50pm UTC](https://support.prodi.gy/t/combining-models/3155/1 "2020-07-06T22:50:17Z")

</div>

Hi,

I trained two different models that are designed to read websites for information. One of them recognizes names, and the other recognizes job titles. I made them seperate, but I would like to have them in one model so I can compare the positioning of the results and correlate specific names to job titles. Is there any way I could combine these models into one or possibly find a way to run both at the same time so they show me the order in which I found each of the results?

Thanks!

---

<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:** [July 7, 2020, 9:27am UTC](https://support.prodi.gy/t/combining-models/3155/2 "2020-07-07T09:27:02Z")

</div>

Hi! The most straightforward approach would be to train one model on the combined datasets so you have one entity recognizer that predicts both. Prodigy's `train` recipe lets you pass in multiple comma-separated dataset names and will merge the annotations before training. An advantage of this approach is that you can potentially achieve better results, because the presence/absence of one label will have an impact on the other label. For example, a token can only be part of one entity, so if you know that something is a job title, the model also knows that it can't be a person.

---

<div class="post-metadata">

**Author:** ![tshah1](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@tshah1](https://support.prodi.gy/u/tshah1)\
**Post date:** [July 8, 2020, 7:27pm UTC](https://support.prodi.gy/t/combining-models/3155/3 "2020-07-08T19:27:52Z")

</div>

Thank you!
