# Using prefer\_uncertain with make-gold recipe

**URL:** https://support.prodi.gy/t/using-prefer-uncertain-with-make-gold-recipe/1822
**Category:** Uncategorized
**Tags:** usage, ner
**Created:** [July 23, 2019, 6:38pm UTC](https://support.prodi.gy/t/using-prefer-uncertain-with-make-gold-recipe/1822 "2019-07-23T18:38:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![honnibal](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/honnibal/32/35_2.png) [@honnibal](https://support.prodi.gy/u/honnibal)
#### Post date: [July 24, 2019, 3:16pm UTC](https://support.prodi.gy/t/using-prefer-uncertain-with-make-gold-recipe/1822/2 "2019-07-24T15:16:44Z")

</div>

Changing this to use `prefer_uncertain` isn’t too hard, but also isn’t entirely trivial. The issue is that spaCy’s `nlp` object doesn’t return scores for the entities by default, as the model actually doesn’t produce any scores that can really be interpreted that way (it’s a transition-based model).

See this issue for an explanation of how to use a slightly different model in spaCy to get entity probabilities: [Accessing probabilities in NER](https://support.prodi.gy/t/accessing-probabilities-in-ner/94/2)

Once you have the scores, you can change your stream to produce `(score, example)` tuples, and then wrap the scored stream with `prefer_uncertain`.

---

_[View the full topic](https://support.prodi.gy/t/using-prefer-uncertain-with-make-gold-recipe/1822)._
