The context annotation documentation gives some info here on the kinds of entities and domains that Twitter uses for NER context annotation Tweet annotations | Docs | Twitter Developer

But I’m wondering if there is a full (fine-grained) list available anywhere?

Thanks!

2 Likes

Thanks for reaching out @nilknarfamme

Unfortunately, thats the only list that we have available right now. I am passing along your feedback to our product team to consider adding a comprehensive list of entities as well.

I encourage you to submit this feedback here

1 Like

Are tweet Annotations related to this list? https://twitter.com/i/flow/topics_selector

2 Likes

Yes in many cases.

The way to cross check is to take a Tweet for any ‘Topic’ (referring to the link you shared) and do a Tweet lookup with context_annotations.

For example this Tweet is listed in the Cricket Topic but if you do a Tweet lookup it does not have the cricket entity:

curl --request GET 'https://api.twitter.com/2/tweets/1360523183640612864?tweet.fields=context_annotations' --header 'Authorization: Bearer XXXXX'

Whereas this one does

curl --request GET 'https://api.twitter.com/2/tweets/1361263049248628744?tweet.fields=context_annotations' --header 'Authorization: Bearer XXXXX'

{
        "context_annotations": [
            {
                "domain": {
                    "id": "10",
                    "name": "Person",
                    "description": "Named people in the world like Nelson Mandela"
                },
                "entity": {
                    "id": "897829402200776704",
                    "name": "Ravichandran Ashwin"
                }
            },
            {
                "domain": {
                    "id": "11",
                    "name": "Sport",
                    "description": "Types of sports, like soccer and basketball"
                },
                "entity": {
                    "id": "897814293395103744",
                    "name": "Cricket"
                }
            },
            {
                "domain": {
                    "id": "60",
                    "name": "Athlete",
                    "description": "An athlete in the world, like Serena Williams or Lionel Messi"
                },
                "entity": {
                    "id": "897829402200776704",
                    "name": "Ravichandran Ashwin"
                }
            }
        ]
}
1 Like

Ah, this helps, thanks!

Thanks a lot, @suhemparack !

1 Like