|
@@ -36,6 +36,7 @@ def create_application():
|
|
try:
|
|
try:
|
|
with open('simhash_model/doc/pre_remove_word.txt', 'r', encoding='utf-8') as f:
|
|
with open('simhash_model/doc/pre_remove_word.txt', 'r', encoding='utf-8') as f:
|
|
pre_remove_words = f.readlines()
|
|
pre_remove_words = f.readlines()
|
|
|
|
+
|
|
pre_remove_words = [item.rstrip('\n') for item in pre_remove_words]
|
|
pre_remove_words = [item.rstrip('\n') for item in pre_remove_words]
|
|
|
|
|
|
msg = "simhash similarity service started successfully at {t}".format(
|
|
msg = "simhash similarity service started successfully at {t}".format(
|