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

bengali support added #951

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ Features
uk Ukrainian
vi Vietnamese
zh Chinese
bn Bengali


Get it now
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ Features
uk Ukrainian
vi Vietnamese
zh Chinese
bn Bengali


Get it now
Expand Down
1 change: 1 addition & 0 deletions docs/user_guide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,4 @@ of popular news source urls.. In case you need help choosing a news source!
ja Japanese
be Belarusian
lt Lithuanian
bn Bengali
4 changes: 3 additions & 1 deletion newspaper/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import logging

from .parsers import Parser
from .text import (StopWords, StopWordsArabic, StopWordsChinese,
from .text import (StopWords, StopWordsArabic, StopWordsBengali, StopWordsChinese,
StopWordsKorean, StopWordsHindi, StopWordsJapanese, StopWordsThai)
from .version import __version__

Expand Down Expand Up @@ -116,6 +116,8 @@ def get_stopwords_class(language):
return StopWordsArabic
elif language == 'ja':
return StopWordsJapanese
elif language == 'bn':
return StopWordsBengali
elif language == 'th':
return StopWordsThai
return StopWords
Expand Down