Spaces:
Runtime error
Runtime error
tuned the model
Browse files
app.py
CHANGED
@@ -74,8 +74,7 @@ def LemNormalize(text):
|
|
74 |
return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
|
75 |
|
76 |
def NLTK(input):
|
77 |
-
|
78 |
-
f = open('corpus.txt', errors='strict')
|
79 |
data = f.read()
|
80 |
data = data.lower()
|
81 |
sent_tokens = nltk.sent_tokenize(data)
|
@@ -103,7 +102,7 @@ def generator(input=None):
|
|
103 |
|
104 |
out1 = NLTK(input)
|
105 |
if(out1):
|
106 |
-
response.append(
|
107 |
|
108 |
out2 = pattern(input)
|
109 |
if(out2):
|
|
|
74 |
return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
|
75 |
|
76 |
def NLTK(input):
|
77 |
+
f = open('/content/corpus.txt', errors='strict')
|
|
|
78 |
data = f.read()
|
79 |
data = data.lower()
|
80 |
sent_tokens = nltk.sent_tokenize(data)
|
|
|
102 |
|
103 |
out1 = NLTK(input)
|
104 |
if(out1):
|
105 |
+
response.append(out1)
|
106 |
|
107 |
out2 = pattern(input)
|
108 |
if(out2):
|