{"id":77468,"date":"2026-02-24T19:08:21","date_gmt":"2026-02-24T11:08:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77468.html"},"modified":"2026-02-24T19:08:21","modified_gmt":"2026-02-24T11:08:21","slug":"%e4%b8%80%e9%94%ae%e9%83%a8%e7%bd%b2%ef%bc%9asiameseuie%e4%b8%ad%e6%96%87%e4%bf%a1%e6%81%af%e6%8a%bd%e5%8f%96%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77468.html","title":{"rendered":"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u4e00\u952e\u90e8\u7f72&#xff1a;SiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668<\/h2>\n<p>\u4fe1\u606f\u62bd\u53d6\u4e0d\u662f\u628a\u6587\u5b57\u201c\u8bfb\u4e00\u904d\u201d&#xff0c;\u800c\u662f\u8ba9\u673a\u5668\u771f\u6b63\u201c\u770b\u61c2\u201d\u4e00\u6bb5\u8bdd\u91cc\u8c01\u505a\u4e86\u4ec0\u4e48\u3001\u5728\u54ea\u91cc\u53d1\u751f\u3001\u7ed3\u679c\u5982\u4f55\u3001\u6001\u5ea6\u600e\u6837\u3002\u4f20\u7edf\u65b9\u6cd5\u9700\u8981\u4e3a\u6bcf\u7c7b\u4efb\u52a1\u5355\u72ec\u8bad\u7ec3\u6a21\u578b&#xff0c;\u800cSiameseUIE\u7528\u4e00\u5957\u67b6\u6784\u6253\u901a\u547d\u540d\u5b9e\u4f53\u3001\u5173\u7cfb\u3001\u4e8b\u4ef6\u3001\u60c5\u611f\u56db\u7c7b\u62bd\u53d6\u4efb\u52a1\u2014\u2014\u4e0d\u91cd\u65b0\u8bad\u7ec3\u3001\u4e0d\u6539\u4ee3\u7801&#xff0c;\u53ea\u6362\u4e00\u4e2aJSON Schema&#xff0c;\u5c31\u80fd\u8ba9\u540c\u4e00\u6a21\u578b\u5e72\u56db\u4ef6\u4e8b\u3002<\/p>\n<p>\u5b83\u4e0d\u4f9d\u8d56\u6d77\u91cf\u6807\u6ce8\u6570\u636e&#xff0c;\u4e5f\u4e0d\u8981\u6c42\u4f60\u5199\u6b63\u5219\u6216\u8bbe\u8ba1\u6a21\u677f\u3002\u8f93\u5165\u4e00\u6bb5\u4e2d\u6587&#xff0c;\u586b\u597d\u4f60\u60f3\u627e\u7684\u7ed3\u6784&#xff0c;\u51e0\u79d2\u540e\u8fd4\u56de\u7ed3\u6784\u5316\u7ed3\u679c\u3002\u672c\u6587\u5e26\u4f60\u4ece\u96f6\u542f\u52a8\u8fd9\u4e2a\u5f00\u7bb1\u5373\u7528\u7684\u4fe1\u606f\u62bd\u53d6\u670d\u52a1&#xff0c;\u4e0d\u7f16\u8bd1\u3001\u4e0d\u914d\u7f6e\u3001\u4e0d\u8c03\u53c2&#xff0c;\u771f\u6b63\u5b9e\u73b0\u201c\u4e00\u952e\u90e8\u7f72\u3001\u5373\u70b9\u5373\u7528\u201d\u3002<\/p>\n<hr \/>\n<h3>1. \u4e3a\u4ec0\u4e48\u4f60\u9700\u8981SiameseUIE<\/h3>\n<h4>1.1 \u4fe1\u606f\u62bd\u53d6\u7684\u73b0\u5b9e\u56f0\u5883<\/h4>\n<p>\u5f88\u591a\u56e2\u961f\u5728\u843d\u5730NLP\u9879\u76ee\u65f6\u5361\u5728\u540c\u4e00\u4e2a\u73af\u8282&#xff1a;<\/p>\n<ul>\n<li>\u505a\u5ba2\u6237\u5de5\u5355\u5206\u6790&#xff0c;\u8981\u540c\u65f6\u8bc6\u522b\u6295\u8bc9\u4eba&#xff08;NER&#xff09;\u3001\u6295\u8bc9\u5bf9\u8c61&#xff08;NER&#xff09;\u3001\u95ee\u9898\u7c7b\u578b&#xff08;RE&#xff09;\u3001\u53d1\u751f\u65f6\u95f4&#xff08;EE&#xff09;\u3001\u6ee1\u610f\u5ea6\u8bc4\u4ef7&#xff08;ABSA&#xff09;&#xff1b;<\/li>\n<li>\u505a\u91d1\u878d\u7814\u62a5\u5904\u7406&#xff0c;\u9700\u4ece\u6bb5\u843d\u4e2d\u62bd\u53d6\u51fa\u201c\u516c\u53f8A\u6536\u8d2d\u516c\u53f8B\u201d&#xff08;RE&#xff09;\u3001\u201c\u6536\u8d2d\u65f6\u95f42024\u5e743\u6708\u201d&#xff08;EE&#xff09;\u3001\u201c\u6536\u8d2d\u91d1\u989d5.2\u4ebf\u5143\u201d&#xff08;NER&#043;RE&#xff09;&#xff1b;<\/li>\n<li>\u505a\u7535\u5546\u8bc4\u8bba\u6316\u6398&#xff0c;\u65e2\u8981\u627e\u51fa\u201c\u5c4f\u5e55\u201d\u201c\u97f3\u8d28\u201d\u201c\u53d1\u8d27\u901f\u5ea6\u201d&#xff08;\u5c5e\u6027\u8bcd&#xff09;&#xff0c;\u53c8\u8981\u5224\u65ad\u201c\u5f88\u597d\u201d\u201c\u6162\u201d\u201c\u503c\u5f97\u201d&#xff08;\u60c5\u611f\u8bcd&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u4f20\u7edf\u65b9\u6848\u5f80\u5f80\u610f\u5473\u7740&#xff1a; \u8bad\u7ec34\u4e2a\u72ec\u7acb\u6a21\u578b \u2192 \u8017\u65f6\u3001\u5360\u663e\u5b58\u3001\u96be\u7ef4\u62a4 \u6bcf\u4e2a\u4efb\u52a1\u51c6\u5907\u6807\u6ce8\u6570\u636e \u2192 \u6210\u672c\u9ad8\u3001\u5468\u671f\u957f\u3001\u8986\u76d6\u7a84 \u4fee\u6539Schema\u5c31\u5f97\u91cd\u5199\u4ee3\u7801 \u2192 \u7075\u6d3b\u6027\u5dee\u3001\u54cd\u5e94\u6162<\/p>\n<p>SiameseUIE\u76f4\u63a5\u7ed5\u8fc7\u8fd9\u4e9b\u969c\u788d\u2014\u2014\u5b83\u628a\u4fe1\u606f\u62bd\u53d6\u53d8\u6210\u201c\u63d0\u95ee\u5f0f\u64cd\u4f5c\u201d&#xff1a;\u4f60\u544a\u8bc9\u6a21\u578b\u201c\u6211\u8981\u627e\u4ec0\u4e48\u201d&#xff0c;\u5b83\u5c31\u4ece\u6587\u672c\u91cc\u7cbe\u51c6\u5708\u51fa\u5bf9\u5e94\u7247\u6bb5\u3002<\/p>\n<h4>1.2 SiameseUIE\u7684\u6838\u5fc3\u7a81\u7834<\/h4>\n<p>\u5b83\u4e0d\u662f\u53c8\u4e00\u4e2a\u5fae\u8c03\u540e\u7684BERT\u53d8\u4f53&#xff0c;\u800c\u662f\u57fa\u4e8e\u53cc\u6d41\u7f16\u7801\u5668 &#043; \u6307\u9488\u7f51\u7edc\u7684\u7edf\u4e00\u67b6\u6784&#xff1a;<\/p>\n<ul>\n<li>\u53cc\u6d41\u7f16\u7801&#xff1a;\u6587\u672c\u548cSchema\u5206\u522b\u8d70\u72ec\u7acb\u7f16\u7801\u8def\u5f84&#xff0c;\u518d\u505a\u8bed\u4e49\u5bf9\u9f50&#xff0c;\u907f\u514dSchema\u88ab\u6587\u672c\u6df9\u6ca1&#xff1b;<\/li>\n<li>\u6307\u9488\u7f51\u7edc\u89e3\u7801&#xff1a;\u4e0d\u751f\u6210\u6807\u7b7e\u5e8f\u5217&#xff0c;\u800c\u662f\u76f4\u63a5\u5b9a\u4f4d\u539f\u6587\u4e2d\u6bcf\u4e2a\u5b57\u6bb5\u7684\u8d77\u6b62\u4f4d\u7f6e&#xff0c;\u5929\u7136\u652f\u6301\u5d4c\u5957\u3001\u91cd\u53e0\u3001\u957f\u8ddd\u79bb\u5b9e\u4f53&#xff1b;<\/li>\n<li>Prompt\u9a71\u52a8&#xff1a;Schema\u672c\u8eab\u5c31\u662f\u63d0\u793a&#xff08;Prompt&#xff09;&#xff0c;\u5982 {&#034;\u4eba\u7269&#034;: {&#034;\u83b7\u5956\u65f6\u95f4&#034;: null}} \u76f4\u63a5\u544a\u8bc9\u6a21\u578b\u201c\u5148\u627e\u4eba\u7269&#xff0c;\u518d\u5728\u8be5\u4eba\u7269\u4e0a\u4e0b\u6587\u4e2d\u627e\u83b7\u5956\u65f6\u95f4\u201d&#xff0c;\u65e0\u9700\u989d\u5916\u8bbe\u8ba1\u6a21\u677f&#xff1b;<\/li>\n<li>\u96f6\u6837\u672c\u6cdb\u5316&#xff1a;\u5728\u672a\u89c1\u8fc7\u7684\u65b0Schema\u4e0a\u4ecd\u4fdd\u6301\u7a33\u5b9a\u8868\u73b0&#xff0c;\u6bd4\u5982\u4e34\u65f6\u589e\u52a0\u201c\u53c2\u8d5b\u9879\u76ee\u201d\u5b57\u6bb5&#xff0c;\u65e0\u9700\u8bad\u7ec3\u5373\u53ef\u751f\u6548\u3002<\/li>\n<\/ul>\n<p>\u5b9e\u6d4b\u5bf9\u6bd4\u540c\u7c7bUIE\u6a21\u578b&#xff0c;\u5176\u63a8\u7406\u901f\u5ea6\u63d0\u5347\u7ea630%&#xff0c;\u5c24\u5176\u5728200\u5b57\u4ee5\u5185\u4e2d\u6587\u77ed\u6587\u672c\u573a\u666f\u4e0b&#xff0c;\u5e73\u5747\u54cd\u5e94\u65f6\u95f4\u63a7\u5236\u57281.2\u79d2\u5185&#xff08;RTX 4090\u5355\u5361&#xff09;\u3002<\/p>\n<hr \/>\n<h3>2. \u4e09\u6b65\u5b8c\u6210\u672c\u5730\u90e8\u7f72<\/h3>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u65e0\u9700\u8054\u7f51\u4e0b\u8f7d\u6a21\u578b\u3001\u4e0d\u4fee\u6539\u4efb\u4f55\u914d\u7f6e\u3001\u4e0d\u5b89\u88c5\u989d\u5916\u4f9d\u8d56\u2014\u2014\u6240\u6709\u8d44\u6e90\u5df2\u9884\u7f6e\u5728\u955c\u50cf\u4e2d\u3002<\/p>\n<h4>2.1 \u542f\u52a8\u670d\u52a1<\/h4>\n<p>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u6267\u884c\u4e00\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p>python \/root\/nlp_structbert_siamese-uie_chinese-base\/app.py<\/p>\n<p>\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u8f93\u51fa&#xff1a;<\/p>\n<p>Running on local URL: http:\/\/localhost:7860<br \/>\nTo create a public link, set &#096;share&#061;True&#096; in &#096;launch()&#096;.<\/p>\n<p>\u6ce8\u610f&#xff1a;\u82e5\u8fd0\u884c\u62a5\u9519 ModuleNotFoundError&#xff0c;\u8bf4\u660e\u73af\u5883\u5f02\u5e38&#xff0c;\u8bf7\u8054\u7cfb\u5e73\u53f0\u8fd0\u7ef4\u91cd\u7f6e\u955c\u50cf\u5b9e\u4f8b&#xff1b;\u6b63\u5e38\u60c5\u51b5\u4e0b\u6b64\u547d\u4ee4100%\u6210\u529f\u3002<\/p>\n<h4>2.2 \u8bbf\u95eeWeb\u754c\u9762<\/h4>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 http:\/\/localhost:7860&#xff08;\u5982\u4f7f\u7528\u8fdc\u7a0b\u670d\u52a1\u5668&#xff0c;\u8bf7\u5c06 localhost \u66ff\u6362\u4e3a\u5b9e\u9645IP&#xff0c;\u5e76\u786e\u8ba47860\u7aef\u53e3\u5df2\u653e\u884c&#xff09;\u3002<\/p>\n<p>\u754c\u9762\u7b80\u6d01\u660e\u4e86&#xff0c;\u4ec5\u542b\u4e09\u4e2a\u8f93\u5165\u533a&#xff1a;<\/p>\n<ul>\n<li>\u8f93\u5165\u6587\u672c\u6846&#xff1a;\u7c98\u8d34\u4f60\u8981\u5206\u6790\u7684\u4e2d\u6587\u53e5\u5b50\u6216\u6bb5\u843d&#xff08;\u5efa\u8bae\u2264300\u5b57&#xff09;&#xff1b;<\/li>\n<li>Schema\u8f93\u5165\u6846&#xff1a;\u586b\u5199\u7b26\u5408\u89c4\u8303\u7684JSON\u7ed3\u6784&#xff08;\u683c\u5f0f\u89c1\u4e0b\u6587\u8be6\u89e3&#xff09;&#xff1b;<\/li>\n<li>\u63d0\u4ea4\u6309\u94ae&#xff1a;\u70b9\u51fb\u5373\u89e6\u53d1\u62bd\u53d6&#xff0c;\u7ed3\u679c\u4ee5\u9ad8\u4eae\u5f62\u5f0f\u5b9e\u65f6\u6e32\u67d3\u3002<\/li>\n<\/ul>\n<h4>2.3 \u9a8c\u8bc1\u9996\u4e2a\u6848\u4f8b<\/h4>\n<p>\u590d\u5236\u4ee5\u4e0b\u5185\u5bb9\u5230\u5bf9\u5e94\u533a\u57df&#xff1a;<\/p>\n<p>\u8f93\u5165\u6587\u672c&#xff1a;<\/p>\n<p>\u534e\u4e3aMate70\u7cfb\u5217\u4e8e2023\u5e7411\u670826\u65e5\u53d1\u5e03&#xff0c;\u642d\u8f7d\u9e92\u9e9f9100\u82af\u7247&#xff0c;\u8d77\u552e\u4ef75499\u5143\u3002<\/p>\n<p>Schema&#xff1a;<\/p>\n<p>{&#034;\u4ea7\u54c1\u540d\u79f0&#034;: null, &#034;\u53d1\u5e03\u65f6\u95f4&#034;: null, &#034;\u82af\u7247\u578b\u53f7&#034;: null, &#034;\u8d77\u552e\u4ef7&#034;: null}<\/p>\n<p>\u70b9\u51fb\u63d0\u4ea4&#xff0c;\u51e0\u79d2\u540e\u9875\u9762\u5c06\u9ad8\u4eae\u663e\u793a&#xff1a;<\/p>\n<ul>\n<li>\u201c\u534e\u4e3aMate70\u7cfb\u5217\u201d \u2192 \u4ea7\u54c1\u540d\u79f0<\/li>\n<li>\u201c2023\u5e7411\u670826\u65e5\u201d \u2192 \u53d1\u5e03\u65f6\u95f4<\/li>\n<li>\u201c\u9e92\u9e9f9100\u82af\u7247\u201d \u2192 \u82af\u7247\u578b\u53f7<\/li>\n<li>\u201c5499\u5143\u201d \u2192 \u8d77\u552e\u4ef7<\/li>\n<\/ul>\n<p>\u6240\u6709\u7ed3\u679c\u5747\u6765\u81ea\u539f\u6587\u539f\u59cb\u5b57\u7b26&#xff0c;\u65e0\u5e7b\u89c9\u3001\u65e0\u6539\u5199\u3001\u65e0\u8865\u5168\u3002<\/p>\n<hr \/>\n<h3>3. \u56db\u7c7b\u4efb\u52a1\u5b9e\u6218\u6307\u5357<\/h3>\n<p>SiameseUIE\u4e0d\u9760\u201c\u731c\u201d&#xff0c;\u9760\u201c\u6307\u201d\u3002\u5b83\u7684\u672c\u8d28\u662f\u7247\u6bb5\u5b9a\u4f4d\u5668\u2014\u2014\u53ea\u8981\u4f60\u5728Schema\u91cc\u5b9a\u4e49\u597d\u5b57\u6bb5\u540d&#xff0c;\u5b83\u5c31\u5728\u539f\u6587\u4e2d\u4e3a\u4f60\u5212\u51fa\u6700\u5339\u914d\u7684\u4e00\u6bb5\u8fde\u7eed\u5b57\u7b26\u3002\u4e0b\u9762\u7528\u771f\u5b9e\u4e1a\u52a1\u573a\u666f\u6f14\u793a\u5982\u4f55\u7075\u6d3b\u5207\u6362\u4efb\u52a1\u3002<\/p>\n<h4>3.1 \u547d\u540d\u5b9e\u4f53\u8bc6\u522b&#xff08;NER&#xff09;&#xff1a;\u4ece\u65b0\u95fb\u7a3f\u4e2d\u6316\u51fa\u5173\u952e\u8981\u7d20<\/h4>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u4f01\u4e1a\u8206\u60c5\u76d1\u63a7\u3001\u653f\u52a1\u7b80\u62a5\u6574\u7406\u3001\u5b66\u672f\u6587\u732e\u5143\u6570\u636e\u63d0\u53d6<\/p>\n<p>\u8f93\u5165\u6587\u672c&#xff1a;<\/p>\n<p>\u4e2d\u56fd\u79d1\u5b66\u9662\u9662\u58eb\u3001\u6e05\u534e\u5927\u5b66\u6559\u6388\u65bd\u4e00\u516c\u56e2\u961f\u5728\u300a\u81ea\u7136\u300b\u6742\u5fd7\u53d1\u8868\u8bba\u6587&#xff0c;\u63ed\u793a\u963f\u5c14\u8328\u6d77\u9ed8\u75c5\u65b0\u673a\u5236\u3002<\/p>\n<p>Schema\u8bbe\u8ba1\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5b57\u6bb5\u540d\u7528\u4e1a\u52a1\u8bed\u8a00&#xff0c;\u5982\u201c\u673a\u6784\u540d\u79f0\u201d\u6bd4\u201c\u7ec4\u7ec7\u673a\u6784\u201d\u66f4\u6613\u7406\u89e3&#xff1b;<\/li>\n<li>\u591a\u4e2a\u540c\u7c7b\u578b\u5b9e\u4f53\u53ef\u5171\u7528\u5b57\u6bb5&#xff0c;\u6a21\u578b\u81ea\u52a8\u62c6\u5206&#xff08;\u5982\u201c\u4e2d\u56fd\u79d1\u5b66\u9662\u9662\u58eb\u201d\u201c\u6e05\u534e\u5927\u5b66\u6559\u6388\u201d\u5747\u5f52\u5165\u201c\u8eab\u4efd\u5934\u8854\u201d&#xff09;&#xff1b;<\/li>\n<\/ul>\n<p>\u63a8\u8350Schema&#xff1a;<\/p>\n<p>{&#034;\u4eba\u7269\u59d3\u540d&#034;: null, &#034;\u6240\u5c5e\u673a\u6784&#034;: null, &#034;\u671f\u520a\u540d\u79f0&#034;: null, &#034;\u75be\u75c5\u540d\u79f0&#034;: null}<\/p>\n<p>\u9884\u671f\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\u201c\u65bd\u4e00\u516c\u201d \u2192 \u4eba\u7269\u59d3\u540d<\/li>\n<li>\u201c\u4e2d\u56fd\u79d1\u5b66\u9662\u201d\u201c\u6e05\u534e\u5927\u5b66\u201d \u2192 \u6240\u5c5e\u673a\u6784&#xff08;\u4e24\u4e2a\u72ec\u7acb\u7ed3\u679c&#xff09;<\/li>\n<li>\u201c\u300a\u81ea\u7136\u300b\u201d \u2192 \u671f\u520a\u540d\u79f0<\/li>\n<li>\u201c\u963f\u5c14\u8328\u6d77\u9ed8\u75c5\u201d \u2192 \u75be\u75c5\u540d\u79f0<\/li>\n<\/ul>\n<p>\u2726 \u5c0f\u6280\u5de7&#xff1a;\u82e5\u9700\u533a\u5206\u201c\u4eba\u7269\u201d\u4e0e\u201c\u673a\u6784\u201d\u7684\u5c42\u7ea7\u5173\u7cfb&#xff08;\u5982\u201c\u65bd\u4e00\u516c-\u6e05\u534e\u5927\u5b66\u201d&#xff09;&#xff0c;\u53ef\u5728Schema\u4e2d\u5d4c\u5957\u5b9a\u4e49&#xff0c;\u89c13.2\u8282\u3002<\/p>\n<h4>3.2 \u5173\u7cfb\u62bd\u53d6&#xff08;RE&#xff09;&#xff1a;\u7406\u6e05\u5b9e\u4f53\u95f4\u7684\u903b\u8f91\u7ebd\u5e26<\/h4>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u77e5\u8bc6\u56fe\u8c31\u6784\u5efa\u3001\u5408\u540c\u6761\u6b3e\u89e3\u6790\u3001\u533b\u7597\u62a5\u544a\u7ed3\u6784\u5316<\/p>\n<p>\u8f93\u5165\u6587\u672c&#xff1a;<\/p>\n<p>2024\u5e74\u676d\u5dde\u4e9a\u8fd0\u4f1a\u5973\u5b5010\u7c73\u6c14\u6b65\u67aa\u51b3\u8d5b\u4e2d&#xff0c;\u4e2d\u56fd\u9009\u624b\u6768\u5029\u4ee5251.8\u73af\u593a\u51a0&#xff0c;\u97e9\u56fd\u9009\u624b\u91d1\u667a\u8d24\u83b7\u4e9a\u519b\u3002<\/p>\n<p>Schema\u8bbe\u8ba1\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528\u5d4c\u5957JSON\u8868\u8fbe\u4e3b\u4ece\u5173\u7cfb&#xff1a;\u201c\u4e3b\u4f53\u2192\u5c5e\u6027\u201d\u7ed3\u6784&#xff1b;<\/li>\n<li>\u5b57\u6bb5\u540d\u5e94\u4f53\u73b0\u8bed\u4e49\u89d2\u8272&#xff0c;\u5982\u201c\u51a0\u519b\u9009\u624b\u201d\u6bd4\u201c\u4eba\u7269\u201d\u66f4\u660e\u786e&#xff1b;<\/li>\n<\/ul>\n<p>\u63a8\u8350Schema&#xff1a;<\/p>\n<p>{&#034;\u8d5b\u4e8b\u540d\u79f0&#034;: {&#034;\u51a0\u519b\u9009\u624b&#034;: null, &#034;\u6210\u7ee9&#034;: null, &#034;\u4e9a\u519b\u9009\u624b&#034;: null}}<\/p>\n<p>\u9884\u671f\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\u201c\u676d\u5dde\u4e9a\u8fd0\u4f1a\u5973\u5b5010\u7c73\u6c14\u6b65\u67aa\u51b3\u8d5b\u201d \u2192 \u8d5b\u4e8b\u540d\u79f0<\/li>\n<li>\u201c\u6768\u5029\u201d \u2192 \u51a0\u519b\u9009\u624b&#xff08;\u96b6\u5c5e\u8d5b\u4e8b\u540d\u79f0\u4e0b&#xff09;<\/li>\n<li>\u201c251.8\u73af\u201d \u2192 \u6210\u7ee9&#xff08;\u96b6\u5c5e\u8d5b\u4e8b\u540d\u79f0\u4e0b&#xff09;<\/li>\n<li>\u201c\u91d1\u667a\u8d24\u201d \u2192 \u4e9a\u519b\u9009\u624b&#xff08;\u96b6\u5c5e\u8d5b\u4e8b\u540d\u79f0\u4e0b&#xff09;<\/li>\n<\/ul>\n<p>\u2726 \u6ce8\u610f&#xff1a;\u6a21\u578b\u4f1a\u81ea\u52a8\u5173\u8054\u4e0a\u4e0b\u6587&#xff0c;\u201c\u6768\u5029\u201d\u4e0d\u4f1a\u88ab\u9519\u8bef\u5339\u914d\u5230\u201c\u97e9\u56fd\u9009\u624b\u201d\u4e0b&#xff0c;\u8fd9\u662f\u53cc\u6d41\u7f16\u7801\u5bf9\u9f50\u80fd\u529b\u7684\u76f4\u63a5\u4f53\u73b0\u3002<\/p>\n<h4>3.3 \u4e8b\u4ef6\u62bd\u53d6&#xff08;EE&#xff09;&#xff1a;\u8fd8\u539f\u52a8\u6001\u4e8b\u5b9e\u7684\u5b8c\u6574\u8109\u7edc<\/h4>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u7a81\u53d1\u4e8b\u4ef6\u5feb\u62a5\u3001\u91d1\u878d\u516c\u544a\u6458\u8981\u3001\u53f8\u6cd5\u6587\u4e66\u8981\u7d20\u63d0\u53d6<\/p>\n<p>\u8f93\u5165\u6587\u672c&#xff1a;<\/p>\n<p>2024\u5e744\u670812\u65e5&#xff0c;\u5c0f\u7c73\u6c7d\u8f66\u5728\u5317\u4eac\u4ea6\u5e84\u5de5\u5382\u6b63\u5f0f\u4ea4\u4ed8\u9996\u53f0SU7&#xff0c;\u96f7\u519b\u5ba3\u5e03\u8be5\u8f66\u578b\u4e0a\u5e0224\u5c0f\u65f6\u8ba2\u5355\u7a81\u783488000\u53f0\u3002<\/p>\n<p>Schema\u8bbe\u8ba1\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u4e8b\u4ef6\u540d\u4f5c\u4e3a\u9876\u5c42\u952e&#xff0c;\u8981\u7d20\u4f5c\u4e3a\u5b50\u952e&#xff1b;<\/li>\n<li>\u65f6\u95f4\u3001\u5730\u70b9\u3001\u4e3b\u4f53\u3001\u5ba2\u4f53\u3001\u6570\u503c\u7b49\u8981\u7d20\u5c3d\u91cf\u7a77\u4e3e&#xff0c;\u6a21\u578b\u4f1a\u5ffd\u7565\u672a\u51fa\u73b0\u7684\u5b57\u6bb5&#xff1b;<\/li>\n<\/ul>\n<p>\u63a8\u8350Schema&#xff1a;<\/p>\n<p>{&#034;\u65b0\u8f66\u4ea4\u4ed8\u4e8b\u4ef6&#034;: {&#034;\u65f6\u95f4&#034;: null, &#034;\u5730\u70b9&#034;: null, &#034;\u54c1\u724c\u540d\u79f0&#034;: null, &#034;\u8f66\u578b\u540d\u79f0&#034;: null, &#034;\u8ba2\u5355\u6570\u91cf&#034;: null}}<\/p>\n<p>\u9884\u671f\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\u201c2024\u5e744\u670812\u65e5\u201d \u2192 \u65f6\u95f4<\/li>\n<li>\u201c\u5317\u4eac\u4ea6\u5e84\u5de5\u5382\u201d \u2192 \u5730\u70b9<\/li>\n<li>\u201c\u5c0f\u7c73\u6c7d\u8f66\u201d \u2192 \u54c1\u724c\u540d\u79f0<\/li>\n<li>\u201cSU7\u201d \u2192 \u8f66\u578b\u540d\u79f0<\/li>\n<li>\u201c88000\u53f0\u201d \u2192 \u8ba2\u5355\u6570\u91cf<\/li>\n<\/ul>\n<p>\u2726 \u5b9e\u6d4b\u53d1\u73b0&#xff1a;\u5373\u4f7f\u6587\u672c\u4e2d\u201c\u8ba2\u5355\u6570\u91cf\u201d\u8868\u8ff0\u4e3a\u201c\u8d858.8\u4e07\u53f0\u201d&#xff0c;\u6a21\u578b\u4ecd\u80fd\u51c6\u786e\u5f52\u4e00\u5316\u4e3a\u6570\u5b57\u5b57\u7b26\u4e32&#xff0c;\u65e0\u9700\u540e\u5904\u7406\u3002<\/p>\n<h4>3.4 \u5c5e\u6027\u60c5\u611f\u62bd\u53d6&#xff08;ABSA&#xff09;&#xff1a;\u8bfb\u61c2\u7528\u6237\u8bc4\u4ef7\u7684\u771f\u5b9e\u610f\u56fe<\/h4>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u7535\u5546\u8bc4\u8bba\u5206\u6790\u3001App\u5e94\u7528\u5546\u5e97\u53cd\u9988\u3001\u5ba2\u670d\u5bf9\u8bdd\u8d28\u68c0<\/p>\n<p>\u8f93\u5165\u6587\u672c&#xff1a;<\/p>\n<p>\u624b\u673a\u5916\u89c2\u5f88\u7cbe\u81f4&#xff0c;\u4f46\u7535\u6c60\u7eed\u822a\u592a\u5dee&#xff0c;\u5145\u7535\u901f\u5ea6\u4e00\u822c&#xff0c;\u7cfb\u7edf\u6d41\u7545\u5ea6\u4e0d\u9519\u3002<\/p>\n<p>Schema\u8bbe\u8ba1\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5fc5\u987b\u4f7f\u7528 &#034;\u5c5e\u6027\u8bcd&#034;: {&#034;\u60c5\u611f\u8bcd&#034;: null} \u56fa\u5b9a\u7ed3\u6784&#xff1b;<\/li>\n<li>\u201c\u5c5e\u6027\u8bcd\u201d\u586b\u7528\u6237\u5173\u6ce8\u70b9&#xff08;\u5982\u201c\u5916\u89c2\u201d\u201c\u7535\u6c60\u7eed\u822a\u201d&#xff09;&#xff0c;\u201c\u60c5\u611f\u8bcd\u201d\u586b\u5bf9\u5e94\u8bc4\u4ef7&#xff08;\u5982\u201c\u7cbe\u81f4\u201d\u201c\u592a\u5dee\u201d&#xff09;&#xff1b;<\/li>\n<li>\u652f\u6301\u540c\u4e00\u5c5e\u6027\u591a\u4e2a\u60c5\u611f&#xff08;\u5982\u201c\u5145\u7535\u901f\u5ea6\u4e00\u822c\u201d\u201c\u7cfb\u7edf\u6d41\u7545\u5ea6\u4e0d\u9519\u201d\u5e76\u5b58&#xff09;&#xff1b;<\/li>\n<\/ul>\n<p>\u63a8\u8350Schema&#xff1a;<\/p>\n<p>{&#034;\u5c5e\u6027\u8bcd&#034;: {&#034;\u60c5\u611f\u8bcd&#034;: null}}<\/p>\n<p>\u9884\u671f\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\u201c\u5916\u89c2\u201d \u2192 \u201c\u7cbe\u81f4\u201d<\/li>\n<li>\u201c\u7535\u6c60\u7eed\u822a\u201d \u2192 \u201c\u592a\u5dee\u201d<\/li>\n<li>\u201c\u5145\u7535\u901f\u5ea6\u201d \u2192 \u201c\u4e00\u822c\u201d<\/li>\n<li>\u201c\u7cfb\u7edf\u6d41\u7545\u5ea6\u201d \u2192 \u201c\u4e0d\u9519\u201d<\/li>\n<\/ul>\n<p>\u2726 \u5173\u952e\u4f18\u52bf&#xff1a;\u65e0\u9700\u9884\u5b9a\u4e49\u60c5\u611f\u6781\u6027\u8bcd\u5178\u3002\u6a21\u578b\u76f4\u63a5\u4ece\u539f\u6587\u4e2d\u62bd\u53d6\u539f\u751f\u8868\u8fbe&#xff0c;\u4fdd\u7559\u201c\u4e00\u822c\u201d\u201c\u4e0d\u9519\u201d\u201c\u592a\u5dee\u201d\u7b49\u7a0b\u5ea6\u5dee\u5f02&#xff0c;\u6bd4\u7b80\u5355\u6253\u6807\u66f4\u8d34\u8fd1\u771f\u5b9e\u8bed\u4e49\u3002<\/p>\n<hr \/>\n<h3>4. Schema\u7f16\u5199\u907f\u5751\u624b\u518c<\/h3>\n<p>Schema\u662fSiameseUIE\u7684\u201c\u64cd\u4f5c\u8bf4\u660e\u4e66\u201d&#xff0c;\u5199\u5f97\u51c6&#xff0c;\u7ed3\u679c\u624d\u7a33\u3002\u4ee5\u4e0b\u662f\u9ad8\u9891\u9519\u8bef\u53ca\u4fee\u6b63\u65b9\u6848&#xff1a;<\/p>\n<h4>4.1 JSON\u8bed\u6cd5\u5fc5\u987b\u4e25\u683c\u5408\u6cd5<\/h4>\n<p>\u9519\u8bef\u793a\u4f8b&#xff08;\u7f3a\u5c11\u5f15\u53f7\u3001\u9017\u53f7\u7f3a\u5931\u3001null\u5199\u6210Null&#xff09;&#xff1a;<\/p>\n<p>{\u4eba\u7269: null, \u5730\u70b9: null}  \/\/ \u5b57\u6bb5\u540d\u672a\u52a0\u5f15\u53f7<br \/>\n{&#034;\u4eba\u7269&#034;: null &#034;\u5730\u70b9&#034;: null}  \/\/ \u7f3a\u5c11\u9017\u53f7<br \/>\n{&#034;\u4eba\u7269&#034;: Null}  \/\/ null\u5fc5\u987b\u5c0f\u5199<\/p>\n<p>\u6b63\u786e\u5199\u6cd5&#xff08;\u63a8\u8350\u7528VS Code\u7b49\u7f16\u8f91\u5668\u5b9e\u65f6\u6821\u9a8c&#xff09;&#xff1a;<\/p>\n<p>{&#034;\u4eba\u7269&#034;: null, &#034;\u5730\u70b9&#034;: null}<\/p>\n<h4>4.2 \u5b57\u6bb5\u540d\u9700\u4e0e\u4e1a\u52a1\u8bed\u4e49\u5f3a\u5bf9\u9f50<\/h4>\n<p>\u6a21\u7cca\u5b57\u6bb5\u540d\u5bfc\u81f4\u53ec\u56de\u7387\u4f4e&#xff1a;<\/p>\n<p>{&#034;\u4e1c\u897f&#034;: null, &#034;\u5730\u65b9&#034;: null}<\/p>\n<p>\u660e\u786e\u5b57\u6bb5\u540d\u63d0\u5347\u7cbe\u5ea6&#xff1a;<\/p>\n<p>{&#034;\u4ea7\u54c1\u540d\u79f0&#034;: null, &#034;\u751f\u4ea7\u5730\u5740&#034;: null}<\/p>\n<h4>4.3 \u5d4c\u5957\u5c42\u7ea7\u4e0d\u5b9c\u8fc7\u6df1<\/h4>\n<p>\u4e09\u5c42\u4ee5\u4e0a\u5d4c\u5957\u6613\u5bfc\u81f4\u5bf9\u9f50\u5931\u8d25&#xff08;\u5982 {&#034;A&#034;: {&#034;B&#034;: {&#034;C&#034;: null}}}&#xff09;&#xff1a; \u6a21\u578b\u5bf9\u6df1\u5ea6\u5d4c\u5957\u7684\u652f\u6301\u6709\u9650&#xff0c;\u5efa\u8bae\u63a7\u5236\u5728\u4e24\u5c42\u5185\u3002<\/p>\n<p>\u63a8\u8350\u6241\u5e73\u5316\u8868\u8fbe&#xff1a;<\/p>\n<p>{&#034;\u8d5b\u4e8b\u540d\u79f0&#034;: null, &#034;\u51a0\u519b\u9009\u624b&#034;: null, &#034;\u4e9a\u519b\u9009\u624b&#034;: null}<\/p>\n<h4>4.4 \u4e2d\u6587\u6807\u70b9\u4e0e\u7a7a\u683c\u5904\u7406<\/h4>\n<p>\u6587\u672c\u542b\u5168\u89d2\u7a7a\u683c\u3001\u4e0d\u95f4\u65ad\u7a7a\u683c&#xff08;\\\\u00a0&#xff09;\u65f6\u53ef\u80fd\u622a\u65ad&#xff1a;<\/p>\n<p>\u534e\u4e3a Mate70\u3000\u53d1\u5e03   \/\/ \u5168\u89d2\u7a7a\u683c&#043;\u4e2d\u6587\u7a7a\u683c\u6df7\u7528<\/p>\n<p>\u9884\u5904\u7406\u5efa\u8bae&#xff08;\u5728app.py\u4e2d\u6dfb\u52a0&#xff09;&#xff1a;<\/p>\n<p>text &#061; text.replace(&#039;\\\\u00a0&#039;, &#039; &#039;).replace(&#039;\u3000&#039;, &#039; &#039;).strip()<\/p>\n<hr \/>\n<h3>5. \u6027\u80fd\u4e0e\u8fb9\u754c\u8ba4\u77e5<\/h3>\n<p>SiameseUIE\u4e0d\u662f\u4e07\u80fd\u795e\u5668&#xff0c;\u4e86\u89e3\u5b83\u7684\u80fd\u529b\u8fb9\u754c&#xff0c;\u624d\u80fd\u7528\u5f97\u66f4\u7a33\u3002<\/p>\n<h4>5.1 \u8f93\u5165\u957f\u5ea6\u9650\u5236<\/h4>\n<ul>\n<li>\u5b98\u65b9\u5efa\u8bae\u4e0a\u9650&#xff1a;300\u5b57<\/li>\n<li>\u8d85\u957f\u6587\u672c\u4f1a\u88ab\u81ea\u52a8\u622a\u65ad&#xff0c;\u4f46\u622a\u65ad\u4f4d\u7f6e\u975e\u53e5\u672b&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u8bed\u4e49\u65ad\u88c2&#xff1b;<\/li>\n<li>\u5e94\u5bf9\u7b56\u7565&#xff1a;\u5bf9\u957f\u6587\u6863\u6309\u53e5\u53f7\/\u5206\u53f7\u5207\u5206&#xff0c;\u9010\u6bb5\u63d0\u4ea4&#xff0c;\u518d\u5408\u5e76\u7ed3\u679c&#xff08;Python\u793a\u4f8b&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>import re<\/p>\n<p>def split_by_sentences(text, max_len&#061;280):<br \/>\n    sentences &#061; re.split(r&#039;[\u3002&#xff01;&#xff1f;&#xff1b;]&#043;&#039;, text)<br \/>\n    chunks &#061; []<br \/>\n    current &#061; &#034;&#034;<br \/>\n    for s in sentences:<br \/>\n        if len(current &#043; s) &lt;&#061; max_len:<br \/>\n            current &#043;&#061; s &#043; &#034;\u3002&#034;<br \/>\n        else:<br \/>\n            if current:<br \/>\n                chunks.append(current.strip())<br \/>\n            current &#061; s &#043; &#034;\u3002&#034;<br \/>\n    if current:<br \/>\n        chunks.append(current.strip())<br \/>\n    return chunks<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\ntext &#061; &#034;&#8230;&#034;  # \u539f\u59cb\u957f\u6587\u672c<br \/>\nfor chunk in split_by_sentences(text):<br \/>\n    # \u8c03\u7528SiameseUIE API \u6216 \u63d0\u4ea4\u81f3Web\u754c\u9762<br \/>\n    pass<\/p>\n<h4>5.2 \u6a21\u578b\u5bb9\u91cf\u4e0e\u786c\u4ef6\u9002\u914d<\/h4>\n<table>\n<tr>\u9879\u76ee\u53c2\u6570<\/tr>\n<tbody>\n<tr>\n<td>\u6a21\u578b\u4f53\u79ef<\/td>\n<td>391 MB&#xff08;\u7eafCPU\u53ef\u8fd0\u884c&#xff0c;\u4f46\u63a8\u8350GPU&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u663e\u5b58\u5360\u7528<\/td>\n<td>RTX 3090&#xff1a;\u7ea62.1GB&#xff1b;RTX 4090&#xff1a;\u7ea61.8GB<\/td>\n<\/tr>\n<tr>\n<td>CPU\u63a8\u7406<\/td>\n<td>Python 3.11 &#043; PyTorch 2.3&#xff0c;\u5355\u6838\u8017\u65f6\u7ea63.5\u79d2\/\u6b21<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u2726 \u82e5\u90e8\u7f72\u5728\u65e0GPU\u73af\u5883&#xff0c;\u5efa\u8bae\u5728 app.py \u4e2d\u5f3a\u5236\u6307\u5b9a device&#061;&#034;cpu&#034;&#xff0c;\u907f\u514dCUDA\u521d\u59cb\u5316\u5931\u8d25\u3002<\/p>\n<h4>5.3 \u5f53\u524d\u4e0d\u652f\u6301\u7684\u80fd\u529b<\/h4>\n<ul>\n<li>\u8de8\u53e5\u6307\u4ee3\u6d88\u89e3&#xff1a;\u5982\u201c\u4ed6\u6628\u5929\u53bb\u4e86\u5317\u4eac\u3002\u90a3\u91cc\u5929\u6c14\u5f88\u597d\u3002\u201d\u65e0\u6cd5\u5c06\u201c\u90a3\u91cc\u201d\u7ed1\u5b9a\u5230\u201c\u5317\u4eac\u201d&#xff1b;<\/li>\n<li>\u6570\u503c\u5355\u4f4d\u5f52\u4e00\u5316&#xff1a;\u5982\u201c5.2\u4ebf\u201d\u201c520000000\u201d\u201c\u4e94\u70b9\u4e8c\u4ebf\u201d\u4e0d\u4f1a\u81ea\u52a8\u8f6c\u4e3a\u7edf\u4e00\u6570\u5b57\u683c\u5f0f&#xff1b;<\/li>\n<li>\u591a\u4e49\u8bcd\u6b67\u4e49\u6d88\u89e3&#xff1a;\u5982\u201c\u82f9\u679c\u53d1\u5e03\u4e86\u65b0\u624b\u673a\u201d\u4e2d\u201c\u82f9\u679c\u201d\u88ab\u8bc6\u522b\u4e3a\u516c\u53f8\u800c\u975e\u6c34\u679c&#xff0c;\u4f46\u82e5\u4e0a\u4e0b\u6587\u4e3a\u201c\u6211\u5403\u4e86\u4e00\u4e2a\u82f9\u679c\u201d&#xff0c;\u5219\u53ef\u80fd\u8bef\u5224\u4e3a\u516c\u53f8&#xff1b;<\/li>\n<li>\u6240\u6709\u652f\u6301\u80fd\u529b\u5747\u5df2\u5728\u955c\u50cf\u4e2d\u9884\u9a8c\u8bc1&#xff0c;\u65e0\u9700\u4e8c\u6b21\u9002\u914d\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>6. \u8fdb\u9636\u7528\u6cd5&#xff1a;\u96c6\u6210\u5230\u4f60\u7684\u5de5\u4f5c\u6d41<\/h3>\n<p>Web\u754c\u9762\u9002\u5408\u8c03\u8bd5\u548c\u6f14\u793a&#xff0c;\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u901a\u8fc7API\u8c03\u7528\u3002\u4ee5\u4e0b\u662f\u4e24\u79cd\u8f7b\u91cf\u7ea7\u96c6\u6210\u65b9\u5f0f&#xff1a;<\/p>\n<h4>6.1 \u4f7f\u7528curl\u76f4\u63a5\u8bf7\u6c42&#xff08;\u65e0\u9700Python&#xff09;<\/h4>\n<p>curl -X POST &#034;http:\/\/localhost:7860\/api\/predict\/&#034; \\\\<br \/>\n  -H &#034;Content-Type: application\/json&#034; \\\\<br \/>\n  -d &#039;{<br \/>\n        &#034;text&#034;: &#034;\u7279\u65af\u62c9CEO\u9a6c\u65af\u514b\u5ba3\u5e03\u5c06\u4e8e2024\u5e74\u8bbf\u534e\u3002&#034;,<br \/>\n        &#034;schema&#034;: {&#034;\u4eba\u7269\u59d3\u540d&#034;: null, &#034;\u516c\u53f8\u540d\u79f0&#034;: null, &#034;\u4e8b\u4ef6\u7c7b\u578b&#034;: null}<br \/>\n      }&#039;<\/p>\n<p>\u8fd4\u56deJSON\u683c\u5f0f\u7ed3\u679c&#xff0c;\u5b57\u6bb5\u4e0eWeb\u754c\u9762\u4e00\u81f4\u3002<\/p>\n<h4>6.2 Python SDK\u5c01\u88c5&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p>\u521b\u5efa uie_client.py&#xff1a;<\/p>\n<p>import requests<br \/>\nimport json<\/p>\n<p>class SiameseUIEClient:<br \/>\n    def __init__(self, base_url&#061;&#034;http:\/\/localhost:7860&#034;):<br \/>\n        self.base_url &#061; base_url.rstrip(&#034;\/&#034;)<\/p>\n<p>    def extract(self, text: str, schema: dict) -&gt; dict:<br \/>\n        payload &#061; {<br \/>\n            &#034;text&#034;: text,<br \/>\n            &#034;schema&#034;: json.dumps(schema, ensure_ascii&#061;False)<br \/>\n        }<br \/>\n        resp &#061; requests.post(f&#034;{self.base_url}\/api\/predict\/&#034;, json&#061;payload)<br \/>\n        if resp.status_code &#061;&#061; 200:<br \/>\n            return resp.json().get(&#034;result&#034;, {})<br \/>\n        else:<br \/>\n            raise Exception(f&#034;API Error {resp.status_code}: {resp.text}&#034;)<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<br \/>\nclient &#061; SiameseUIEClient()<br \/>\nresult &#061; client.extract(<br \/>\n    text&#061;&#034;\u6bd4\u4e9a\u8fea\u53d1\u5e03\u65b0\u6b3e\u6c49EV&#xff0c;\u7eed\u822a\u8fbe715\u516c\u91cc\u3002&#034;,<br \/>\n    schema&#061;{&#034;\u54c1\u724c\u540d\u79f0&#034;: null, &#034;\u8f66\u578b\u540d\u79f0&#034;: null, &#034;\u7eed\u822a\u91cc\u7a0b&#034;: null}<br \/>\n)<br \/>\nprint(result)<br \/>\n# \u8f93\u51fa: {&#039;\u54c1\u724c\u540d\u79f0&#039;: [&#039;\u6bd4\u4e9a\u8fea&#039;], &#039;\u8f66\u578b\u540d\u79f0&#039;: [&#039;\u6c49EV&#039;], &#039;\u7eed\u822a\u91cc\u7a0b&#039;: [&#039;715\u516c\u91cc&#039;]}<\/p>\n<hr \/>\n<h3>7. \u603b\u7ed3<\/h3>\n<p>SiameseUIE\u4e0d\u662f\u53c8\u4e00\u4e2a\u9700\u8981\u8c03\u53c2\u3001\u8bad\u7ec3\u3001\u90e8\u7f72\u7684NLP\u6a21\u578b&#xff0c;\u800c\u662f\u4e00\u4e2a\u5373\u63d2\u5373\u7528\u7684\u4fe1\u606f\u7ed3\u6784\u5316\u5de5\u5177\u3002\u5b83\u7528\u7edf\u4e00\u67b6\u6784\u8986\u76d6NER\u3001RE\u3001EE\u3001ABSA\u56db\u5927\u4efb\u52a1&#xff0c;\u7528JSON Schema\u66ff\u4ee3\u4ee3\u7801\u903b\u8f91&#xff0c;\u7528\u6307\u9488\u5b9a\u4f4d\u66ff\u4ee3\u6807\u7b7e\u751f\u6210\u2014\u2014\u628a\u4fe1\u606f\u62bd\u53d6\u4ece\u201c\u5de5\u7a0b\u95ee\u9898\u201d\u62c9\u56de\u201c\u4f7f\u7528\u95ee\u9898\u201d\u3002<\/p>\n<p>\u4f60\u4e0d\u9700\u8981\u6210\u4e3aNLP\u4e13\u5bb6&#xff0c;\u53ea\u9700&#xff1a; \u8ba4\u771f\u8bfb\u4e00\u904dSchema\u89c4\u8303&#xff1b; \u628a\u4e1a\u52a1\u9700\u6c42\u7ffb\u8bd1\u6210\u5b57\u6bb5\u540d&#xff1b; \u590d\u5236\u7c98\u8d34\u6587\u672c&#xff0c;\u70b9\u51fb\u63d0\u4ea4&#xff1b; \u62ff\u5230\u53ef\u76f4\u63a5\u5165\u5e93\u3001\u53ef\u76f4\u63a5\u5c55\u793a\u3001\u53ef\u76f4\u63a5\u5206\u6790\u7684\u7ed3\u6784\u5316\u7ed3\u679c\u3002<\/p>\n<p>\u8fd9\u6b63\u662fAI\u843d\u5730\u6700\u8be5\u6709\u7684\u6837\u5b50&#xff1a;\u4e0d\u70ab\u6280\u3001\u4e0d\u8bbe\u969c\u3001\u4e0d\u753b\u997c&#xff0c;\u53ea\u89e3\u51b3\u771f\u5b9e\u95ee\u9898\u3002<\/p>\n<hr \/>\n<p>\u83b7\u53d6\u66f4\u591aAI\u955c\u50cf<\/p>\n<p>\u60f3\u63a2\u7d22\u66f4\u591aAI\u955c\u50cf\u548c\u5e94\u7528\u573a\u666f&#xff1f;\u8bbf\u95ee CSDN\u661f\u56fe\u955c\u50cf\u5e7f\u573a&#xff0c;\u63d0\u4f9b\u4e30\u5bcc\u7684\u9884\u7f6e\u955c\u50cf&#xff0c;\u8986\u76d6\u5927\u6a21\u578b\u63a8\u7406\u3001\u56fe\u50cf\u751f\u6210\u3001\u89c6\u9891\u751f\u6210\u3001\u6a21\u578b\u5fae\u8c03\u7b49\u591a\u4e2a\u9886\u57df&#xff0c;\u652f\u6301\u4e00\u952e\u90e8\u7f72\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u952e\u90e8\u7f72&#xff1a;SiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668<br \/>\n\u4fe1\u606f\u62bd\u53d6\u4e0d\u662f\u628a\u6587\u5b57\u201c\u8bfb\u4e00\u904d\u201d&#xff0c;\u800c\u662f\u8ba9\u673a\u5668\u771f\u6b63\u201c\u770b\u61c2\u201d\u4e00\u6bb5\u8bdd\u91cc\u8c01\u505a\u4e86\u4ec0\u4e48\u3001\u5728\u54ea\u91cc\u53d1\u751f\u3001\u7ed3\u679c\u5982\u4f55\u3001\u6001\u5ea6\u600e\u6837\u3002\u4f20\u7edf\u65b9\u6cd5\u9700\u8981\u4e3a\u6bcf\u7c7b\u4efb\u52a1\u5355\u72ec\u8bad\u7ec3\u6a21\u578b&#xff0c;\u800cSiameseUIE\u7528\u4e00\u5957\u67b6\u6784\u6253\u901a\u547d\u540d\u5b9e\u4f53\u3001\u5173\u7cfb\u3001\u4e8b\u4ef6\u3001\u60c5\u611f\u56db\u7c7b\u62bd\u53d6\u4efb\u52a1\u2014\u2014\u4e0d\u91cd\u65b0\u8bad\u7ec3\u3001\u4e0d\u6539\u4ee3\u7801&#xff0c;\u53ea\u6362\u4e00\u4e2aJSON Schema&#xff0c;\u5c31\u80fd\u8ba9\u540c\u4e00\u6a21\u578b\u5e72\u56db\u4ef6\u4e8b\u3002<br \/>\n\u5b83\u4e0d\u4f9d\u8d56\u6d77\u91cf\u6807\u6ce8\u6570\u636e&#xff0c;\u4e5f\u4e0d\u8981\u6c42\u4f60\u5199\u6b63\u5219\u6216\u8bbe\u8ba1<\/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":[8507,8506,6851,2068],"topic":[],"class_list":["post-77468","post","type-post","status-publish","format-standard","hentry","category-server","tag-8507","tag-8506","tag-gpu","tag-nlp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \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\/77468.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u952e\u90e8\u7f72&#xff1a;SiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 \u4fe1\u606f\u62bd\u53d6\u4e0d\u662f\u628a\u6587\u5b57\u201c\u8bfb\u4e00\u904d\u201d&#xff0c;\u800c\u662f\u8ba9\u673a\u5668\u771f\u6b63\u201c\u770b\u61c2\u201d\u4e00\u6bb5\u8bdd\u91cc\u8c01\u505a\u4e86\u4ec0\u4e48\u3001\u5728\u54ea\u91cc\u53d1\u751f\u3001\u7ed3\u679c\u5982\u4f55\u3001\u6001\u5ea6\u600e\u6837\u3002\u4f20\u7edf\u65b9\u6cd5\u9700\u8981\u4e3a\u6bcf\u7c7b\u4efb\u52a1\u5355\u72ec\u8bad\u7ec3\u6a21\u578b&#xff0c;\u800cSiameseUIE\u7528\u4e00\u5957\u67b6\u6784\u6253\u901a\u547d\u540d\u5b9e\u4f53\u3001\u5173\u7cfb\u3001\u4e8b\u4ef6\u3001\u60c5\u611f\u56db\u7c7b\u62bd\u53d6\u4efb\u52a1\u2014\u2014\u4e0d\u91cd\u65b0\u8bad\u7ec3\u3001\u4e0d\u6539\u4ee3\u7801&#xff0c;\u53ea\u6362\u4e00\u4e2aJSON Schema&#xff0c;\u5c31\u80fd\u8ba9\u540c\u4e00\u6a21\u578b\u5e72\u56db\u4ef6\u4e8b\u3002 \u5b83\u4e0d\u4f9d\u8d56\u6d77\u91cf\u6807\u6ce8\u6570\u636e&#xff0c;\u4e5f\u4e0d\u8981\u6c42\u4f60\u5199\u6b63\u5219\u6216\u8bbe\u8ba1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77468.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-24T11:08:21+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77468.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77468.html\",\"name\":\"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-24T11:08:21+00:00\",\"dateModified\":\"2026-02-24T11:08:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77468.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77468.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77468.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668\"}]},{\"@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":"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \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\/77468.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u952e\u90e8\u7f72&#xff1a;SiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 \u4fe1\u606f\u62bd\u53d6\u4e0d\u662f\u628a\u6587\u5b57\u201c\u8bfb\u4e00\u904d\u201d&#xff0c;\u800c\u662f\u8ba9\u673a\u5668\u771f\u6b63\u201c\u770b\u61c2\u201d\u4e00\u6bb5\u8bdd\u91cc\u8c01\u505a\u4e86\u4ec0\u4e48\u3001\u5728\u54ea\u91cc\u53d1\u751f\u3001\u7ed3\u679c\u5982\u4f55\u3001\u6001\u5ea6\u600e\u6837\u3002\u4f20\u7edf\u65b9\u6cd5\u9700\u8981\u4e3a\u6bcf\u7c7b\u4efb\u52a1\u5355\u72ec\u8bad\u7ec3\u6a21\u578b&#xff0c;\u800cSiameseUIE\u7528\u4e00\u5957\u67b6\u6784\u6253\u901a\u547d\u540d\u5b9e\u4f53\u3001\u5173\u7cfb\u3001\u4e8b\u4ef6\u3001\u60c5\u611f\u56db\u7c7b\u62bd\u53d6\u4efb\u52a1\u2014\u2014\u4e0d\u91cd\u65b0\u8bad\u7ec3\u3001\u4e0d\u6539\u4ee3\u7801&#xff0c;\u53ea\u6362\u4e00\u4e2aJSON Schema&#xff0c;\u5c31\u80fd\u8ba9\u540c\u4e00\u6a21\u578b\u5e72\u56db\u4ef6\u4e8b\u3002 \u5b83\u4e0d\u4f9d\u8d56\u6d77\u91cf\u6807\u6ce8\u6570\u636e&#xff0c;\u4e5f\u4e0d\u8981\u6c42\u4f60\u5199\u6b63\u5219\u6216\u8bbe\u8ba1","og_url":"https:\/\/www.wsisp.com\/helps\/77468.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-24T11:08:21+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77468.html","url":"https:\/\/www.wsisp.com\/helps\/77468.html","name":"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-24T11:08:21+00:00","dateModified":"2026-02-24T11:08:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77468.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77468.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77468.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u952e\u90e8\u7f72\uff1aSiameseUIE\u4e2d\u6587\u4fe1\u606f\u62bd\u53d6\u670d\u52a1\u5668"}]},{"@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\/77468","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=77468"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77468\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77468"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}