{"id":55023,"date":"2025-08-13T15:00:02","date_gmt":"2025-08-13T07:00:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55023.html"},"modified":"2025-08-13T15:00:02","modified_gmt":"2025-08-13T07:00:02","slug":"%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3hanlp1-x%ef%bc%8c%e5%a1%ab%e5%b9%b3%e5%8f%af%e8%83%bd%e9%81%87%e5%88%b0%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55023.html","title":{"rendered":"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065947-689c37e385b4b.png\" alt=\"\" \/><\/p>\n<h3>01 \u5f15\u8a00<\/h3>\n<p>\u524d\u4e24\u5929\u9884\u7814\u4e86\u4e2d\u6587\u5206\u8bcd\u5668\u76f8\u5173\u7684\u5de5\u5177\u5305&#xff0c;\u539f\u672c\u6253\u7b97\u4f7f\u7528IK\u5206\u8bcd\u5668\u7684&#xff0c;\u4f46\u662f\u9762\u5bf9\u4ea7\u54c1\u7684\u9700\u6c42IK\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u4e86&#xff0c;\u6700\u7ec8\u9009\u578bHanLP 1.x\u3002<\/p>\n<p>HanLP\u662f\u4e00\u7cfb\u5217\u6a21\u578b\u4e0e\u7b97\u6cd5\u7ec4\u6210\u7684NLP\u5de5\u5177\u5305&#xff0c;\u76ee\u6807\u662f\u666e\u53ca\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u5e94\u7528\u3002HanLP\u5177\u5907\u529f\u80fd\u5b8c\u5584\u3001\u6027\u80fd\u9ad8\u6548\u3001\u67b6\u6784\u6e05\u6670\u3001\u8bed\u6599\u65f6\u65b0\u3001\u53ef\u81ea\u5b9a\u4e49\u7684\u7279\u70b9\u3002<\/p>\n<p>\u800cHanLP 2.x\u662f\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60\u7684&#xff0c;\u63d0\u4f9b\u8f7b\u91cf\u7ea7\u7684RESTful API&#xff0c;\u9700\u8981\u63a5\u5165https:\/\/www.hanlp.com\/api\u6216\u8005\u81ea\u5df1\u90e8\u7f72\u3002\u6d77\u91cf\u7ea7native API\u66f4\u9002\u5408\u4e13\u4e1a\u7684NLP\u5de5\u7a0b\u5e08\u3002\u90e8\u7f72\u6210\u672c\u76f8\u5bf9\u8f83\u9ad8&#xff0c;\u6240\u4ee5\u672c\u6587\u4ecd\u7136\u4ee5HanLP 1.x\u4e3a\u4f8b&#xff0c;\u4ecb\u7ecd\u4f7f\u7528\u65f6\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6587\u6863\u5730\u5740&#xff1a;https:\/\/github.com\/hankcs\/HanLP\/tree\/1.x<\/p>\n<h3>02 \u6700\u4f73\u5b9e\u8df5<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065948-689c37e40b6cb.png\" alt=\"\" \/><\/p>\n<p>Maven\u4f9d\u8d56<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>com.hankcs<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>hanlp<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>portable-1.8.6<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>version<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>HanLP\u4e2d\u6709\u4e00\u7cfb\u5217\u201c\u5f00\u7bb1\u5373\u7528\u201d\u7684\u9759\u6001\u5206\u8bcd\u5668&#xff0c;\u4ee5Tokenizer\u7ed3\u5c3e\u3002<\/p>\n<h4>2.1 \u6807\u51c6\u5206\u8bcd<\/h4>\n<p>\u6807\u51c6\u5206\u8bcd\u5df2\u7ecf\u53ef\u4ee5\u5e94\u7528\u5230\u901a\u7528\u7684\u573a\u666f&#xff0c;\u4e3b\u8981\u7684\u9759\u6001\u7c7b&#xff1a;<\/p>\n<p>com.hankcs.hanlp.tokenizer.StandardTokenizer<\/p>\n<p>\u6848\u4f8b&#xff1a;<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Test<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">test01<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">String<\/span> text <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">StandardTokenizer<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">segment<\/span><span class=\"token punctuation\">(<\/span>text<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/ [\u5c0f\u7c73\/n, su\/nx, 7\/m, \u7279\u65af\u62c9\/nrf, modelY\/nx, \u6bd4\/p, \u4e9a\/b, 042025\/m, \u6b3e\/q, 6575767670908\/m]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u5230&#xff0c;\u5206\u8bcd\u7684\u7ed3\u679c\u662f\u6309\u7167[\u5206\u8bcd\/\u8bcd\u6027 ]\u6765\u8f93\u51fa\u7ed3\u679c\u7684\u3002<\/p>\n<p>\u5177\u4f53\u7684\u8bcd\u6027\u8bf4\u660e&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065948-689c37e442097.png\" alt=\"\" \/><\/p>\n<p>\u8be6\u7ec6\u8bcd\u6027&#xff1a;<\/p>\n<p>https:\/\/www.hankcs.com\/nlp\/part-of-speech-tagging.html#h2-8<\/p>\n<p>\u5feb\u6377\u4f7f\u7528<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Test<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">test01<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">String<\/span> text <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">HanLP<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">segment<\/span><span class=\"token punctuation\">(<\/span>text<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>HanLP.segment()\u9ed8\u8ba4\u4f7f\u7528\u7684\u5c31\u662fStandardTokenizer\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065948-689c37e4c20d4.png\" alt=\"\" \/><\/p>\n<h4>2.2 \u7d22\u5f15\u5206\u8bcd<\/h4>\n<p>\u4e3b\u8981\u7684\u9759\u6001\u7c7b&#xff1a;com.hankcs.hanlp.tokenizer.IndexTokenizer<\/p>\n<p>\u7d22\u5f15\u5206\u8bcdIndexTokenizer\u662f\u9762\u5411\u641c\u7d22\u5f15\u64ce\u7684\u5206\u8bcd\u5668&#xff0c;\u80fd\u591f\u5bf9\u957f\u8bcd\u5168\u5207\u5206&#xff0c;\u53e6\u5916\u901a\u8fc7term.offset\u53ef\u4ee5\u83b7\u53d6\u5355\u8bcd\u5728\u6587\u672c\u4e2d\u7684\u504f\u79fb\u91cf\u3002<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Test<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">test02<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Term<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> termList <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">IndexTokenizer<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">segment<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u4e3b\u526f\u98df\u54c1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Term<\/span> term <span class=\"token operator\">:<\/span> termList<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span>term <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034; [&#034;<\/span> <span class=\"token operator\">&#043;<\/span> term<span class=\"token punctuation\">.<\/span>offset <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token punctuation\">(<\/span>term<span class=\"token punctuation\">.<\/span>offset <span class=\"token operator\">&#043;<\/span> term<span class=\"token punctuation\">.<\/span>word<span class=\"token punctuation\">.<\/span><span class=\"token function\">length<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;]&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065948-689c37e4de94c.png\" alt=\"\" \/><\/p>\n<p>\u7d22\u5f15\u5206\u8bcd\u662f\u6309\u7167\u7d22\u5f15\u7684\u9012\u589e&#xff0c;\u4f9d\u6b21\u5206\u8bcd&#xff0c;\u76f4\u5230\u5206\u51fa\u6240\u6709\u7684\u8bcd\u3002\u540c\u65f6\u8fd8\u53ef\u4ee5\u83b7\u53d6\u5206\u8bcd\u7684\u7d22\u5f15\u4f4d\u7f6e\u3002<\/p>\n<h4>2.3 N-\u6700\u77ed\u8def\u5f84\u5206\u8bcd<\/h4>\n<p>\u4e3b\u8981\u7684\u9759\u6001\u7c7b&#xff1a;<\/p>\n<ul>\n<li>com.hankcs.hanlp.seg.NShort.NShortSegment<\/li>\n<li>com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment<\/li>\n<\/ul>\n<p>N\u6700\u77ed\u8def\u5206\u8bcd\u5668NShortSegment\u6bd4\u6700\u77ed\u8def\u5206\u8bcd\u5668\u6162&#xff0c;\u4f46\u662f\u6548\u679c\u7a0d\u5fae\u597d\u4e00\u4e9b&#xff0c;\u5bf9\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u80fd\u529b\u66f4\u5f3a&#xff0c;\u4e00\u822c\u573a\u666f\u4e0b\u6700\u77ed\u8def\u5206\u8bcd\u7684\u7cbe\u5ea6\u5df2\u7ecf\u8db3\u591f&#xff0c;\u800c\u4e14\u901f\u5ea6\u6bd4N\u6700\u77ed\u8def\u5206\u8bcd\u5668\u5feb\u51e0\u500d&#xff0c;\u8bf7\u914c\u60c5\u9009\u62e9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065949-689c37e56d319.png\" alt=\"\" \/><\/p>\n<p>\u6700\u77ed\u8def\u5f84\u5206\u8bcd\u76f8\u6bd4\u7d22\u5f15\u5206\u8bcd&#xff0c;\u4f3c\u4e4e\u66f4\u7ec6\u7c92\u5ea6&#xff0c;\u53ea\u662f\u5206\u51fa\u7684\u8bcd&#xff0c;\u540e\u9762\u7684\u8bcd\u5c06\u4e0d\u4f1a\u590d\u7528\u3002\u6548\u7387\u5e94\u8be5\u66f4\u9ad8\u3002<\/p>\n<h4>2.4 \u6781\u901f\u8bcd\u5178\u5206\u8bcd<\/h4>\n<p>\u4e3b\u8981\u7684\u9759\u6001\u7c7b&#xff1a;<\/p>\n<p>com.hankcs.hanlp.tokenizer.SpeedTokenizer<\/p>\n<p>\u6781\u901f\u5206\u8bcd\u662f\u8bcd\u5178\u6700\u957f\u5206\u8bcd&#xff0c;\u901f\u5ea6\u6781\u5176\u5feb&#xff0c;\u7cbe\u5ea6\u4e00\u822c&#xff0c;\u9002\u7528\u4e8e\u9ad8\u541e\u5410\u91cf\u3001\u7cbe\u5ea6\u4e00\u822c\u7684\u573a\u5408\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065950-689c37e689e02.png\" alt=\"\" \/><\/p>\n<p>\u4f18\u70b9\u5c31\u662f\u5feb&#xff0c;\u54c8\u54c8\u2026<\/p>\n<h4>2.5 \u4e2d\u56fd\u4eba\u540d\u8bc6\u522b<\/h4>\n<p>\u5206\u8bcd\u5668\u57fa\u672c\u4e0a\u90fd\u9ed8\u8ba4\u5f00\u542f\u4e86\u4e2d\u56fd\u4eba\u540d\u8bc6\u522b&#xff0c;\u6bd4\u5982HanLP.segment()\u63a5\u53e3\u4e2d\u4f7f\u7528\u7684\u5206\u8bcd\u5668\u7b49\u7b49&#xff0c;\u7528\u6237\u4e0d\u5fc5\u624b\u52a8\u5f00\u542f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065951-689c37e71585b.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u5206\u8981\u624b\u52a8\u5f00\u542f&#xff0c;\u5219\u4fee\u6539\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065951-689c37e7f10cf.png\" alt=\"\" \/><\/p>\n<h4>2.5 \u97f3\u8bd1\u4eba\u540d\u8bc6\u522b<\/h4>\n<p>\u5206\u8bcd\u5668\u57fa\u672c\u4e0a\u90fd\u9ed8\u8ba4\u5f00\u542f\u4e86\u97f3\u8bd1\u4eba\u540d\u8bc6\u522b&#xff0c;\u7528\u6237\u4e0d\u5fc5\u624b\u52a8\u5f00\u542f\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u53ea\u662f\u4e3a\u4e86\u5f3a\u8c03\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065952-689c37e842b5a.png\" alt=\"\" \/><\/p>\n<h4>2.6 \u65e5\u672c\u4eba\u540d\u8bc6\u522b<\/h4>\n<p>\u6807\u51c6\u5206\u8bcd\u5668\u9ed8\u8ba4\u5173\u95ed\u4e86\u65e5\u672c\u4eba\u540d\u8bc6\u522b&#xff0c;\u7528\u6237\u9700\u8981\u624b\u52a8\u5f00\u542f&#xff1b;\u8fd9\u662f\u56e0\u4e3a\u65e5\u672c\u4eba\u540d\u7684\u51fa\u73b0\u9891\u7387\u8f83\u4f4e&#xff0c;\u4f46\u662f\u53c8\u6d88\u8017\u6027\u80fd\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065953-689c37e90e3d2.png\" alt=\"\" \/><\/p>\n<h4>2.7 \u5730\u540d\u8bc6\u522b<\/h4>\n<p>\u5206\u8bcd\u5668\u90fd\u9ed8\u8ba4\u5173\u95ed\u4e86\u5730\u540d\u8bc6\u522b&#xff0c;\u7528\u6237\u9700\u8981\u624b\u52a8\u5f00\u542f&#xff1b;\u8fd9\u662f\u56e0\u4e3a\u6d88\u8017\u6027\u80fd&#xff0c;\u5176\u5b9e\u591a\u6570\u5730\u540d\u90fd\u6536\u5f55\u5728\u6838\u5fc3\u8bcd\u5178\u548c\u7528\u6237\u81ea\u5b9a\u4e49\u8bcd\u5178\u4e2d.\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u80fd\u9760\u8bcd\u5178\u89e3\u51b3\u7684\u95ee\u9898\u5c31\u9760\u8bcd\u5178\u89e3\u51b3&#xff0c;\u8fd9\u662f\u6700\u9ad8\u6548\u7a33\u5b9a\u7684\u65b9\u6cd5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065953-689c37e9c5c05.png\" alt=\"\" \/><\/p>\n<p>\u5176\u4e2dns\u5c31\u8868\u793a\u5730\u540d&#xff0c;\u4f46\u662f\u5e76\u4e0d\u662f\u6240\u6709\u5206\u51fa\u7684\u5730\u540d\u6807\u6ce8\u90fd\u662fns\u3002<\/p>\n<h4>2.8 \u673a\u6784\u540d\u8bc6\u522b<\/h4>\n<p>\u4f7f\u7528\u540c\u5730\u540d\u8bc6\u522b&#xff0c;\u9ed8\u8ba4\u5173\u95ed&#xff0c;\u9700\u8981\u624b\u52a8\u5f00\u542f\u3002\u751f\u4ea7\u6700\u597d\u4f7f\u7528\u8bcd\u5178\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065954-689c37ea74537.png\" alt=\"\" \/><\/p>\n<p>\u5176\u4e2dnt\u4ee3\u8868\u7684\u5c31\u662f\u673a\u6784\u540d\u3002<\/p>\n<h4>2.9 \u5173\u952e\u8bcd\u63d0\u53d6<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065955-689c37eb1bf0f.png\" alt=\"\" \/><\/p>\n<p>\u63d0\u53d6\u6307\u5b9a\u6570\u91cf\u7684\u5173\u952e\u8bcd&#xff0c;\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u63d0\u53d6\u7684\u5173\u952e\u8bcd\u5e76\u4e0d\u662f\u975e\u5e38\u51c6\u786e\u3002<\/p>\n<h4>2.10 \u81ea\u52a8\u6458\u8981<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065956-689c37ec33f66.png\" alt=\"\" \/><\/p>\n<p>\u63d0\u53d6\u6307\u5b9a\u6570\u91cf\u7684\u6458\u8981\u3002<\/p>\n<h4>2.11 \u62fc\u97f3\u8f6c\u5316<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065957-689c37ed0e1f1.png\" alt=\"\" \/><\/p>\n<p>HanLP\u4e0d\u4ec5\u652f\u6301\u57fa\u7840\u7684\u6c49\u5b57\u8f6c\u62fc\u97f3&#xff0c;\u8fd8\u652f\u6301\u58f0\u6bcd\u3001\u97f5\u6bcd\u3001\u97f3\u8c03\u3001\u97f3\u6807\u548c\u8f93\u5165\u6cd5\u9996\u5b57\u6bcd\u9996\u58f0\u6bcd\u529f\u80fd&#xff0c;HanLP\u80fd\u591f\u8bc6\u522b\u591a\u97f3\u5b57&#xff0c;\u4e5f\u80fd\u7ed9\u7e41\u4f53\u4e2d\u6587\u6ce8\u62fc\u97f3&#xff0c;\u6700\u91cd\u8981\u7684\u662f&#xff0c;HanLP\u91c7\u7528\u7684\u6a21\u5f0f\u5339\u914d\u5347\u7ea7\u5230AhoCorasickDoubleArrayTrie&#xff0c;\u6027\u80fd\u5927\u5e45\u63d0\u5347&#xff0c;\u80fd\u591f\u63d0\u4f9b\u6beb\u79d2\u7ea7\u7684\u54cd\u5e94\u901f\u5ea6&#xff01;<\/p>\n<p>\u4f7f\u7528\u8d77\u6765\u611f\u89c9\u6bd4pinyin4j\u8fd9\u6837\u7684\u5de5\u5177\u5305\u66f4\u597d\u7528\u3002<\/p>\n<h4>2.12 \u7b80\u7e41\u8f6c\u6362<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065958-689c37eec27f0.png\" alt=\"\" \/><\/p>\n<p>HanLP\u80fd\u591f\u8bc6\u522b\u7b80\u7e41\u5206\u6b67\u8bcd&#xff0c;\u6bd4\u5982\u6253\u5370\u673a&#061;\u5370\u8868\u6a5f\u3002\u8bb8\u591a\u7b80\u7e41\u8f6c\u6362\u5de5\u5177\u4e0d\u80fd\u533a\u5206\u201c\u4ee5\u540e\u201d\u201c\u7687\u540e\u201d\u4e2d\u7684\u4e24\u4e2a\u201c\u540e\u201d\u5b57&#xff0c;HanLP\u53ef\u4ee5\u3002<\/p>\n<p>\u7b80\u7e41\u8f6c\u5316\u7528\u8d77\u6765\u5c31\u662f\u723d&#xff01;<\/p>\n<h4>2.13 \u6587\u672c\u63a8\u8350<\/h4>\n<p>\u5728\u641c\u7d22\u5f15\u64ce\u7684\u8f93\u5165\u6846\u4e2d&#xff0c;\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u8bcd&#xff0c;\u641c\u7d22\u5f15\u64ce\u4f1a\u8054\u60f3\u51fa\u6700\u5408\u9002\u7684\u641c\u7d22\u8bcd&#xff0c;HanLP\u5b9e\u73b0\u4e86\u7c7b\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065959-689c37ef95177.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e2a\u529f\u80fd\u5bf9\u4e8e\u8bed\u4e49\u7684\u641c\u7d22&#xff0c;\u63d0\u4f9b\u4e86\u53ef\u80fd\u3002\u5f88\u8d5e&#xff01;<\/p>\n<h4>2.14 \u5176\u4ed6<\/h4>\n<p>\u4e0a\u976213\u79cd\u5bf9\u4e8e\u8bcd\u8bed\u7684\u5904\u7406\u65b9\u6cd5&#xff0c;\u90fd\u662f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7684\u3002\u4f46\u662f\u8fd8\u6709\u4e00\u4e9b\u662f\u9700\u8981\u989d\u5916\u7684\u8bcd\u5178\u548c\u6a21\u578b\u7684<\/p>\n<p>\u5b98\u65b9\u63d0\u4f9b\u7684data.zip&#xff1a;https:\/\/file.hankcs.com\/hanlp\/data-for-1.7.5.zip<\/p>\n<ul>\n<li>NLP\u5206\u8bcd<\/li>\n<li>CRF\u5206\u8bcd<\/li>\n<li>\u8bed\u4e49\u8ddd\u79bb<\/li>\n<li>\u4f9d\u5b58\u53e5\u6cd5\u5206\u6790<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u90fd\u662f\u5728\u6848\u4f8b\u4e2d\u90fd\u9700\u8981\u4f60\u7528\u989d\u5916\u6a21\u578b\u6216\u8bcd\u5178\u3002\u5c0f\u5199\u5728\u603b\u7ed3\u65f6&#xff0c;\u5bf9\u5e94\u7684\u5305\u8fd8\u6ca1\u6709\u4e0b\u8f7d\u4e0b\u6765\u3002\u6682\u65f6\u5c31\u4e0d\u505a\u6d4b\u8bd5\u4e86\u3002<\/p>\n<h3>03 \u81ea\u5b9a\u4e49\u8bcd\u5178<\/h3>\n<p>\u81ea\u5b9a\u4e49\u8bcd\u5178\u4e3a\u4ec0\u4e48\u8981\u5355\u72ec\u9886\u51fa\u6765\u8bb2\u5462&#xff1f;\u56e0\u4e3a\u5728\u6211\u4eec\u7684\u4e1a\u52a1\u5f00\u53d1\u4e2d&#xff0c;\u53ef\u80fd\u5206\u8bcd\u7684\u6548\u679c\u5e76\u4e0d\u7406\u60f3&#xff0c;\u9700\u8981\u5b9a\u5236\u81ea\u5df1\u7684\u8bcd\u5e93&#xff0c;\u7d22\u5f15\u66f4\u52a0\u5e38\u7528\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e6575767670908<\/p>\n<p>\u6211\u4eec\u9700\u8981\u5206\u51fa\u5c0f\u7c73su7\u30012025\u6b3e\u7b49\u8bcd\u3002\u6211\u4eec\u5206\u522b\u770b\u770b\u7528\u5b57\u5178\u548c\u4e0d\u7528\u5b57\u5178\u7684\u6548\u679c\u3002<\/p>\n<h4>3.1 \u4e0d\u7528\u5b57\u5178<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813070000-689c37f0a1113.png\" alt=\"\" \/><\/p>\n<p>\u9ed8\u8ba4\u7684\u8bcd\u5178\u4f1a\u8bb2su\u30017\u4ee5\u53ca2025\u548c\u6b3e\u5206\u5f00\u3002\u8fd9\u6837\u660e\u663e\u4e0d\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u4e1a\u52a1\u573a\u666f\u3002<\/p>\n<p>\u4f7f\u7528\u5b9a\u5236\u8bcd\u5178\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u6216\u8005\u52a8\u6001\u6dfb\u52a0\u7684\u65b9\u5f0f\u5b9e\u73b0\u3002<\/p>\n<h4>3.2 \u52a8\u6001\u589e\u5220\u5b9a\u5236\u8bcd\u5178<\/h4>\n<p>\u52a8\u6001\u589e\u5220\u7684\u65b9\u6cd5\u4e3b\u8981\u7531com.hankcs.hanlp.dictionary.CustomDictionary\u7684\u9759\u6001\u65b9\u6cd5\u63d0\u4f9b&#xff1a;<\/p>\n<ul>\n<li>add()&#xff1a;\u589e\u52a0\u4e34\u65f6\u8bcd&#xff0c;\u4e0d\u4f1a\u6301\u4e45\u5316\u5230\u8bcd\u5178<\/li>\n<li>insert()&#xff1a;\u8986\u76d6\u63d2\u5165\u8bcd\u5e93&#xff0c;\u4f1a\u6301\u4e45\u5316\u5230\u8bcd\u5178<\/li>\n<li>remove()&#xff1a;\u5220\u9664\u7f13\u5b58\u4e2d\u8bcd\u5178\u7684\u8bcd&#xff0c;\u4e0d\u4f1a\u6301\u4e45\u5316\u5230\u8bcd\u5e93<\/li>\n<li>reload()&#xff1a;\u91cd\u65b0\u52a0\u8f7d\u8bcd\u5e93<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u6211\u4eec\u6f14\u793a\u4e00\u4e0badd()\u5373\u53ef&#xff0c;\u5176\u4ed6\u7684\u6309\u9700\u4f7f\u7528\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813070001-689c37f12b4c2.png\" alt=\"\" \/><\/p>\n<p>\u6211\u4eec\u52a8\u6001\u6dfb\u52a0\u4e86\u4e34\u65f6\u8bcd&#xff0c;\u53d1\u73b0\u90e8\u5206\u5df2\u7ecf\u751f\u6548\u4e86&#xff0c;\u4f46\u662f\u5e74\u6b3e\u5374\u6ca1\u6709\u751f\u6548\u3002\u8fd9\u6837\u5e94\u8be5\u662f\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6211\u8fd8\u6d4b\u8bd5\u5176\u4ed6\u5206\u8bcd\u5de5\u5177&#xff0c;\u4e5f\u4f1a\u9047\u5230\u540c\u6837\u7684\u95ee\u9898\u3002\u6211\u4eec\u770b\u770b\u5b98\u65b9\u7684\u89e3\u91ca&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2025-08-13rreixt3mauy.png\" alt=\"\" \/><\/p>\n<p>\u5b98\u65b9\u5df2\u7ecf\u8bf4\u660e&#xff1a;<\/p>\n<p>HanLP\u575a\u6301\u7684\u662f\u4ee5\u7edf\u8ba1\u4e3a\u4e3b&#xff0c;\u89c4\u5219\u8bcd\u5178\u4e3a\u8f85\u7684\u601d\u8def&#xff0c; \u7b97\u6cd5\u4e0d\u4fdd\u8bc1\u8bcd\u5178\u4e2d\u7684\u8bcd\u8bed\u4e00\u5b9a\u5206\u51fa\u6765&#xff0c;\u4e16\u754c\u4e0a\u4e0d\u5b58\u5728\u8fd9\u6837\u7684\u7b97\u6cd5\u3002<\/p>\n<p>\u5f53\u7136\u5b98\u65b9\u4e5f\u7ed9\u51fa\u89e3\u51b3\u65b9\u6848&#xff1a;\u5728v1.3.5\u4e4b\u540e&#xff0c;\u901a\u8fc7com.hankcs.hanlp.seg.Segment#enableCustomDictionaryForcing\u53ef\u4ee5\u624b\u52a8\u5f00\u542f\u3002<\/p>\n<p>\u6211\u4eec\u7ee7\u7eed\u6539\u9020&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2025-08-13zzl444amwfr.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u3002<\/p>\n<h4>3.3 \u914d\u7f6e\u8bcd\u5178\u6587\u4ef6<\/h4>\n<p>\u914d\u7f6e\u8bcd\u5178\u6587\u4ef6\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\u76f4\u63a5\u6307\u5b9a\u8bcd\u5178\u8def\u5f84<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p>**\u76f4\u63a5\u6307\u5b9a\u8bcd\u5178\u8def\u5f84 **<\/p>\n<p><img decoding=\"async\" src=\"2025-08-1314nqkjs2h1a.png\" alt=\"\" \/><\/p>\n<p>\u5173\u952e\u4ee3\u7801\u5757&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2025-08-13enbmawpipy1.png\" alt=\"\" \/><\/p>\n<p>\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6&#xff0c;\u9700\u8981\u5728classpath\u4e0b\u5f15\u5165hanlp.properties&#xff0c;\u7136\u540e\u5728\u5f15\u5165\u7684\u914d\u7f6e\u4e2d\u914d\u7f6e\u5bf9\u5e94\u7684\u5730\u5740\u5373\u53ef&#xff1a;<\/p>\n<p>CustomDictionaryPath&#061;dictionary\/ext.txt<br \/>\nIOAdapter&#061;com.hankcs.hanlp.corpus.io.ResourceIOAdapter<\/p>\n<p>\u8fd9\u91cc\u4e00\u5b9a\u8981\u6307\u5b9aIOAdapter,\u5426\u5219\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u76f8\u540c\u7684\u6548\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-08-13k04kcliw4ud.png\" alt=\"\" \/><\/p>\n<p>portable\u7248\u672c\u672c\u8eab\u5c31\u662f\u4fbf\u643a\u7248&#xff0c;\u867d\u7136\u652f\u6301hanlp.properties\u914d\u7f6e&#xff0c;\u660e\u663e\u9700\u8981\u52a0\u8f7d\u7684\u4e1c\u897f\u7684\u5c31\u4f1a\u53d8\u591a\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-08-13fwmmdyy31xo.png\" alt=\"\" \/><\/p>\n<p>\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u914d\u7f6e\u7c7b&#xff1a;<\/p>\n<p>com.hankcs.hanlp.HanLP.Config<\/p>\n<h4>3.4 \u505c\u7528\u8bcd\u7684\u4f7f\u7528<\/h4>\n<p>\u505c\u7528\u8bcd\u7684\u4f7f\u7528\u548c\u81ea\u5b9a\u4e49\u8bcd\u5178\u5927\u81f4\u4e00\u6837&#xff0c;\u4f46\u662f\u7528\u6cd5\u4e0a\u7a0d\u6709\u4e0d\u540c\u3002\u7c7b\u4f3cIK\u5206\u8bcd\u5668\u662f\u9ed8\u8ba4\u542f\u7528\u505c\u7528\u8bcd\u7684&#xff0c;\u53ea\u8981\u914d\u7f6e\u505c\u7528\u8bcd&#xff0c;\u5206\u8bcd\u7ed3\u679c\u5c31\u4e0d\u4f1a\u5c55\u793a\u3002<\/p>\n<p>\u800cHanLP\u9ed8\u8ba4\u662f\u4e0d\u542f\u7528\u7684\u3002\u9700\u8981\u624b\u52a8\u8c03\u7528\u65b9\u6cd5&#xff1a;<\/p>\n<p><span class=\"token class-name\">CoreStopWordDictionary<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">apply<\/span><span class=\"token punctuation\">(<\/span>\u5206\u8bcd\u7ed3\u679c<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"2025-08-13d0jq304zz1x.png\" alt=\"\" \/><\/p>\n<h3>04 \u5c0f\u7ed3<\/h3>\n<p>HanLP 1.x \u4f7f\u7528\u8d77\u6765\u8fd8\u662f\u975e\u5e38\u65b9\u4fbf\u7684&#xff0c;\u8db3\u591f\u6ee1\u8db3\u65e5\u5e38\u7684\u4e1a\u52a1\u9700\u6c42\u3002\u5b83\u4e0d\u4ec5\u80fd\u6ee1\u8db3\u57fa\u7840\u7684\u5206\u8bcd&#xff0c;\u8fd8\u6269\u5c55\u4e86\u5927\u6a21\u578b\u76f8\u5173\u7684\u529f\u80fd\u3002\u4e2d\u6587\u5206\u8bcd\u4f60\u4f1a\u9009\u7528\u5b83\u4e48&#xff1f;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb288\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u63d0\u53d6\u6307\u5b9a\u6570\u91cf\u7684\u6458\u8981\u3002\u81ea\u5b9a\u4e49\u8bcd\u5178\u4e3a\u4ec0\u4e48\u8981\u5355\u72ec\u9886\u51fa\u6765\u8bb2\u5462\uff1f\u56e0\u4e3a\u5728\u6211\u4eec\u7684\u4e1a\u52a1\u5f00\u53d1\u4e2d\uff0c\u53ef\u80fd\u5206\u8bcd\u7684\u6548\u679c\u5e76\u4e0d\u7406\u60f3\uff0c\u9700\u8981\u5b9a\u5236\u81ea\u5df1\u7684\u8bcd\u5e93\uff0c\u7d22\u5f15\u66f4\u52a0\u5e38\u7528\u3002\u4f8b\u5982\uff1a\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e6575767670908\u6211\u4eec\u9700\u8981\u5206\u51fa\u5c0f\u7c73su72025\u6b3e\u7b49\u8bcd\u3002\u6211\u4eec\u5206\u522b\u770b\u770b\u7528\u5b57\u5178\u548c\u4e0d\u7528\u5b57\u5178\u7684\u6548\u679c\u3002<\/p>\n","protected":false},"author":2,"featured_media":55003,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5639,2068,5640,5638],"topic":[],"class_list":["post-55023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-hanlp","tag-nlp","tag-5640","tag-5638"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \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\/55023.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb288\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u63d0\u53d6\u6307\u5b9a\u6570\u91cf\u7684\u6458\u8981\u3002\u81ea\u5b9a\u4e49\u8bcd\u5178\u4e3a\u4ec0\u4e48\u8981\u5355\u72ec\u9886\u51fa\u6765\u8bb2\u5462\uff1f\u56e0\u4e3a\u5728\u6211\u4eec\u7684\u4e1a\u52a1\u5f00\u53d1\u4e2d\uff0c\u53ef\u80fd\u5206\u8bcd\u7684\u6548\u679c\u5e76\u4e0d\u7406\u60f3\uff0c\u9700\u8981\u5b9a\u5236\u81ea\u5df1\u7684\u8bcd\u5e93\uff0c\u7d22\u5f15\u66f4\u52a0\u5e38\u7528\u3002\u4f8b\u5982\uff1a\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e6575767670908\u6211\u4eec\u9700\u8981\u5206\u51fa\u5c0f\u7c73su72025\u6b3e\u7b49\u8bcd\u3002\u6211\u4eec\u5206\u522b\u770b\u770b\u7528\u5b57\u5178\u548c\u4e0d\u7528\u5b57\u5178\u7684\u6548\u679c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55023.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T07:00:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065947-689c37e385b4b.png\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55023.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55023.html\",\"name\":\"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T07:00:02+00:00\",\"dateModified\":\"2025-08-13T07:00:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55023.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55023.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55023.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751\"}]},{\"@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":"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \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\/55023.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb288\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u63d0\u53d6\u6307\u5b9a\u6570\u91cf\u7684\u6458\u8981\u3002\u81ea\u5b9a\u4e49\u8bcd\u5178\u4e3a\u4ec0\u4e48\u8981\u5355\u72ec\u9886\u51fa\u6765\u8bb2\u5462\uff1f\u56e0\u4e3a\u5728\u6211\u4eec\u7684\u4e1a\u52a1\u5f00\u53d1\u4e2d\uff0c\u53ef\u80fd\u5206\u8bcd\u7684\u6548\u679c\u5e76\u4e0d\u7406\u60f3\uff0c\u9700\u8981\u5b9a\u5236\u81ea\u5df1\u7684\u8bcd\u5e93\uff0c\u7d22\u5f15\u66f4\u52a0\u5e38\u7528\u3002\u4f8b\u5982\uff1a\u5c0f\u7c73su7\u7279\u65af\u62c9modelY\u6bd4\u4e9a042025\u6b3e6575767670908\u6211\u4eec\u9700\u8981\u5206\u51fa\u5c0f\u7c73su72025\u6b3e\u7b49\u8bcd\u3002\u6211\u4eec\u5206\u522b\u770b\u770b\u7528\u5b57\u5178\u548c\u4e0d\u7528\u5b57\u5178\u7684\u6548\u679c\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/55023.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T07:00:02+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813065947-689c37e385b4b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55023.html","url":"https:\/\/www.wsisp.com\/helps\/55023.html","name":"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T07:00:02+00:00","dateModified":"2025-08-13T07:00:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55023.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55023.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55023.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6df1\u5165\u7406\u89e3HanLP1.x\uff0c\u586b\u5e73\u53ef\u80fd\u9047\u5230\u7684\u5751"}]},{"@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\/55023","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=55023"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55023\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/55003"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55023"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}