{"id":100653,"date":"2026-09-05T01:24:57","date_gmt":"2026-09-04T17:24:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100653.html"},"modified":"2026-09-05T01:24:57","modified_gmt":"2026-09-04T17:24:57","slug":"%e5%9c%a8%e4%bd%a0%e8%b0%83%e7%94%a8-api-%e4%b9%8b%e5%89%8d%ef%bc%8c%e6%9c%8d%e5%8a%a1%e5%95%86%e9%83%bd%e5%81%9a%e4%ba%86%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100653.html","title":{"rendered":"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p id=\"ufe6f8e86\">\n<h4 id=\"MB6jd\">\u539f\u59cb\u6570\u636e\u6e05\u6d17&#xff08;Data Cleaning&#xff09;<\/h4>\n<p id=\"u36faec95\">\u6d77\u91cf\u6570\u636e\u5230\u624b\u4e86 \u522b\u7ba1\u600e\u4e48\u6765\u7684\u7b2c\u4e00\u6b65\u5c31\u662f\u5199\u6b63\u5219\u53bb\u6807\u7b7e&#xff0c;\u7528 MinHash \u7b97\u6cd5\u53bb\u91cd\u3001\u7528\u5206\u7c7b\u6a21\u578b\u8fc7\u6ee4\u4f4e\u8d28\u91cf\u548c\u6709\u5bb3\u5185\u5bb9\u3001\u6309\u8bed\u8a00\u5206\u7c7b\u3002<\/p>\n<h5 id=\"ABvuA\">MinHash<\/h5>\n<p id=\"u47363af3\">\u8fd9\u4e2a\u7b97\u6cd5 \u5927\u6982\u5c31\u662f\u628a\u4e00\u672c\u4e66 \u5207\u7247 (Shingling)  \u6210\u5927\u91cf\u8fde\u7eed\u8bcd\u7ec4&#xff0c;\u6bcf\u4e2a\u8bcd\u7ec4\u90fd\u8ba1\u7b97\u51fa\u5bf9\u5e94\u7684\u54c8\u5e0c\u6620\u5c04&#xff08;Hashing&#xff09; \u914d\u7f6e \u591a\u5c11\u4e2a\u4e2a\u54c8\u5e0c\u51fd\u6570&#xff0c;\u6bcf\u7ec4\u54c8\u5e0c\u8fd0\u7b97\u90fd\u9009\u53d6\u54c8\u5e0c\u7ed3\u679c\u4e2d\u7684\u6700\u5c0f\u503c (Min) \u9009\u51fa\u591a\u5c11Hash\u51fd\u6570 \u5c31\u4f1a\u751f\u6210\u591a\u5c11\u6570\u5b57\u7ec4\u6210\u7684\u6570\u7ec4 \u751f\u6210\u6307\u7eb9 (Signature)<\/p>\n<p id=\"ubb6bf566\">\u4e24\u7bc7\u6587\u7ae0\u7684 MinHash \u6307\u7eb9\u91cd\u5408\u5ea6\u8d8a\u9ad8&#xff0c;\u5b83\u4eec\u539f\u6587\u7684\u76f8\u4f3c\u5ea6\u5c31\u8d8a\u9ad8\u3002<\/p>\n<h5 id=\"KiOT0\">\u5206\u7c7b\u6a21\u578b<\/h5>\n<p id=\"uc50dd8ec\">\u4eca\u5e74\u8fc7\u8282\u4e0d\u6536\u793c&#xff0c;\u6536\u793c\u53ea\u6536\u8111\u767d\u91d1<\/p>\n<p id=\"ufcd8b69a\">\u7c7b\u4f3c\u5e7f\u544a\u6295\u7684\u5230\u5904\u90fd\u662f \u6240\u4ee5\u4f1a\u5148\u8bad\u7ec3\u4e00\u4e2a\u975e\u5e38\u5c0f\u3001\u901f\u5ea6\u975e\u5e38\u5feb\u7684\u4f20\u7edf\u795e\u7ecf\u7f51\u7edc\u6216\u673a\u5668\u5b66\u4e60\u6a21\u578b<\/p>\n<p id=\"u05d24676\">\u5148\u8fdb\u884c\u4eba\u5de5\u6253\u6807&#xff08;\u9ad8\u8d28\u91cf\u6587\u7ae0&#xff08;\u7ef4\u57fa\u767e\u79d1&#xff09; \u662f1 \u9ec4\u8d4c\u6bd2\u5185\u5bb9\u662f0&#xff09;\u7136\u540e\u7ed9\u6a21\u578b \u8ba9\u4ed6\u533a\u5206\u4ec0\u4e48\u662f\u597d\u7684<\/p>\n<p id=\"u919bf6d0\">\u7b49\u771f\u6b63\u53d6\u6e05\u6d17\u6570\u636e\u7684\u65f6\u5019&#xff0c;\u6bcf\u6bb5\u6587\u672c\u90fd\u4f1a\u6253\u4e2a\u5206 \u5206\u4f4e\u7684\u90fd\u76f4\u63a5\u6d41\u653e\u4e86<\/p>\n<h4 id=\"D1ai2\">\u8bad\u7ec3\u5206\u8bcd\u5668 (Train Tokenizer)<\/h4>\n<p id=\"u542f9395\">\u628a\u4e0a\u4e00\u6b65\u6d77\u91cf\u63d0\u7eaf\u8fc7\u7684\u6570\u636e\u653e\u8fdb\u53bb<\/p>\n<h5 id=\"rTeWE\">BPE \u5b57\u8282\u5bf9\u7f16\u7801 Byte\u2011Pair\u2011Encoding <\/h5>\n<p id=\"u10841442\">\u7edf\u8ba1\u6587\u672c\u91cc\u54ea\u4e9b\u5b57\/\u8bcd\u7ec4\u6700\u5e38\u8fde\u5728\u4e00\u8d77&#xff0c; \u7ed9\u6700\u5e38\u7528\u7684\u8bcd\u7ec4\u5206\u914d\u4e00\u4e2a\u552f\u4e00\u7684 ID<\/p>\n<p id=\"u1d2c27af\">\u6bd4\u5982 \u4eba \u540e\u9762\u7ecf\u5e38\u51fa\u73b0 \u5de5<\/p>\n<p id=\"udb48f339\">\u667a \u540e\u9762\u7ecf\u5e38\u51fa\u73b0 \u80fd<\/p>\n<p id=\"u61183613\">\u5c31\u4f1a\u7ed9\u4eba\u5de5\u5206\u914d ID&#061;1024&#xff1b;\u667a\u80fd\u5206\u914d ID &#061;1025&#xff1b;<\/p>\n<p id=\"u77c6d38d\">\u4eba\u5de5\u8fd9\u4e2a\u8bcd\u7ec4\u540e\u9762\u7ecf\u5e38\u8ddf\u667a\u80fd\u8fd9\u4e2a\u8bcd\u7ec4 \u7ed9 \u4eba\u5de5\u667a\u80fd \u5206\u914d ID &#061; 8899<\/p>\n<p id=\"u8ccf1e3b\">\n<p id=\"u6950adea\">\u7136\u540e\u5f97\u5230\u4e00\u4e2a\u8bcd\u8868\u6587\u4ef6&#xff08;vocab.json&#xff0c;\u901a\u5e38\u51e0\u4e07\u5230\u5341\u51e0\u4e07\u4e2a\u8bcd\u5143 Token&#xff09;\u3002<\/p>\n<p>{<br \/>\n  &#034;\u4eba&#034;: 1230,<br \/>\n  &#034;\u5de5&#034;: 1231,<br \/>\n  &#034;\u4eba\u5de5&#034;: 4521,<br \/>\n  &#034;\u667a&#034;: 1288,<br \/>\n  &#034;\u80fd&#034;:1289,<br \/>\n  &#034;\u4eba\u5de5\u667a\u80fd&#034;: 8899,<br \/>\n}<\/p>\n<h4 id=\"vl4OM\">\u67b6\u6784\u642d\u5efa\u4e0e\u968f\u673a\u521d\u59cb\u5316 (Architecture &amp; Initialization)<\/h4>\n<p id=\"ufadeda40\">\u7528 PyTorch \u4ee3\u7801\u5199\u51fa Embedding \u5c42<\/p>\n<h5 id=\"PSXbi\">Embedding<\/h5>\n<p id=\"u097ac15d\">\u628a\u8f93\u5165 token \u6574\u6570 ID&#xff08;\u6bd4\u5982 0~100000 \u8bcd\u8868&#xff09;\u6620\u5c04\u6210\u56fa\u5b9a\u957f\u5ea6\u5411\u91cf\u3002 \u4f8b\u5982\u8bcd\u8868 10 \u4e07&#xff0c;\u9690\u85cf\u7ef4\u5ea6 512&#xff1a;Embedding \u77e9\u9635\u5f62\u72b6 [100000,512] &#xff0c;\u8fd9\u5c31\u662f\u7b2c\u4e00\u4e2a\u5de8\u5927\u6743\u91cd\u77e9\u9635\u3002 \u6bcf\u4e2a\u5355\u8bcd ID \u67e5\u8868\u53d6\u51fa\u4e00\u884c\u5411\u91cf&#xff0c;\u4f5c\u4e3a\u8f93\u5165\u3002<\/p>\n<h5 id=\"uSErQ\">\u5806\u53e0\u591a\u5c42 Transformer Block<\/h5>\n<li id=\"ua51ecc46\">Multi\u2011Head Attention \u591a\u5934\u81ea\u6ce8\u610f\u529b&#xff1a;\u8ba1\u7b97 token \u548c token \u4e4b\u95f4\u7684\u5173\u8054&#xff1b;\u5185\u90e8\u6709 Q\/K\/V\/O \u56db\u4e2a\u5927\u6743\u91cd\u77e9\u9635\u3002<\/li>\n<li id=\"u5cd7a267\">FFN \u524d\u9988\u7f51\u7edc&#xff1a;\u5bf9\u6bcf\u4e2a\u5411\u91cf\u5355\u72ec\u505a\u975e\u7ebf\u6027\u53d8\u6362&#xff0c;\u4e24\u4e2a\u7ebf\u6027\u5c42\u4e2d\u95f4\u5957\u6fc0\u6d3b\u51fd\u6570\u3002 \u6bcf\u5c42\u8fd8\u6709 LayerNorm \u5c42\u5f52\u4e00\u5316\u3001\u6b8b\u5dee\u8fde\u63a5\u3002 \u51e0\u5341\u5c42 Block \u76f4\u63a5\u5806\u53e0\u8d77\u6765&#xff0c;\u5c31\u662f\u5927\u6a21\u578b\u4e3b\u5e72\u3002<\/li>\n<h5 id=\"LKy4y\">\u968f\u673a\u521d\u59cb\u5316<\/h5>\n<p id=\"u06136eab\">\u8fd8\u6ca1\u6709\u8bad\u7ec3\u6570\u636e\u7684\u65f6\u5019&#xff0c;\u6240\u6709\u6743\u91cd\u4e0d\u80fd\u5168 0&#xff01;\u5168 0 \u4f1a\u5bfc\u81f4\u6240\u6709\u795e\u7ecf\u5143\u8f93\u51fa\u4e00\u6a21\u4e00\u6837&#xff0c;\u5b66\u4e0d\u5230\u4e1c\u897f\u3002<\/p>\n<p id=\"u0653f77d\">\u6240\u4ee5\u5168\u90e8\u521d\u59cb\u5316\u4e3a\u5c0f\u65b9\u5dee\u6b63\u6001\u5206\u5e03\u968f\u673a\u6570&#xff08;\u6807\u51c6\u505a\u6cd5&#xff1a;N(0,\u03c3\u00b2)&#xff0c;\u03c3 \u53d6\u5f88\u5c0f\u7684\u503c&#xff09;\u3002<\/p>\n<p id=\"ue1c8838c\">\u628a\u91cc\u9762\u51e0\u767e\u4ebf\u4e2a\u6743\u91cd\u53c2\u6570\u5168\u90e8\u521d\u59cb\u5316\u4e3a\u7b26\u5408\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570\u3002<\/p>\n<h4 id=\"bJd70\">\u9884\u8bad\u7ec3 (Pre-training \/ PT)<\/h4>\n<p id=\"u7db0f5c1\">\u628a\u968f\u673a\u521d\u59cb\u5316\u7684\u6a21\u578b\u67b6\u6784 \u548c \u6d17\u597d\u7684\u6d77\u91cf Token \u6570\u636e\u6d41 \u8f93\u5165<\/p>\n<p id=\"u5e061538\">\u81ea\u56de\u5f52\u8bed\u8a00\u5efa\u6a21&#xff0c;\u7ed9\u524d\u9762 N \u4e2a token&#xff0c;\u9884\u6d4b\u4e0b\u4e00\u4e2a token&#xff0c;\u5c31\u662f\u8bcd\u8bed\u63a5\u9f99\u3002<\/p>\n<h5 id=\"eCOcS\">Cross\u2011Entropy Loss \u4ea4\u53c9\u71b5\u635f\u5931&#xff1a;<\/h5>\n<p id=\"ue5f91615\">\u91cf\u5316\u6a21\u578b\u9884\u6d4b\u548c\u6807\u51c6\u7b54\u6848\u4e4b\u95f4\u5dee\u8ddd\u3002loss \u8d8a\u5927&#xff0c;\u9519\u5f97\u8d8a\u79bb\u8c31\u3002<\/p>\n<h5 id=\"Sx1TI\">\u53cd\u5411\u4f20\u64ad Backpropagation &#xff1a;<\/h5>\n<p id=\"u2a152870\">\u5f97\u5230 loss \u4e4b\u540e&#xff0c;PyTorch \u81ea\u52a8\u505a\u53cd\u5411\u4f20\u64ad&#xff1a; \u6cbf\u7740\u7f51\u7edc\u4ece\u8f93\u51fa\u5f80\u56de\u8d70&#xff0c;\u8ba1\u7b97\u51e0\u767e\u4ebf\u53c2\u6570\u6bcf\u4e00\u4e2a\u6743\u91cd&#xff0c;\u5bf9\u8fd9\u4e2a\u8bef\u5dee\u8d21\u732e\u591a\u5927&#xff08;\u68af\u5ea6 gradient&#xff09;\u3002<\/p>\n<p id=\"u0fe5c170\">\u8fd9\u90e8\u5206\u4e0d\u4fee\u6539\u6743\u91cd&#xff0c;\u53ea\u8ba1\u7b97\u68af\u5ea6<\/p>\n<h5 id=\"JOxKs\">\u4f18\u5316\u5668 AdamW<\/h5>\n<p id=\"u8bdfab5c\">\u62ff\u5230\u5168\u90e8\u53c2\u6570\u68af\u5ea6\u540e&#xff0c;AdamW\u4f18\u5316\u5668\u6267\u884c\u4e00\u6b65\u66f4\u65b0&#xff1a; \u6bcf\u4e2a\u6743\u91cd &#061; \u65e7\u6743\u91cd \u2212 \u5b66\u4e60\u7387 \u00d7 \u68af\u5ea6&#xff08;AdamW \u8fd8\u81ea\u5e26\u6743\u91cd\u8870\u51cf&#xff09;\u3002  \u5c0f\u5e45\u5ea6\u632a\u52a8\u6bcf\u4e00\u4e2a\u968f\u673a\u521d\u59cb\u7684\u6743\u91cd <\/p>\n<p id=\"ua8db616a\">\n<p id=\"u7bfd1df1\">\u663e\u5361\u4f1a\u628a\u6574\u4e2a\u6d41\u7a0b\u8fde\u7eed\u8dd1\u6570\u6708<\/p>\n<h4 id=\"KVlCm\">\u76d1\u7763\u5fae\u8c03 (Supervised Fine-Tuning \/ SFT)<\/h4>\n<p id=\"u5c05a9f4\">\u628a \u57fa\u5ea7\u6a21\u578b &#043; \u51e0\u5341\u4e07\u6761\u9ad8\u8d28\u91cf\u7684\u201c\u4eba\u5de5\u7f16\u5199\u95ee\u7b54\u5bf9\u201d&#xff08;Q&amp;A&#xff09;\u8f93\u5165\u8fdb\u53bb<\/p>\n<p id=\"u7d0cfb2e\">\u8fd9\u90e8\u5206\u662f\u8ba9 AI \u80fd\u542c\u61c2\u4eba\u8bdd\u7684\u91cd\u8981\u90e8\u5206<\/p>\n<p id=\"u3b22f54c\">\u8fd9\u91cc\u5fc5\u987b\u6df7\u5165\u5927\u91cf\u201c\u5de5\u5177\u8c03\u7528\u201d\u683c\u5f0f\u7684\u6570\u636e\u3002<\/p>\n<p id=\"u80ea5448\">\u6bd4\u5982 \u4f60\u95ee\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837ai\u8fd9\u65f6\u5019\u4f1a\u7ed9\u4f60\u778e\u7f16\u4e00\u4e2a\u6570\u636e<\/p>\n<p id=\"ue5542661\">\u6240\u4ee5 \u4eba\u7c7b\u95ee\u7b54\u5c31\u4f1a\u7ed9\u51fa\u6807\u51c6json {&#034;action&#034;: &#034;call_weather_api&#034;, &#034;location&#034;: &#034;\u5317\u4eac&#034;} \u8fdb\u884c\u6743\u91cd\u8c03\u8282<\/p>\n<h4 id=\"W6V1K\">\u5956\u52b1\u6a21\u578b\u8bad\u7ec3 (Reward Model \/ RM)<\/h4>\n<p id=\"u5d12ce8b\">\u628a SFT \u6a21\u578b &#043; \u4eba\u7c7b\u504f\u597d\u6570\u636e\u96c6 \u8f93\u5165\u8fdb\u53bb<\/p>\n<h5 id=\"wtXtu\">\u4eba\u7c7b\u504f\u597d\u6570\u636e\u96c6<\/h5>\n<p id=\"u09257ba0\">AI\u751f\u6210\u4e24\u4e2a\u7b54\u6848\u7531\u8bad\u7ec3\u4eba\u6765\u9009\u51fa\u4eba\u7c7b\u89c9\u5f97\u597d\u7684\u7b54\u6848<\/p>\n<p id=\"u99d71aef\">\n<p id=\"u17d08a39\">\u628a SFT \u6a21\u578b\u7684\u6700\u540e\u4e00\u5c42\u201c\u9884\u6d4b\u4e0b\u4e00\u4e2a\u8bcd\u201d\u7684\u8f93\u51fa\u5934\u780d\u6389&#xff0c;\u6362\u6210\u4e00\u4e2a\u8f93\u51fa\u201c\u6807\u91cf\u5206\u6570\u201d\u7684\u5934\u3002<\/p>\n<p id=\"u968e1788\">\u7528\u76d1\u7763\u5b66\u4e60\u8bad\u7ec3\u5b83&#xff0c;\u8ba9\u5b83\u7ed9\u4eba\u7c7b\u559c\u6b22\u7684\u56de\u7b54\u6253\u9ad8\u5206&#xff0c;\u4e0d\u559c\u6b22\u7684\u6253\u4f4e\u5206\u3002 <\/p>\n<p id=\"uaad49e0e\">\u8fd9\u6b65\u662f\u4ee3\u66ff\u4eba\u5de5\u6253\u5206&#xff0c;\u65b9\u4fbf\u8fdb\u884c\u4e0b\u4e00\u6b65\u5f3a\u5316\u5b66\u4e60<\/p>\n<h4 id=\"UmdwL\">\u5f3a\u5316\u5b66\u4e60\u5bf9\u9f50 (RLHF &#8211; PPO\u7b97\u6cd5) <\/h4>\n<p id=\"uc28915a6\">\u628a SFT \u6a21\u578b &#043; RM \u6a21\u578b &#043; \u65e0\u7b54\u6848\u7684\u63d0\u793a\u8bcd\u96c6 \u8f93\u5165\u8fdb\u53bb<\/p>\n<p id=\"u4dc872e3\">\u8ba9 SFT \u6a21\u578b\u5bf9\u63d0\u793a\u8bcd\u751f\u6210\u56de\u7b54&#xff0c;RM \u7ed9\u56de\u7b54\u6253\u5206\u3002<\/p>\n<p id=\"u91b024d4\">SFT \u6a21\u578b\u6839\u636e\u5206\u6570&#xff0c;\u5229\u7528 PPO \u5f3a\u5316\u5b66\u4e60\u7b97\u6cd5\u8c03\u6574\u81ea\u5df1\u7684\u53c2\u6570&#xff0c;\u529b\u6c42\u4ee5\u540e\u751f\u6210\u80fd\u62ff\u66f4\u9ad8\u5206\u7684\u56de\u7b54&#xff0c;\u540c\u65f6\u9650\u5236\u5b83\u4e0d\u80fd\u504f\u79bb SFT \u6a21\u578b\u592a\u8fdc<\/p>\n<p id=\"ue8ee61ec\">\u5bf9\u9f50\u6a21\u578b (Aligned \/ Chat Model&#xff09; \u5c31\u662f\u5b83\u6700\u7ec8\u4ea4\u4ed8\u7684\u6743\u91cd<\/p>\n<h4 id=\"RQekd\">\u63a8\u7406\u90e8\u7f72 (Inference Deployment)<\/h4>\n<p id=\"ub08393e1\">\u5de5\u7a0b\u5e08\u4f7f\u7528 vLLM \u7b49\u63a8\u7406\u6846\u67b6&#xff0c;\u5c06\u6743\u91cd\u52a0\u8f7d\u5230 GPU \u663e\u5b58\u3002\u5b9e\u73b0 KV Cache&#xff08;\u7f13\u5b58\u8ba1\u7b97\u8fc7\u7684\u4e0a\u4e0b\u6587&#xff0c;\u6781\u5927\u5730\u52a0\u901f\u63a8\u65ad&#xff09;\u548c Continuous Batching&#xff08;\u9ad8\u5e76\u53d1\u5904\u7406\u8bf7\u6c42&#xff09;\u3002\u6700\u540e\u5957\u4e0a\u4e00\u4e2a HTTP \u63a5\u53e3&#xff08;\u5982 FastAPI&#xff09;\u3002<\/p>\n<p id=\"ufcd2f097\">\u8fd9\u90e8\u5206\u4fdd\u8bc1\u9ad8\u541e\u5410\u91cf<\/p>\n<p id=\"u31675895\">\u8fd9\u90e8\u5206\u662f\u670d\u52a1\u5546\u8981\u5b8c\u6210\u7684\u5e95\u5c42\u90e8\u7f72\u5de5\u4f5c <\/p>\n<h2 id=\"xmmdb\">&#8212;<\/h2>\n<p id=\"uef84380a\">\u6211\u4eec\u7528API Key \u8bf7\u6c42\u7684\u6a21\u578b\u4e00\u822c\u5c31\u662f\u5bf9\u9f50\u6a21\u578b&#xff08;\u5bf9\u9f50\u597d\u7684\u5bf9\u8bdd\u6a21\u578b&#xff09;<\/p>\n<p id=\"u23b644ab\">\u5c11\u6570\u4f1a\u63d0\u4f9b\u57fa\u5ea7\u6a21\u578b<\/p>\n<p id=\"u01194f9a\">\n<p id=\"ub5541b34\">\n<p id=\"uaf54e21a\">\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u59cb\u6570\u636e\u6e05\u6d17&#xff08;Data Cleaning&#xff09;\u6d77\u91cf\u6570\u636e\u5230\u624b\u4e86 \u522b\u7ba1\u600e\u4e48\u6765\u7684\u7b2c\u4e00\u6b65\u5c31\u662f\u5199\u6b63\u5219\u53bb\u6807\u7b7e&#xff0c;\u7528 MinHash \u7b97\u6cd5\u53bb\u91cd\u3001\u7528\u5206\u7c7b\u6a21\u578b\u8fc7\u6ee4\u4f4e\u8d28\u91cf\u548c\u6709\u5bb3\u5185\u5bb9\u3001\u6309\u8bed\u8a00\u5206\u7c7b\u3002MinHash\u8fd9\u4e2a\u7b97\u6cd5 \u5927\u6982\u5c31\u662f\u628a\u4e00\u672c\u4e66 \u5207\u7247 (Shingling)  \u6210\u5927\u91cf\u8fde\u7eed\u8bcd\u7ec4&#xff0c;\u6bcf\u4e2a\u8bcd\u7ec4\u90fd\u8ba1\u7b97\u51fa\u5bf9\u5e94\u7684\u54c8\u5e0c\u6620\u5c04&#xff08;Hashing&#xff09; \u914d\u7f6e \u591a\u5c11\u4e2a\u4e2a\u54c8\u5e0c\u51fd\u6570&#xff0c;\u6bcf\u7ec4\u54c8\u5e0c\u8fd0\u7b97\u90fd\u9009\u53d6\u54c8\u5e0c\u7ed3\u679c\u4e2d\u7684\u6700\u5c0f\u503c (Min) <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66],"topic":[],"class_list":["post-100653","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/100653.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u539f\u59cb\u6570\u636e\u6e05\u6d17&#xff08;Data Cleaning&#xff09;\u6d77\u91cf\u6570\u636e\u5230\u624b\u4e86 \u522b\u7ba1\u600e\u4e48\u6765\u7684\u7b2c\u4e00\u6b65\u5c31\u662f\u5199\u6b63\u5219\u53bb\u6807\u7b7e&#xff0c;\u7528 MinHash \u7b97\u6cd5\u53bb\u91cd\u3001\u7528\u5206\u7c7b\u6a21\u578b\u8fc7\u6ee4\u4f4e\u8d28\u91cf\u548c\u6709\u5bb3\u5185\u5bb9\u3001\u6309\u8bed\u8a00\u5206\u7c7b\u3002MinHash\u8fd9\u4e2a\u7b97\u6cd5 \u5927\u6982\u5c31\u662f\u628a\u4e00\u672c\u4e66 \u5207\u7247 (Shingling) \u6210\u5927\u91cf\u8fde\u7eed\u8bcd\u7ec4&#xff0c;\u6bcf\u4e2a\u8bcd\u7ec4\u90fd\u8ba1\u7b97\u51fa\u5bf9\u5e94\u7684\u54c8\u5e0c\u6620\u5c04&#xff08;Hashing&#xff09; \u914d\u7f6e \u591a\u5c11\u4e2a\u4e2a\u54c8\u5e0c\u51fd\u6570&#xff0c;\u6bcf\u7ec4\u54c8\u5e0c\u8fd0\u7b97\u90fd\u9009\u53d6\u54c8\u5e0c\u7ed3\u679c\u4e2d\u7684\u6700\u5c0f\u503c (Min)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100653.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-04T17:24:57+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100653.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100653.html\",\"name\":\"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-04T17:24:57+00:00\",\"dateModified\":\"2026-09-04T17:24:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100653.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100653.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100653.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/100653.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u539f\u59cb\u6570\u636e\u6e05\u6d17&#xff08;Data Cleaning&#xff09;\u6d77\u91cf\u6570\u636e\u5230\u624b\u4e86 \u522b\u7ba1\u600e\u4e48\u6765\u7684\u7b2c\u4e00\u6b65\u5c31\u662f\u5199\u6b63\u5219\u53bb\u6807\u7b7e&#xff0c;\u7528 MinHash \u7b97\u6cd5\u53bb\u91cd\u3001\u7528\u5206\u7c7b\u6a21\u578b\u8fc7\u6ee4\u4f4e\u8d28\u91cf\u548c\u6709\u5bb3\u5185\u5bb9\u3001\u6309\u8bed\u8a00\u5206\u7c7b\u3002MinHash\u8fd9\u4e2a\u7b97\u6cd5 \u5927\u6982\u5c31\u662f\u628a\u4e00\u672c\u4e66 \u5207\u7247 (Shingling) \u6210\u5927\u91cf\u8fde\u7eed\u8bcd\u7ec4&#xff0c;\u6bcf\u4e2a\u8bcd\u7ec4\u90fd\u8ba1\u7b97\u51fa\u5bf9\u5e94\u7684\u54c8\u5e0c\u6620\u5c04&#xff08;Hashing&#xff09; \u914d\u7f6e \u591a\u5c11\u4e2a\u4e2a\u54c8\u5e0c\u51fd\u6570&#xff0c;\u6bcf\u7ec4\u54c8\u5e0c\u8fd0\u7b97\u90fd\u9009\u53d6\u54c8\u5e0c\u7ed3\u679c\u4e2d\u7684\u6700\u5c0f\u503c (Min)","og_url":"https:\/\/www.wsisp.com\/helps\/100653.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-04T17:24:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100653.html","url":"https:\/\/www.wsisp.com\/helps\/100653.html","name":"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-04T17:24:57+00:00","dateModified":"2026-09-04T17:24:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100653.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100653.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100653.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u4f60\u8c03\u7528 API \u4e4b\u524d\uff0c\u670d\u52a1\u5546\u90fd\u505a\u4e86\u4ec0\u4e48\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=100653"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100653\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100653"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}