{"id":1082653,"date":"2025-01-08T12:50:53","date_gmt":"2025-01-08T04:50:53","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1082653.html"},"modified":"2025-01-08T12:50:55","modified_gmt":"2025-01-08T04:50:55","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e8%af%8d%e4%ba%91-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1082653.html","title":{"rendered":"python\u5982\u4f55\u5c06\u6570\u636e\u5236\u6210\u8bcd\u4e91"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184103\/1d01a83d-5642-4eca-9580-4b154cd708ca.webp\" alt=\"python\u5982\u4f55\u5c06\u6570\u636e\u5236\u6210\u8bcd\u4e91\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u5c06\u6570\u636e\u5236\u6210\u8bcd\u4e91<\/strong>\u6d89\u53ca\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u548c\u5de5\u5177\u6765\u5c06\u6587\u672c\u6570\u636e\u53ef\u89c6\u5316\u4e3a\u8bcd\u4e91\u3002<strong>\u9996\u5148\uff0c\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u7136\u540e\u6e05\u7406\u6570\u636e\u3001\u751f\u6210\u8bcd\u4e91\u56fe\u50cf\u3001\u8c03\u6574\u8bcd\u4e91\u53c2\u6570\u3001\u4fdd\u5b58\u8bcd\u4e91\u56fe\u50cf<\/strong>\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u7684\u6bcf\u4e00\u6b65\uff0c\u5e76\u5177\u4f53\u5c55\u5f00\u5982\u4f55\u751f\u6210\u8bcd\u4e91\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u51c6\u5907\u6587\u672c\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u8bcd\u4e91\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u51c6\u5907\u597d\u6587\u672c\u6570\u636e\u3002\u8fd9\u53ef\u4ee5\u662f\u4e00\u672c\u4e66\u3001\u4e00\u7bc7\u6587\u7ae0\u3001\u591a\u4e2a\u6587\u6863\u7684\u96c6\u5408\uff0c\u751a\u81f3\u662f\u793e\u4ea4\u5a92\u4f53\u8bc4\u8bba\u3002\u6587\u672c\u6570\u636e\u7684\u51c6\u5907\u5de5\u4f5c\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6\u6587\u4ef6\u3001\u4ece\u7f51\u9875\u6293\u53d6\u6570\u636e\u3001\u6216\u4eceAPI\u83b7\u53d6\u6570\u636e\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5177\u4f53\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bfb\u53d6\u672c\u5730\u6587\u4ef6<\/strong>\uff1a\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570\u8bfb\u53d6\u672c\u5730\u6587\u4ef6\uff08\u5982txt\u6587\u4ef6\uff09\u4e2d\u7684\u6587\u672c\u6570\u636e\u3002<\/li>\n<li><strong>\u6293\u53d6\u7f51\u9875\u6570\u636e<\/strong>\uff1a\u4f7f\u7528BeautifulSoup\u6216Scrapy\u7b49\u5e93\u4ece\u7f51\u9875\u4e0a\u6293\u53d6\u6587\u672c\u6570\u636e\u3002<\/li>\n<li><strong>API\u83b7\u53d6\u6570\u636e<\/strong>\uff1a\u901a\u8fc7\u8c03\u7528API\uff08\u5982Twitter API\uff09\u83b7\u53d6\u6587\u672c\u6570\u636e\u3002<\/li>\n<\/ol>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u672c\u5730\u6587\u4ef6<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    text_data = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u6e05\u7406\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u8bcd\u4e91\u4e4b\u524d\uff0c\u9700\u8981\u5bf9\u6587\u672c\u6570\u636e\u8fdb\u884c\u6e05\u7406\u3002\u6e05\u7406\u6570\u636e\u7684\u76ee\u7684\u662f\u53bb\u9664\u65e0\u5173\u8bcd\u8bed\u548c\u7b26\u53f7\uff0c\u4f7f\u751f\u6210\u7684\u8bcd\u4e91\u66f4\u52a0\u6709\u610f\u4e49\u548c\u7f8e\u89c2\u3002\u6e05\u7406\u6570\u636e\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/strong>\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6216\u5b57\u7b26\u4e32\u65b9\u6cd5\u53bb\u9664\u6587\u672c\u4e2d\u7684\u6807\u70b9\u7b26\u53f7\u3002<\/li>\n<li><strong>\u8f6c\u6362\u4e3a\u5c0f\u5199<\/strong>\uff1a\u5c06\u6240\u6709\u6587\u672c\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u4ee5\u907f\u514d\u5927\u5c0f\u5199\u4e0d\u540c\u7684\u540c\u4e00\u4e2a\u8bcd\u88ab\u89c6\u4e3a\u4e0d\u540c\u7684\u8bcd\u3002<\/li>\n<li><strong>\u53bb\u9664\u505c\u7528\u8bcd<\/strong>\uff1a\u4f7f\u7528NLTK\u6216\u5176\u4ed6\u5e93\u53bb\u9664\u5e38\u89c1\u7684\u505c\u7528\u8bcd\uff08\u5982\u201cthe\u201d\u3001\u201cand\u201d\u7b49\uff09\u3002<\/li>\n<li><strong>\u8bcd\u5f62\u5f52\u5e76<\/strong>\uff1a\u5c06\u4e0d\u540c\u5f62\u5f0f\u7684\u540c\u4e00\u4e2a\u8bcd\u5f52\u5e76\u4e3a\u4e00\u4e2a\u8bcd\uff08\u5982\u201crunning\u201d\u548c\u201crun\u201d\uff09\u3002<\/li>\n<\/ol>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>import nltk<\/p>\n<p>from nltk.corpus import stopwords<\/p>\n<h2><strong>\u4e0b\u8f7d\u505c\u7528\u8bcd\u5217\u8868<\/strong><\/h2>\n<p>nltk.download(&#39;stopwords&#39;)<\/p>\n<h2><strong>\u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/strong><\/h2>\n<p>text_data = re.sub(r&#39;[^\\w\\s]&#39;, &#39;&#39;, text_data)<\/p>\n<h2><strong>\u8f6c\u6362\u4e3a\u5c0f\u5199<\/strong><\/h2>\n<p>text_data = text_data.lower()<\/p>\n<h2><strong>\u53bb\u9664\u505c\u7528\u8bcd<\/strong><\/h2>\n<p>stop_words = set(stopwords.words(&#39;english&#39;))<\/p>\n<p>cleaned_data = &#39; &#39;.join([word for word in text_data.split() if word not in stop_words])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u751f\u6210\u8bcd\u4e91\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u6211\u4eec\u5c06\u4f7f\u7528WordCloud\u5e93\u751f\u6210\u8bcd\u4e91\u56fe\u50cf\u3002WordCloud\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u53c2\u6570\u6765\u5b9a\u5236\u8bcd\u4e91\u7684\u5916\u89c2\uff0c\u5305\u62ec\u5b57\u4f53\u3001\u989c\u8272\u3001\u80cc\u666f\u989c\u8272\u7b49\u3002\u4ee5\u4e0b\u662f\u751f\u6210\u8bcd\u4e91\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5WordCloud\u5e93<\/strong>\uff1a\u4f7f\u7528pip\u5b89\u88c5WordCloud\u5e93\u3002<\/li>\n<li><strong>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/strong>\uff1a\u4f7f\u7528WordCloud\u7c7b\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\uff0c\u5e76\u4f20\u5165\u6e05\u7406\u540e\u7684\u6587\u672c\u6570\u636e\u3002<\/li>\n<li><strong>\u663e\u793a\u8bcd\u4e91\u56fe\u50cf<\/strong>\uff1a\u4f7f\u7528matplotlib\u5e93\u663e\u793a\u751f\u6210\u7684\u8bcd\u4e91\u56fe\u50cf\u3002<\/li>\n<\/ol>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u5b89\u88c5WordCloud\u5e93<\/strong><\/h2>\n<h2><strong>pip install wordcloud<\/strong><\/h2>\n<h2><strong>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/strong><\/h2>\n<p>wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(cleaned_data)<\/p>\n<h2><strong>\u663e\u793a\u8bcd\u4e91\u56fe\u50cf<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 5))<\/p>\n<p>plt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)<\/p>\n<p>plt.axis(&#39;off&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u8c03\u6574\u8bcd\u4e91\u53c2\u6570<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u8bcd\u4e91\u56fe\u50cf\u66f4\u52a0\u7f8e\u89c2\u548c\u6709\u610f\u4e49\uff0c\u6211\u4eec\u53ef\u4ee5\u8c03\u6574WordCloud\u7c7b\u7684\u53c2\u6570\u3002\u5e38\u89c1\u7684\u53c2\u6570\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>width\u548cheight<\/strong>\uff1a\u8bbe\u7f6e\u8bcd\u4e91\u56fe\u50cf\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u3002<\/li>\n<li><strong>background_color<\/strong>\uff1a\u8bbe\u7f6e\u8bcd\u4e91\u56fe\u50cf\u7684\u80cc\u666f\u989c\u8272\u3002<\/li>\n<li><strong>max_words<\/strong>\uff1a\u8bbe\u7f6e\u8bcd\u4e91\u56fe\u50cf\u4e2d\u663e\u793a\u7684\u6700\u5927\u8bcd\u6570\u3002<\/li>\n<li><strong>colormap<\/strong>\uff1a\u8bbe\u7f6e\u8bcd\u4e91\u56fe\u50cf\u7684\u989c\u8272\u6620\u5c04\u3002<\/li>\n<li><strong>mask<\/strong>\uff1a\u4f7f\u7528\u56fe\u50cf\u4f5c\u4e3a\u8bcd\u4e91\u7684\u5f62\u72b6\u6a21\u677f\u3002<\/li>\n<\/ol>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\uff0c\u8c03\u6574\u53c2\u6570<\/p>\n<p>wordcloud = WordCloud(width=800, height=400, background_color=&#39;black&#39;, max_words=200, colormap=&#39;viridis&#39;).generate(cleaned_data)<\/p>\n<h2><strong>\u663e\u793a\u8bcd\u4e91\u56fe\u50cf<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 5))<\/p>\n<p>plt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)<\/p>\n<p>plt.axis(&#39;off&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u4fdd\u5b58\u8bcd\u4e91\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u751f\u6210\u7684\u8bcd\u4e91\u56fe\u50cf\u53ef\u4ee5\u4fdd\u5b58\u5230\u672c\u5730\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u6216\u5206\u4eab\u3002\u4f7f\u7528WordCloud\u5bf9\u8c61\u7684<code>to_file<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u8bcd\u4e91\u56fe\u50cf\u4fdd\u5b58\u4e3aPNG\u6216JPEG\u683c\u5f0f\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u8bcd\u4e91\u56fe\u50cf<\/p>\n<p>wordcloud.to_file(&#39;wordcloud.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3\u4e00\u4e0b\uff0c\u4f7f\u7528Python\u751f\u6210\u8bcd\u4e91\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u6e05\u7406\u6570\u636e\u3001\u751f\u6210\u8bcd\u4e91\u56fe\u50cf\u3001\u8c03\u6574\u8bcd\u4e91\u53c2\u6570\u548c\u4fdd\u5b58\u8bcd\u4e91\u56fe\u50cf\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6587\u672c\u6570\u636e\u53ef\u89c6\u5316\u4e3a\u7f8e\u89c2\u4e14\u6709\u610f\u4e49\u7684\u8bcd\u4e91\u56fe\u50cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u8bcd\u4e91\u5e93\u6765\u751f\u6210\u8bcd\u4e91\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u51e0\u4e2a\u6d41\u884c\u7684\u5e93\u53ef\u4ee5\u7528\u6765\u751f\u6210\u8bcd\u4e91\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662f<code>wordcloud<\/code>\u5e93\u3002\u8fd9\u4e2a\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u51e0\u884c\u4ee3\u7801\u5c31\u751f\u6210\u7f8e\u89c2\u7684\u8bcd\u4e91\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408<code>matplotlib<\/code>\u5e93\u8fdb\u884c\u8bcd\u4e91\u7684\u5c55\u793a\u3002\u9009\u62e9\u9002\u5408\u7684\u5e93\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u7684\u529f\u80fd\u3001\u6613\u7528\u6027\u548c\u53ef\u5b9a\u5236\u6027\u3002<\/p>\n<p><strong>\u751f\u6210\u8bcd\u4e91\u9700\u8981\u51c6\u5907\u54ea\u4e9b\u6570\u636e\uff1f<\/strong><br \/>\u5728\u5236\u4f5c\u8bcd\u4e91\u4e4b\u524d\uff0c\u9700\u8981\u6709\u4e00\u6bb5\u6587\u672c\u6570\u636e\u3002\u6587\u672c\u53ef\u4ee5\u6765\u81ea\u4e8e\u591a\u79cd\u6765\u6e90\uff0c\u5982\u6587\u7ae0\u3001\u8bc4\u8bba\u3001\u793e\u4ea4\u5a92\u4f53\u5e16\u5b50\u7b49\u3002\u6570\u636e\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4e5f\u53ef\u4ee5\u662f\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u96c6\u5408\u3002\u4e3a\u4e86\u83b7\u5f97\u66f4\u597d\u7684\u6548\u679c\uff0c\u5efa\u8bae\u5904\u7406\u6587\u672c\u6570\u636e\uff0c\u53bb\u9664\u5e38\u89c1\u7684\u505c\u7528\u8bcd\u3001\u6807\u70b9\u7b26\u53f7\u4ee5\u53ca\u8fdb\u884c\u8bcd\u5e72\u5316\u6216\u8bcd\u5f62\u8fd8\u539f\uff0c\u4ee5\u7a81\u51fa\u5173\u952e\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u6574\u8bcd\u4e91\u7684\u5916\u89c2\u4ee5\u4f7f\u5176\u66f4\u5177\u5438\u5f15\u529b\uff1f<\/strong><br \/>\u751f\u6210\u8bcd\u4e91\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u53c2\u6570\u6765\u6539\u53d8\u5176\u5916\u89c2\u3002\u53ef\u4ee5\u8bbe\u7f6e\u5b57\u4f53\u3001\u989c\u8272\u3001\u80cc\u666f\u8272\u3001\u5f62\u72b6\u7b49\u3002\u4f8b\u5982\uff0c\u901a\u8fc7<code>colormap<\/code>\u53c2\u6570\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u914d\u8272\u65b9\u6848\uff0c\u800c<code>max_words<\/code>\u53c2\u6570\u5219\u53ef\u4ee5\u8bbe\u7f6e\u8bcd\u4e91\u4e2d\u663e\u793a\u7684\u6700\u591a\u5355\u8bcd\u6570\u91cf\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>mask<\/code>\u53c2\u6570\u53ef\u4ee5\u521b\u5efa\u81ea\u5b9a\u4e49\u5f62\u72b6\u7684\u8bcd\u4e91\uff0c\u4f7f\u5176\u66f4\u52a0\u4e2a\u6027\u5316\u548c\u5438\u5f15\u4eba\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u8bcd\u4e91\u751f\u6210\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u751f\u6210\u8bcd\u4e91\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u9519\u8bef\uff0c\u5982\u6570\u636e\u683c\u5f0f\u4e0d\u6b63\u786e\u6216\u7f3a\u5c11\u5fc5\u8981\u7684\u5e93\u3002\u786e\u4fdd\u5b89\u88c5\u4e86\u6240\u9700\u7684\u5e93\uff0c\u5e76\u68c0\u67e5\u8f93\u5165\u6570\u636e\u7684\u683c\u5f0f\u662f\u5426\u7b26\u5408\u8981\u6c42\u3002\u5982\u679c\u4ecd\u7136\u51fa\u73b0\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u5e93\u7684\u6587\u6863\u6216\u5728\u793e\u533a\u8bba\u575b\u5bfb\u6c42\u5e2e\u52a9\uff0c\u901a\u5e38\u4f1a\u6709\u89e3\u51b3\u65b9\u6848\u6216\u6700\u4f73\u5b9e\u8df5\u53ef\u4f9b\u53c2\u8003\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u5c06\u6570\u636e\u5236\u6210\u8bcd\u4e91\u6d89\u53ca\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u548c\u5de5\u5177\u6765\u5c06\u6587\u672c\u6570\u636e\u53ef\u89c6\u5316\u4e3a\u8bcd\u4e91\u3002\u9996\u5148\uff0c\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u7136\u540e\u6e05\u7406\u6570\u636e [&hellip;]","protected":false},"author":3,"featured_media":1082660,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082653"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1082653"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082653\/revisions"}],"predecessor-version":[{"id":1082663,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082653\/revisions\/1082663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1082660"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1082653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1082653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1082653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}