GEO Label
Countries and States
I grew up in GEO Wyoming.
Example Input
I grew up in Wyoming.
Example Output
{
"type":"name",
"skill":"names",
"name":"GEO",
"value":"Wyoming",
"data":{
"type":"STATE",
"country":"UNITED STATES"
},
"span_text":"Wyoming",
"span":[
13,
20
],
"output_spans":[
{
"section":0,
"start":13,
"end":20
}
]
}
Additional data
A GEO label can represent a state or a country. If the label represents a state, then the data
field will be populated also with the country. For example, if the input is
I live in NSW
the response will contain:
{
"type":"name",
"skill":"names",
"name":"GEO",
"value":"New South Wales",
"data":{
"type":"STATE",
"country":"AUSTRALIA"
},
"span_text":"NSW",
}
Notice also how the value
of the label became the full unabbreviated name of the state.
Updated 6 months ago