Skip to content

Instantly share code, notes, and snippets.

@bojanbabic
Created February 20, 2026 22:36
Show Gist options
  • Select an option

  • Save bojanbabic/8e36d503d83aa568b7e5015d3ad63e8d to your computer and use it in GitHub Desktop.

Select an option

Save bojanbabic/8e36d503d83aa568b7e5015d3ad63e8d to your computer and use it in GitHub Desktop.
Query annotation
{
"who":{
"text":"who",
"lemma":"who",
"pos":"PRON",
"tag":"WP",
"dep":"attr",
"shape":"xxx",
"is_alpha":true,
"is_stop":true
},
"is":{
"text":"is",
"lemma":"be",
"pos":"AUX",
"tag":"VBZ",
"dep":"ROOT",
"shape":"xx",
"is_alpha":true,
"is_stop":true
},
"the":{
"text":"the",
"lemma":"the",
"pos":"DET",
"tag":"DT",
"dep":"det",
"shape":"xxx",
"is_alpha":true,
"is_stop":true
},
"president":{
"text":"president",
"lemma":"president",
"pos":"NOUN",
"tag":"NN",
"dep":"attr",
"shape":"xxxx",
"is_alpha":true,
"is_stop":false
},
"of":{
"text":"of",
"lemma":"of",
"pos":"ADP",
"tag":"IN",
"dep":"prep",
"shape":"xx",
"is_alpha":true,
"is_stop":true
},
"iran":{
"text":"iran",
"lemma":"iran",
"pos":"PROPN",
"tag":"NNP",
"dep":"pobj",
"shape":"xxxx",
"is_alpha":true,
"is_stop":false
},
"_phrases":[
{
"text":"iran",
"rank":0.3535533905932738,
"count":2
},
{
"text":"the president",
"rank":0.16329931618554522,
"count":1
},
{
"text":"who",
"rank":0.0,
"count":1
}
],
"_tokens":[
{
"text":"who",
"lemma":"who",
"pos":"PRON",
"tag":"WP",
"dep":"attr",
"shape":"xxx",
"is_alpha":true,
"is_stop":true
},
{
"text":"is",
"lemma":"be",
"pos":"AUX",
"tag":"VBZ",
"dep":"ROOT",
"shape":"xx",
"is_alpha":true,
"is_stop":true
},
{
"text":"the",
"lemma":"the",
"pos":"DET",
"tag":"DT",
"dep":"det",
"shape":"xxx",
"is_alpha":true,
"is_stop":true
},
{
"text":"president",
"lemma":"president",
"pos":"NOUN",
"tag":"NN",
"dep":"attr",
"shape":"xxxx",
"is_alpha":true,
"is_stop":false
},
{
"text":"of",
"lemma":"of",
"pos":"ADP",
"tag":"IN",
"dep":"prep",
"shape":"xx",
"is_alpha":true,
"is_stop":true
},
{
"text":"iran",
"lemma":"iran",
"pos":"PROPN",
"tag":"NNP",
"dep":"pobj",
"shape":"xxxx",
"is_alpha":true,
"is_stop":false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment