From 60549a2fb71f4297b683b757926b19440eef8730 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Mon, 13 Apr 2020 23:53:46 -0500 Subject: add eng stopwords --- server.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server.py') diff --git a/server.py b/server.py index adefeb3..bb1c885 100755 --- a/server.py +++ b/server.py @@ -20,6 +20,7 @@ import string import re import os from os import listdir +import nltk from nltk.corpus import stopwords from nltk.stem.porter import PorterStemmer from collections import Counter @@ -44,6 +45,7 @@ datadir="/export/ratspub/" app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+datadir+'userspub.sqlite' db = SQLAlchemy(app) +nltk.data.path.append("./nlp/") # the sqlite database class users(db.Model): -- cgit v1.2.3