图片.png

  1. 2021-07-09 12:45:38,842 ERROR mysql_helpers.py delete_table 69 MYSQL ERROR: (2013, 'Lost connection to MySQL server during query ([Errno 110] Connection timed out)') with sql: drop table if exists text_search;
  2. 2021-07-09 12:45:38,849 ERROR h11_impl.py run_asgi 372 Exception in ASGI application
  3. Traceback (most recent call last):
  4. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_bytes
  5. data = self._rfile.read(num_bytes)
  6. File "/usr/lib/python3.6/socket.py", line 586, in readinto
  7. return self._sock.recv_into(b)
  8. TimeoutError: [Errno 110] Connection timed out
  9. During handling of the above exception, another exception occurred:
  10. Traceback (most recent call last):
  11. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 66, in delete_table
  12. self.cursor.execute(sql)
  13. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 148, in execute
  14. result = self._query(query)
  15. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 310, in _query
  16. conn.query(q)
  17. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 548, in query
  18. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  19. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 775, in _read_query_result
  20. result.read()
  21. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1156, in read
  22. first_packet = self.connection._read_packet()
  23. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 692, in _read_packet
  24. packet_header = self._read_bytes(4)
  25. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 740, in _read_bytes
  26. "Lost connection to MySQL server during query (%s)" % (e,),
  27. pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([Errno 110] Connection timed out)')
  28. During handling of the above exception, another exception occurred:
  29. Traceback (most recent call last):
  30. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
  31. result = await app(self.scope, self.receive, self.send)
  32. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
  33. return await self.app(scope, receive, send)
  34. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/applications.py", line 201, in __call__
  35. await super().__call__(scope, receive, send) # pragma: no cover
  36. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/applications.py", line 112, in __call__
  37. await self.middleware_stack(scope, receive, send)
  38. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/errors.py", line 159, in __call__
  39. await self.app(scope, receive, _send)
  40. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 86, in __call__
  41. await self.simple_response(scope, receive, send, request_headers=headers)
  42. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 142, in simple_response
  43. await self.app(scope, receive, send)
  44. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/exceptions.py", line 71, in __call__
  45. await self.app(scope, receive, sender)
  46. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 580, in __call__
  47. await route.handle(scope, receive, send)
  48. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 241, in handle
  49. await self.app(scope, receive, send)
  50. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 52, in app
  51. response = await func(request)
  52. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 217, in app
  53. dependant=dependant, values=values, is_coroutine=is_coroutine
  54. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 149, in run_endpoint_function
  55. return await dependant.call(**values)
  56. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/main.py", line 52, in drop_tables
  57. status = do_drop(table_name, MILVUS_CLI, MYSQL_CLI)
  58. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/operations/drop.py", line 15, in do_drop
  59. mysql_cli.delete_table(table_name)
  60. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 70, in delete_table
  61. sys.exit(1)
  62. SystemExit: 1
  63. ERROR: Exception in ASGI application
  64. Traceback (most recent call last):
  65. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_bytes
  66. data = self._rfile.read(num_bytes)
  67. File "/usr/lib/python3.6/socket.py", line 586, in readinto
  68. return self._sock.recv_into(b)
  69. TimeoutError: [Errno 110] Connection timed out
  70. During handling of the above exception, another exception occurred:
  71. Traceback (most recent call last):
  72. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 66, in delete_table
  73. self.cursor.execute(sql)
  74. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 148, in execute
  75. result = self._query(query)
  76. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 310, in _query
  77. conn.query(q)
  78. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 548, in query
  79. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  80. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 775, in _read_query_result
  81. result.read()
  82. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1156, in read
  83. first_packet = self.connection._read_packet()
  84. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 692, in _read_packet
  85. packet_header = self._read_bytes(4)
  86. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 740, in _read_bytes
  87. "Lost connection to MySQL server during query (%s)" % (e,),
  88. pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([Errno 110] Connection timed out)')
  89. During handling of the above exception, another exception occurred:
  90. Traceback (most recent call last):
  91. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
  92. result = await app(self.scope, self.receive, self.send)
  93. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
  94. return await self.app(scope, receive, send)
  95. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/applications.py", line 201, in __call__
  96. await super().__call__(scope, receive, send) # pragma: no cover
  97. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/applications.py", line 112, in __call__
  98. await self.middleware_stack(scope, receive, send)
  99. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/errors.py", line 159, in __call__
  100. await self.app(scope, receive, _send)
  101. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 86, in __call__
  102. await self.simple_response(scope, receive, send, request_headers=headers)
  103. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 142, in simple_response
  104. await self.app(scope, receive, send)
  105. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/exceptions.py", line 71, in __call__
  106. await self.app(scope, receive, sender)
  107. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 580, in __call__
  108. await route.handle(scope, receive, send)
  109. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 241, in handle
  110. await self.app(scope, receive, send)
  111. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 52, in app
  112. response = await func(request)
  113. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 217, in app
  114. dependant=dependant, values=values, is_coroutine=is_coroutine
  115. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 149, in run_endpoint_function
  116. return await dependant.call(**values)
  117. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/main.py", line 52, in drop_tables
  118. status = do_drop(table_name, MILVUS_CLI, MYSQL_CLI)
  119. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/operations/drop.py", line 15, in do_drop
  120. mysql_cli.delete_table(table_name)
  121. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 70, in delete_table
  122. sys.exit(1)
  123. SystemExit: 1
  124. INFO: 192.168.2.13:35564 - "POST /text/drop?table_name=text_search HTTP/1.1" 500 Internal Server Error
  125. INFO: 192.168.2.13:37796 - "OPTIONS /text/load HTTP/1.1" 200 OK
  126. 2021-07-09 12:45:50,028 ERROR mysql_helpers.py load_data_to_mysql 43 MYSQL ERROR: (1054, "Unknown column 'title' in 'field list'") with sql: insert into text_search (milvus_id,title,text) values (%s,%s,%s);
  127. 2021-07-09 12:45:50,029 ERROR h11_impl.py run_asgi 372 Exception in ASGI application
  128. Traceback (most recent call last):
  129. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 39, in load_data_to_mysql
  130. self.cursor.executemany(sql, data)
  131. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 179, in executemany
  132. self._get_db().encoding,
  133. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 211, in _do_execute_many
  134. rows += self.execute(sql + postfix)
  135. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 148, in execute
  136. result = self._query(query)
  137. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 310, in _query
  138. conn.query(q)
  139. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 548, in query
  140. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  141. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 775, in _read_query_result
  142. result.read()
  143. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1156, in read
  144. first_packet = self.connection._read_packet()
  145. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 725, in _read_packet
  146. packet.raise_for_error()
  147. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 221, in raise_for_error
  148. err.raise_mysql_exception(self._data)
  149. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
  150. raise errorclass(errno, errval)
  151. pymysql.err.OperationalError: (1054, "Unknown column 'title' in 'field list'")
  152. During handling of the above exception, another exception occurred:
  153. Traceback (most recent call last):
  154. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
  155. result = await app(self.scope, self.receive, self.send)
  156. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
  157. return await self.app(scope, receive, send)
  158. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/applications.py", line 201, in __call__
  159. await super().__call__(scope, receive, send) # pragma: no cover
  160. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/applications.py", line 112, in __call__
  161. await self.middleware_stack(scope, receive, send)
  162. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/errors.py", line 159, in __call__
  163. await self.app(scope, receive, _send)
  164. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 86, in __call__
  165. await self.simple_response(scope, receive, send, request_headers=headers)
  166. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 142, in simple_response
  167. await self.app(scope, receive, send)
  168. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/exceptions.py", line 71, in __call__
  169. await self.app(scope, receive, sender)
  170. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 580, in __call__
  171. await route.handle(scope, receive, send)
  172. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 241, in handle
  173. await self.app(scope, receive, send)
  174. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 52, in app
  175. response = await func(request)
  176. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 217, in app
  177. dependant=dependant, values=values, is_coroutine=is_coroutine
  178. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 149, in run_endpoint_function
  179. return await dependant.call(**values)
  180. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/main.py", line 75, in load_text
  181. total_num = import_data(table_name, fname_path ,MILVUS_CLI, MYSQL_CLI)
  182. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/operations/load.py", line 55, in import_data
  183. mysql_cli.load_data_to_mysql(collection_name, format_data(ids, title_data, text_data))
  184. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 44, in load_data_to_mysql
  185. sys.exit(1)
  186. SystemExit: 1
  187. INFO: 192.168.2.13:37796 - "POST /text/load HTTP/1.1" 500 Internal Server Error
  188. ERROR: Exception in ASGI application
  189. Traceback (most recent call last):
  190. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 39, in load_data_to_mysql
  191. self.cursor.executemany(sql, data)
  192. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 179, in executemany
  193. self._get_db().encoding,
  194. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 211, in _do_execute_many
  195. rows += self.execute(sql + postfix)
  196. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 148, in execute
  197. result = self._query(query)
  198. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 310, in _query
  199. conn.query(q)
  200. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 548, in query
  201. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  202. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 775, in _read_query_result
  203. result.read()
  204. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1156, in read
  205. first_packet = self.connection._read_packet()
  206. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/connections.py", line 725, in _read_packet
  207. packet.raise_for_error()
  208. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 221, in raise_for_error
  209. err.raise_mysql_exception(self._data)
  210. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
  211. raise errorclass(errno, errval)
  212. pymysql.err.OperationalError: (1054, "Unknown column 'title' in 'field list'")
  213. During handling of the above exception, another exception occurred:
  214. Traceback (most recent call last):
  215. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
  216. result = await app(self.scope, self.receive, self.send)
  217. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
  218. return await self.app(scope, receive, send)
  219. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/applications.py", line 201, in __call__
  220. await super().__call__(scope, receive, send) # pragma: no cover
  221. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/applications.py", line 112, in __call__
  222. await self.middleware_stack(scope, receive, send)
  223. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/errors.py", line 159, in __call__
  224. await self.app(scope, receive, _send)
  225. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 86, in __call__
  226. await self.simple_response(scope, receive, send, request_headers=headers)
  227. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/middleware/cors.py", line 142, in simple_response
  228. await self.app(scope, receive, send)
  229. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/exceptions.py", line 71, in __call__
  230. await self.app(scope, receive, sender)
  231. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 580, in __call__
  232. await route.handle(scope, receive, send)
  233. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 241, in handle
  234. await self.app(scope, receive, send)
  235. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/starlette/routing.py", line 52, in app
  236. response = await func(request)
  237. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 217, in app
  238. dependant=dependant, values=values, is_coroutine=is_coroutine
  239. File "/home/milvus/pycharm_workspaces/bootcamp/venv/lib/python3.6/site-packages/fastapi/routing.py", line 149, in run_endpoint_function
  240. return await dependant.call(**values)
  241. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/main.py", line 75, in load_text
  242. total_num = import_data(table_name, fname_path ,MILVUS_CLI, MYSQL_CLI)
  243. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/operations/load.py", line 55, in import_data
  244. mysql_cli.load_data_to_mysql(collection_name, format_data(ids, title_data, text_data))
  245. File "/home/milvus/pycharm_workspaces/bootcamp/solutions/text_search_engine/quick_deploy/Milvus-bert-server/src/mysql_helpers.py", line 44, in load_data_to_mysql
  246. sys.exit(1)
  247. SystemExit: 1

文本相似度推荐参考

个性化新闻推荐系统:https://blog.csdn.net/qq_32690999/article/details/77434381
个性化新闻推荐系统-实现:https://github.com/bluemapleman/NewsRecommendSystem
基于内容推荐算法详解(比较全面的文章):
https://blog.csdn.net/nicajonh/article/details/79657317
参考:
NLP之文本相似度:https://blog.csdn.net/miner_zhu/article/details/81566456
word2vec利用词向量进行中文新闻标题相似度分析:https://blog.csdn.net/li_huifei/article/details/80265046
TF-IDF算法解析与Python实现:https://github.com/CWSchen/ML-PYTHON3-PROJECTS/blob/cc988cbd136ea04b26c946b08c9c3639fdb6558a/NLP/99-Python-TF-IDF%E7%AE%97%E6%B3%95%E8%A7%A3%E6%9E%90.py
基于内容相似度的推荐与TF-IDF算法:https://blog.csdn.net/qq_40006058/article/details/83477866
今日头条的新闻推荐算法原理:https://blog.csdn.net/u010332284/article/details/80415336
文本分类:bert
优质文章:https://leovan.me/cn/2020/10/text-similarity/