powered by
Extract locations from strings
extract_locations(v)
A data frame of locations and the number of times they appear.
Text vector.
The function relies on geographical entity detection from NLP models.
#extract_locations(c("This is the United States", "This is Sao Paulo", #"I was in Rio de Janeiro and Sao Paulo, then back to the United States"))
Run the code above in your browser using DataLab