You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our location tagger currently returns the "most specific" tags from the CLIFF results. For example, if the CLIFF results include data on cities, it will return all cities. If there are states without mention of specific cities, the tagger will return all states.
This causes problems with mixed city, state, and country data. For example:
from mpeds.open_ended_coders import *
coder = LocationCoder()
string = "Protesters gathered in New York City and across Connecticut"
print coder.getLocation(string) # returns New York City, no mention of Connecticut
# By contrast, Connecticut shows up in the CLIFF results
cliff_results = coder._getCLIFF(string)
print json.dumps(cliff_results, indent = 4, sort_keys = True)
The text was updated successfully, but these errors were encountered:
Our location tagger currently returns the "most specific" tags from the CLIFF results. For example, if the CLIFF results include data on cities, it will return all cities. If there are states without mention of specific cities, the tagger will return all states.
This causes problems with mixed city, state, and country data. For example:
The text was updated successfully, but these errors were encountered: