# UI request: "flag" button

**URL:** <https://support.prodi.gy/t/ui-request-flag-button/232>\
**Category:** Uncategorized\
**Tags:** enhancement, front-end, done\
**Created:** [January 18, 2018, 3:15pm UTC](https://support.prodi.gy/t/ui-request-flag-button/232 "2018-01-18T15:15:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/andy/32/966_2.png) [@andy](https://support.prodi.gy/u/andy)\
**Post date:** [January 18, 2018, 3:15pm UTC](https://support.prodi.gy/t/ui-request-flag-button/232/1 "2018-01-18T15:15:10Z")

</div>

I have a feature/clutter request for the UI. Would it be possible to have a “flag” button somewhere in the annotation interface, that would add a flag or mark to the example in the DB? It could be very small and subtle and out of the way. I’ve wanted this a few times so I could go mark examples to go back and check later for situations like:

- how did this Spanish text end up in my English stream?
- wow, that’s a weird pattern/phrasing. I want to look at that more
- this document is very substantively interesting and I want to look it up later for some qualitative analysis
- this is a multiword NER that needs manual annotation

Right now I’ve just been copying down the document ID from the `meta` field, but that slows things down a lot. I wanted to point this out as something that I would find useful, but I know you’re fighting the good fight against more buttons and clutter.

---

<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:** [January 19, 2018, 12:06am UTC](https://support.prodi.gy/t/ui-request-flag-button/232/2 "2018-01-19T00:06:39Z")

</div>

Yes, that’s a nice idea! 👍 Something similar came up in a thread [a while ago](https://support.prodi.gy/t/undesirable-ignore-examples-build-up-with-low-quality-input-streams/169/2?u=ines) and I was thinking about a “bookmark” button, for example, in the top right corner of the annotation card. But I think I like the “flag” terminology even better – we could then add `"flagged": true` to the example, and you’d be able to use `db-out` with an option `--flagged-only` to export only the flagged examples.

---

<div class="post-metadata">

**Author:** ![andy](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/andy/32/966_2.png) [@andy](https://support.prodi.gy/u/andy)\
**Post date:** [January 19, 2018, 12:32pm UTC](https://support.prodi.gy/t/ui-request-flag-button/232/3 "2018-01-19T12:32:08Z")

</div>

I love it! And there could be a config option to display the button or not, which could be useful if you don’t want annotators getting confused by it.

---

<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:** [January 20, 2018, 2:31pm UTC](https://support.prodi.gy/t/ui-request-flag-button/232/4 "2018-01-20T14:31:36Z")

</div>

Quick update: The upcoming version will come with experimental support for flagging tasks that can be enabled by setting `"show_flag": true`. This will add a little flag icon to the top right corner of the annotation card, which can be toggled via click or by pressing F.

 ![47](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/1X/519d0b4917f41025c08a61aeca5f84563dce1f79.png)  
 ![58](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/1X/0f27e4670a95fbfc6ac5b202e42ba4fbc68f379d.png)

Flagging a task will simply add `"flagged": true`. When exporting annotations with `db-out`, you can set `--flagged-only` to only export flagged tasks.

---

<div class="post-metadata">

**Author:** ![akshitasood63](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/akshitasood63/32/455_2.png) [@akshitasood63](https://support.prodi.gy/u/akshitasood63)\
**Post date:** [April 22, 2018, 9:29am UTC](https://support.prodi.gy/t/ui-request-flag-button/232/5 "2018-04-22T09:29:42Z")

</div>

Any command to directly use it in script ?

---

<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:** [April 22, 2018, 3:26pm UTC](https://support.prodi.gy/t/ui-request-flag-button/232/6 "2018-04-22T15:26:53Z")

</div>

The option is not set on the command line, so there’s nothing you should have to do if you’re running Prodigy via a Python script. Just add `"show_flag": true` to your `prodigy.json`, or add `'show_flag': True` to the `'config'` option returned by your recipe (if you’re using a custom one and only want to set this option for one particular recipe).
