Spaces:
Runtime error
Runtime error
tuned model better
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def LemNormalize(text):
|
|
74 |
return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
|
75 |
|
76 |
def NLTK(input):
|
77 |
-
f = open('
|
78 |
data = f.read()
|
79 |
data = data.lower()
|
80 |
data = data + input.lower()
|
|
|
74 |
return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
|
75 |
|
76 |
def NLTK(input):
|
77 |
+
f = open('corpus.txt', errors='strict')
|
78 |
data = f.read()
|
79 |
data = data.lower()
|
80 |
data = data + input.lower()
|