Some code cleanup

This commit is contained in:
Patrick Jentsch
2023-10-30 11:36:28 +01:00
parent fbb32ef580
commit e8fe67d290
11 changed files with 71 additions and 22 deletions

View File

@ -61,7 +61,7 @@ def build_corpus(corpus_id):
@bp.route('/stopwords')
@content_negotiation(produces='application/json')
def get_stopwords():
nltk.download('stopwords')
nltk.download('stopwords', quiet=True)
languages = ["german", "english", "catalan", "greek", "spanish", "french", "italian", "russian", "chinese"]
stopwords = {}
for language in languages: