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

Whats the difference between safe_get and get_stop ? #28

Open
ejgutierrez74 opened this issue Jul 18, 2019 · 1 comment
Open

Whats the difference between safe_get and get_stop ? #28

ejgutierrez74 opened this issue Jul 18, 2019 · 1 comment

Comments

@ejgutierrez74
Copy link

get_stop_words and get_safe_words ?

stop_words = get_stop_words('english')

and

stop_words = safe_get_stop_words('en')

Thanks

@aqjw
Copy link

aqjw commented Jan 2, 2020

if the language is not supported or does not exist, safe_get_stop_words will return an empty array.

stop_words = safe_get_stop_words('some_lang')
print(stop_words) # []

but in get_stop_words will be the StopWordError exception

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

2 participants