Commit
•
4b03c4a
1
Parent(s):
837d615
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,11 @@ def final_output(text):
|
|
29 |
text_split = re.split(reg, text)
|
30 |
n=len(keywords)
|
31 |
for i in range(n):
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
return ' '.join(text_split)
|
38 |
|
39 |
|
|
|
29 |
text_split = re.split(reg, text)
|
30 |
n=len(keywords)
|
31 |
for i in range(n):
|
32 |
+
word, found = getKeywords(keywords[i])
|
33 |
+
if found:
|
34 |
+
text_split[i]+=(word + " (" + keywords[i].rstrip() + ")")
|
35 |
+
else:
|
36 |
+
text_split[i]+=word
|
37 |
return ' '.join(text_split)
|
38 |
|
39 |
|