Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive in US when cities =T #1

Open
mayeulk opened this issue Oct 20, 2024 · 1 comment
Open

False positive in US when cities =T #1

mayeulk opened this issue Oct 20, 2024 · 1 comment

Comments

@mayeulk
Copy link

mayeulk commented Oct 20, 2024

Hi. With cities=T, some texts with short sentences tend to favor United States:

loc_data <- data.frame(location=c("I live here, in Honduras", "Paris"), ID=c("a1", "a2")); detect_geographies(data=loc_data, id=ID, input=location, output="country", cities =T)
returns "United States|Honduras" for "I live here, in Honduras"

Same result with the shorter text below (abridged to try and understand the error):

loc_data <- data.frame(location=c(", in Honduras", "Paris"), ID=c("a1", "a2") ); detect_geographies(data=loc_data, id=ID, input=location, output="country", cities =T)

Result is OK with cities=F

@mayeulk
Copy link
Author

mayeulk commented Oct 27, 2024

@brandonleekramer Would you have hints on how to fix this incorrect country detection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant