extract_locations: Extract locations from strings

View source: R/text_tools.R

extract_locationsR Documentation

Extract locations from strings

Description

Extract locations from strings

Usage

extract_locations(v)

Arguments

v

Text vector.

Details

The function relies on geographical entity detection from NLP models.

Value

A data frame of locations and the number of times they appear.

Examples

#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"))

henriquesposito/poldis documentation built on Sept. 8, 2024, 5:38 a.m.