sumgram icon indicating copy to clipboard operation
sumgram copied to clipboard

Load stopwords from a file

Open ibnesayeed opened this issue 3 years ago • 1 comments

Supplying a long list of stopwords as an inline CLI argument can be tricky or even impossible. having an option to load it from a file would be great.

ibnesayeed avatar Feb 18 '22 15:02 ibnesayeed

It looks like the default list of stopwords is hard-coded in a Python file. Perhaps it will be more flexible to extract it out as a text file and iterate over it during the loading process. This way, a custom list of stopwords can be provided the same way as the default one.

https://github.com/oduwsdl/sumgram/blob/31434eaf21dfa3928f1b9e9b90c2f63e72416ed5/sumgram/util.py#L35-L326

ibnesayeed avatar Feb 18 '22 15:02 ibnesayeed