aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py2
1 files changed, 2 insertions, 0 deletions
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):