{"id":1804,"date":"2025-01-18T07:57:00","date_gmt":"2025-01-17T23:57:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1804"},"modified":"2024-12-26T15:08:45","modified_gmt":"2024-12-26T07:08:45","slug":"%e7%a7%91%e6%8a%80%e8%82%a1%e9%a2%84%e6%b5%8b%e6%96%b0%e5%88%a9%e5%99%a8%ef%bc%9anlp%e6%83%85%e7%bb%aa%e5%88%86%e6%9e%90%e4%b8%8e%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e7%9a%84%e5%ae%8c%e7%be%8e","status":"publish","type":"post","link":"https:\/\/www.laoyulaoyu.com\/index.php\/2025\/01\/18\/%e7%a7%91%e6%8a%80%e8%82%a1%e9%a2%84%e6%b5%8b%e6%96%b0%e5%88%a9%e5%99%a8%ef%bc%9anlp%e6%83%85%e7%bb%aa%e5%88%86%e6%9e%90%e4%b8%8e%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e7%9a%84%e5%ae%8c%e7%be%8e\/","title":{"rendered":"\u79d1\u6280\u80a1\u9884\u6d4b\u65b0\u5229\u5668\uff1aNLP\u60c5\u7eea\u5206\u6790\u4e0e\u673a\u5668\u5b66\u4e60\u7684\u5b8c\u7f8e\u878d\u5408\uff08\u4e00\uff09"},"content":{"rendered":"\n<p>\u4f5c\u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/122502.png\" alt=\"\" class=\"wp-image-3559\"\/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u56e0\u5de5\u4f5c\u9700\u8981\uff0c\u6211\u6700\u8fd1\u6df1\u5165\u7814\u7a76\u4e86<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u5982\u4f55\u5c06 NLP \u60c5\u611f\u5206\u6790\u4e0e\u673a\u5668\u5b66\u4e60\u878d\u5408\u5e94\u7528\u4e8e\u79d1\u6280\u80a1\u6295\u8d44<\/mark>\u3002\u672c\u6587\u5c31\u662f\u548c\u5927\u5bb6\u5206\u4eab\u6211\u5229\u7528\u7279\u5b9a\u7b97\u6cd5\u5206\u6790\u793e\u4ea4\u5a92\u4f53\uff0c\u5e76\u7ed3\u5408\u80a1\u4ef7\u8d70\u52bf\uff0c\u7136\u540e\u901a\u8fc7\u673a\u5668\u5b66\u4e60\u6a21\u578b\u5224\u65ad\u5e02\u573a\u60c5\u7eea\uff0c\u6700\u7ec8\u5b9e\u73b0\u7cbe\u51c6\u9884\u6d4b\u79d1\u6280\u80a1\u98ce\u9669\u8d8b\u52bf\u7684\u4e00\u5957\u65b9\u6cd5\u3002\u5e0c\u671b\u60a8\u8bfb\u5b8c\u540e\u80fd\u638c\u63e1\u8fd9\u4e00\u7b56\u7565\uff0c\u8f7b\u677e\u4f5c\u51fa\u5bf9\u79d1\u6280\u80a1\u5e02\u6295\u8d44\u7684\u660e\u667a\u51b3\u7b56\u3002<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u672c\u6587\u7ed3\u6784\u8bf4\u660e<\/strong><\/h2>\n\n\n\n<p>\u591a\u9879\u7814\u7a76\u8868\u660e\uff0c\u8d22\u7ecf\u65b0\u95fb\u7684\u5934\u6761\uff0c\u5c24\u5176\u662f\u56f4\u7ed5\u516c\u53f8\u76c8\u5229\u60c5\u51b5\u548c\u65b0\u4ea7\u54c1\u53d1\u5e03\u7b49\u65b0\u95fb\u5934\u6761\uff0c\u4f1a\u76f4\u63a5\u5f71\u54cd\u5230\u80a1\u7968\u4ef7\u683c\u3002\u4f8b\u5982\uff0c\u91d1\u878d\u5e02\u573a\u7684\u60c5\u7eea\u5206\u6790\u8ba9\u5206\u6790\u5e08\u4eec\u901a\u8fc7\u76d1\u63a7\u6eda\u52a8\u7535\u89c6\uff08\u7f51\u7edc\uff09\u65b0\u95fb\u4e2d\u7684\u610f\u5916\u4e8b\u4ef6\u6216\u8d1f\u9762\u60c5\u7eea\uff0c\u53ca\u65e9\u53d1\u73b0\u6f5c\u5728\u98ce\u9669\u3002\u8fd9\u79cd\u79ef\u6781\u4e3b\u52a8\u7684\u65b9\u6cd5\u4f7f\u4ed6\u4eec\u80fd\u591f\u5728\u4e0d\u5229\u7684\u5e02\u573a\u53cd\u5e94\u53d1\u751f\u4e4b\u524d\u8c03\u6574\u51b3\u7b56\u7b56\u7565\u3002<\/p>\n\n\n\n<p>\u800c\u6700\u8fd1\u4e24\u5e74\u6765\uff0cML \u7b97\u6cd5\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5206\u6790\u8d22\u7ecf\u65b0\u95fb\u548c\u9884\u6d4b\u80a1\u7968\u4ef7\u503c\u3002NLP \u5de5\u5177\u4f3c\u4e4e\u53ef\u4ee5\u4e0e\u6709\u76d1\u7763\u7684 ML \u548c\u6df1\u5ea6\u5b66\u4e60 (DL) \u6280\u672f\u76f8\u7ed3\u5408\uff0c\u4ece\u800c\u5efa\u7acb\u4e00\u4e2a\u60c5\u611f\u5206\u6790\u6a21\u578b\uff0c\u8ba9\u6211\u4eec\u80fd\u591f\u4ece\u6587\u672c\u6570\u636e\u4e2d\u63d0\u53d6\u548c\u91cf\u5316\u4e3b\u89c2\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u7ed9\u5927\u5bb6\u770b\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u91d1\u878d\u754c\u5927\u540d\u9f0e\u9f0e\u7684\u7a46\u8fea\u6295\u8d44\uff08\u8bc4\u7ea7\uff09\u516c\u53f8\uff0c\u5728\u4eca\u5e7411\u6708\u63a8\u51fa\u4e86\u4e00\u4e2a\u300a\u5229\u7528 GenAI \u548c\u5b9e\u65f6\u65b0\u95fb\u60c5\u7eea\u4e3a\u516c\u53f8\u63d0\u4f9b\u652f\u6301\u300b\u7684\u65b0\u4ea7\u54c1\uff0c\u5176\u6536\u8d39\u4e0d\u83f2\u3002\u4ecb\u7ecd\u5730\u5740\u5982\u4e0b\uff1a<a href=\"https:\/\/www.moodys.com\/web\/en\/us\/insights\/digital-transformation\/the-power-of-news-sentiment-in-modern-financial-analysis.html\">https:\/\/www.moodys.com\/web\/en\/us\/insights\/digital-transformation\/the-power-of-news-sentiment-in-modern-financial-analysis.html<\/a><\/p>\n\n\n\n<p>\u6211\u5f00\u5c55\u7814\u7a76\u7684\u76ee\u7684\u662f\u63cf\u8ff0\u548c\u6bd4\u8f83\u7528\u4e8e\u80a1\u5e02\u9884\u6d4b\u7684\u5404\u79cd ML \u65b9\u6cd5\uff0c\u4ee5\u53ca\u5bf9\uff08\u7f51\u7edc\uff09\u6293\u53d6\u7684\u65b0\u95fb\u6807\u9898\u8fdb\u884c\u7684 NLP \u60c5\u611f\u5206\u6790\u3002\u7136\u540e\u5206\u6790\u51fa\u54ea\u4e9b\u96c6\u6210\u5f0f NLP ML \u65b9\u6cd5\u53ef\u4ee5\u4f5c\u4e3a\u80a1\u7968\u8868\u73b0\u7684\u9886\u5148\u6307\u6807\uff0c\u53ef\u7528\u4e8e\u6539\u8fdb\u4ea4\u6613\u7b56\u7565\u548c\u52a0\u5f3a\u6295\u8d44\u7ec4\u5408\u98ce\u9669\u7ba1\u7406\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u5c06\u514d\u8d39\u63d0\u4f9b\u6bd4\u5176\u66f4\u52a0\u5b8c\u6574\u7684\u4ee3\u7801\u7ea7\u89e3\u51b3\u65b9\u6848\uff0c\u9700\u8981\u7684\u4ec5\u4ec5\u662f\u5927\u5bb6\u8010\u5fc3\u8bfb\u5b8c\u8fd9\u4e2a\u7cfb\u5217\u3002\u7531\u4e8e\u6574\u7406\u51fa\u6765\u7684\u5185\u5bb9\u8f83\u591a\uff0c\u6211\u4e5f\u60f3\u5199\u5f97\u7ec6\u81f4\u4e00\u4e9b\uff0c\u8ba9\u6211\u7684\u8bfb\u8005\u80fd\u5faa\u5e8f\u6e10\u8fdb\u7684\u9010\u6b65\u6d88\u5316\uff0c\u6240\u4ee5\u672c\u6587\u5927\u6982\u4f1a\u5206\u4e09\u7bc7\u5199\u5b8c\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a<\/p>\n\n\n\n<p>\u672c\u7bc7\u5b8c\u6210\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5404\u79cd\u8bf4\u660e<\/li>\n\n\n\n<li>\u5468\u6807\u91cf\u60c5\u7eea\u8bc4\u5206\uff08\u7528\u4f8b\uff1aNVDA \u80a1\u7968\uff09<\/li>\n\n\n\n<li>\u5468\u77e2\u91cf\u60c5\u7eea\u8bc4\u5206\uff08\u7528\u4f8b\uff1aAMZN \u80a1\u7968\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u7b2c\u4e8c\u7bc7\u5b8c\u6210\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u8fc7\u6293\u53d6\u8fd1\u671f\u65b0\u95fb\u83b7\u5f97\u7684\u77e2\u91cf\u60c5\u611f\u8bc4\u5206\uff08\u7528\u4f8b\uff1aAMZN \u80a1\u7968\uff09<\/li>\n\n\n\n<li>11 \u79cd\u79d1\u6280\u80a1\u7684\u6bcf\u65e5\u5e73\u5747\u77e2\u91cf\u60c5\u7eea\u5f97\u5206<\/li>\n\n\n\n<li>\u5982\u4f55\u5229\u7528\u60c5\u7eea\u5206\u6790\u505a\u51fa\u660e\u667a\u7684\u6295\u8d44\u51b3\u7b56<\/li>\n<\/ul>\n\n\n\n<p>\u6700\u7ec8\u5b8c\u6210\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u80a1\u7968\u4ef7\u683c\u9884\u6d4b\uff08\u7528\u4f8b\uff1aGRU \u80a1\u7968\uff09<\/li>\n\n\n\n<li>\u4f7f\u7528 MLBC \u8fdb\u884c\u5e02\u573a\u60c5\u7eea\u5206\u6790\u4e0e\u9884\u6d4b \uff08\u7528\u4f8b\uff1a\u9053\u743c\u65af\u6307\u6570\uff09<\/li>\n\n\n\n<li>\u5168\u6587\u7ec8\u7ed3\u56de\u987e<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u672c\u9879\u76ee\u4e2d\u4f1a\u7528\u5230\u7684\u5e93\u548c\u5de5\u5177\u8bf4\u660e<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pypi.org\/project\/beautifulsoup4\/\">beautifulsoup4<\/a>\uff1a\u4e00\u4e2a\u53ef\u4ee5\u8f7b\u677e\u4ece\u7f51\u9875\u4e2d\u6293\u53d6\u4fe1\u606f\u7684\u5e93\u3002\u5b83\u4f4d\u4e8e HTML \u6216 XML \u89e3\u6790\u5668\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u7528\u4e8e\u8fed\u4ee3\u3001\u641c\u7d22\u548c\u4fee\u6539\u89e3\u6790\u6811\u7684 Pythonic \u4e60\u8bed\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/nltk\/\">nltk<\/a>\uff1a\u7528\u4e8e NLP \u7684 Python \u8f6f\u4ef6\u5305\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/matplotlib\/\">matplotlib<\/a>: Python \u4e2d\u7684\u57fa\u672c\u7ed8\u56fe\u5e93\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/plotly\/\">Plotly<\/a>\uff1aPython \u7684\u4ea4\u4e92\u5f0f\u53ef\u89c6\u5316\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/seaborn\/\">seaborn<\/a>\uff1a\u7edf\u8ba1\u6570\u636e\u53ef\u89c6\u5316\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/newspaper3k\/\">newspaper3k<\/a>: \u6587\u7ae0\u641c\u7d22\u4e0e\u6574\u7406\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/www.kaggle.com\/code\/sumaiaparveenshupti\/google-news-text-collection-using-googlenews\">GoogleNews<\/a>\uff1a\u4f7f\u7528 GoogleNews \u6536\u96c6 Google \u65b0\u95fb\u6587\u672c\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/wordcloud\/\">wordcloud<\/a>\uff1a\u4e00\u4e2a\u5c0f\u5c0f\u7684\u8bcd\u4e91\u751f\u6210\u5668\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/yfinance\/\">yfinance<\/a>\uff1a\u4f7f\u7528\u96c5\u864e\u516c\u5f00 API \u7684\u5f00\u6e90\u5de5\u5177\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/keras\/\">Keras<\/a>\uff1a\u4ee5\u76f4\u89c2\u3001\u7cbe\u7b80\u7684\u65b9\u5f0f\u8fdb\u884c\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u7684\u539f\u578b\u8bbe\u8ba1\u3001\u7814\u7a76\u548c\u90e8\u7f72\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/scikit-learn\/\">sklearn<\/a>\uff1a\u5efa\u7acb\u5728 SciPy \u57fa\u7840\u4e0a\u7684\u7528\u4e8e ML \u7684 Python \u6a21\u5757\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/scikit-plot\/\">SciKit-Plot<\/a>\uff1a\u4e3a scikit-learn \u5bf9\u8c61\u6dfb\u52a0\u7ed8\u56fe\u529f\u80fd\u7684\u76f4\u89c2\u5e93\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/pypi.org\/project\/yellowbrick\/\">Yellowbrick<\/a>\uff1a\u4e00\u5957\u7528\u4e8e ML \u7684\u53ef\u89c6\u5316\u5206\u6790\u548c\u8bca\u65ad\u5de5\u5177\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5468\u6807\u91cf\u60c5\u7eea\u8bc4\u5206<\/strong><\/h2>\n\n\n\n<p>\u6211\u9009\u62e9 NVDA \u80a1\u7968\u4e3e\u4f8b\uff0c\u5e76\u4ece https:\/\/finviz.com\u4e0a\u83b7\u53d6\u8be5\u516c\u53f8\u7684\u6bcf\u5468\u8d22\u7ecf\u65b0\u95fb\u5934\u6761\u3002<\/p>\n\n\n\n<p>\u5bfc\u5165\u5fc5\u8981\u7684 Python \u5e93\u5e76\u5b9a\u4e49 tickers_list<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!pip install bs4, nltk\n\nimport pandas as pd\nfrom datetime import datetime\n\nimport matplotlib.pyplot as plt\n\nfrom bs4 import BeautifulSoup\nimport nltk\nfrom nltk.sentiment.vader import SentimentIntensityAnalyzer\nimport requests\n\n\ntickers_list = &#91;'NVDA']<\/code><\/pre>\n\n\n\n<p>\u7528 BeautifulSoup \u6d4f\u89c8\u672c\u5468\u65b0\u95fb\u5934\u6761<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>news = pd.DataFrame()\n\nfor ticker in tickers_list:\n   url = f'https:\/\/finviz.com\/quote.ashx?t={ticker}&amp;p=d'\n   ret = requests.get(\n       url,\n       headers={'User-Agent': 'Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/111.0.0.0 Safari\/537.36'},\n   )\n   \n   html = BeautifulSoup(ret.content, \"html.parser\")\n   \n   try:\n     df = pd.read_html(\n         str(html),\n         attrs={'class': 'fullview-news-outer'}\n     )&#91;0]\n   except:\n     print(f\"{ticker} No news found\")\n     continue\n \n   df.columns = &#91;'Date', 'Headline']\n\ndf.tail()\n\n   Date                  Headline\n95 07:59AM 3 Semiconductor Stocks (and 1 ETF) That Could ...\n96 07:12AM NVIDIA Corporation (NVDA) Launches AI Blueprin...\n97 07:00AM Meet the Supercharged Growth Stock That Could ...\n98 06:30AM 3 Artificial Intelligence ETFs to Buy for Long...\n99 05:59AM Nvidia Stock Falls. Why Its Still a Top Pick i...<\/code><\/pre>\n\n\n\n<p>\u8fdb\u884c\u4ee5\u4e0b\u6587\u672c\u6570\u636e\u9884\u5904\u7406<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Process date and time columns to make sure this is filled in every headline each row\ndateNTime = df.Date.apply(lambda x: ','+x if len(x)&lt;8 else x).str.split(r' |,', expand = True).replace(\"\", None).ffill()\n\ndf = pd.merge(df, dateNTime, right_index=True, left_index=True).drop('Date', axis=1).rename(columns={0:'Date', 1:'Time'})\n\ndf = df&#91;df&#91;\"Headline\"].str.contains(\"Loading.\") == False].loc&#91;:, &#91;'Date', 'Time', 'Headline']]\n\ndf&#91;\"Ticker\"] = ticker\nnews = pd.concat(&#91;news, df], ignore_index = True)\n\nnews.head()<\/code><\/pre>\n\n\n\n<p>\u4e0b\u56fe\u662f\u5b8c\u6210\u540e NVDA \u672c\u5468\u65b0\u95fb\u5934\u6761<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-184.png\" alt=\"\" class=\"wp-image-3560\"\/><\/figure>\n\n\n\n<p>\u4f7f\u7528 vader_lexicon \u5bf9 [&#8216;Headline&#8217;] \u5e94\u7528 SentimentIntensityAnalyzer<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nltk.download('vader_lexicon')\nvader = SentimentIntensityAnalyzer()\n\nscored_news = news.join(\n  pd.DataFrame(news['Headline'].apply(vader.polarity_scores).tolist())\n)<\/pre>\n\n\n\n<p>\u7ed8\u5236 NVDA \u7684\u6bcf\u5468\u60c5\u7eea\u5f97\u5206\u56fe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>news_score = scored_news.loc&#91;:, &#91;'Ticker', 'Date', 'compound']].pivot_table(values='compound', index='Date', columns='Ticker', aggfunc='mean').ewm(15).mean()\nnews_score.dropna().plot(figsize=(10, 6),linewidth=4,kind='line',legend=True, fontsize=14)\nplt.title(\"Weekly Sentiment Score for NVDA\",fontsize=14)\nplt.grid()<\/code><\/pre>\n\n\n\n<p>NVDA \u7684\u672c\u5468\u60c5\u7eea\u8bc4\u5206\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-185.png\" alt=\"\" class=\"wp-image-3561\"\/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u7ed8\u5236 NVDA \u5468\u60c5\u7eea\u5f97\u5206\u767e\u5206\u6bd4\u53d8\u5316\u56fe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>news_score.pct_change().dropna().plot(figsize=(10, 6),linewidth=4,kind='line',legend=True, fontsize=14)\nplt.title(\"Percentage Change of Weekly Sentiment Score for NVDA\",fontsize=14)\nplt.grid()<\/code><\/pre>\n\n\n\n<p>NVDA \u7684\u672c\u5468\u60c5\u7eea\u8bc4\u5206\u53d8\u5316\u767e\u5206\u6bd4\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-186.png\" alt=\"\" class=\"wp-image-3562\"\/><\/figure>\n\n\n\n<p>\u76f4\u63a5\u4f7f\u7528\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5728\u5f53\u4e0b\u7684\u65f6\u95f4 \u4e3a NVDA \u91cd\u590d\u4e0a\u8ff0\u7684 NLP \u5e8f\u5217\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u5468\u77e2\u91cf\u60c5\u7eea\u8bc4\u5206<\/strong><\/h2>\n\n\n\n<p>\u6309\u4e0a\u9762\u7684\u601d\u8def\u6211\u4eec\u7ee7\u7eed\u6269\u5c55 NLP \u5206\u6790\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u91c7\u96c6\u5206\u6790 AMZN \u7684\u80a1\u7968\u65b0\u95fb\u5e76\u8ba1\u7b97\u6bcf\u5468\u5411\u91cf\u60c5\u7eea\u5f97\u5206 {\u5373\uff1a\u8d1f\u9762\u3001\u4e2d\u6027\u3001\u6b63\u9762\u3001\u590d\u5408}\u3002<\/p>\n\n\n\n<p>\u5bfc\u5165 Python \u5e93\u5e76\u8bfb\u53d6\u591a\u4e2a\u8be5\u80a1\u7968\u7684\u65b0\u95fb\u6807\u9898<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import matplotlib.pyplot as plt\nfrom bs4 import BeautifulSoup\nimport pandas as pd\nfrom urllib.request import urlopen, Request\nfrom nltk.sentiment.vader import SentimentIntensityAnalyzer\n\nweb_url = 'https:\/\/finviz.com\/quote.ashx?t='\n\nnews_tables = {}\ntickers = &#91;'AMZN', 'GOOG', 'TSLA']\n\nfor tick in tickers:\n    url = web_url + tick\n    req = Request(url=url,headers={\"User-Agent\": \"Chrome\"}) \n    response = urlopen(req)    \n    html = BeautifulSoup(response,\"html.parser\")\n    news_table = html.find(id='news-table')\n    news_tables&#91;tick] = news_table\n\namazon = news_tables&#91;'AMZN']\namazon_tr = amazon.findAll('tr')\n\nfor x, table_row in enumerate(amazon_tr):\n    a_text = table_row.a.text\n    td_text = table_row.td.text\n    print(a_text)\n    print(td_text)\n    if x == 3:\n        break\n\n_________________________________________________________________\n\nDonald Trump Jr.'s Net Worth Is 8 Figures See His Businesses and Investments\n\n            Today 10:38AM\n        \nBelkin integrates Amazon Buy with Prime into its e-commerce site\n\n            10:26AM\n        \nWhy JPMorgan predicts an AI trade shift in 2025\n\n            10:23AM\n        \nAmazon.com (AMZN) Set for Strong 2025, Says TD Cowen Analyst\n\n            10:19AM<\/code><\/pre>\n\n\n\n<p>\u521b\u5efa\u65b0\u95fb\u5217\u8868<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>news_list = &#91;]\n\nfor file_name, news_table in news_tables.items():\n    for i in news_table.findAll('tr'):\n        \n        text = i.a.get_text() \n        \n        date_scrape = i.td.text.split()\n\n        if len(date_scrape) == 1:\n            time = date_scrape&#91;0]\n            \n        else:\n            date = date_scrape&#91;0]\n            time = date_scrape&#91;1]\n\n        tick = file_name.split('_')&#91;0]\n        \n        news_list.append(&#91;tick, date, time, text])\n\nprint(news_list)\n\n&#91;&#91;'AMZN', 'Today', '10:38AM', \"Donald Trump Jr.'s Net Worth Is 8 Figures See His Businesses and Investments\"], &#91;'AMZN', 'Today', '10:26AM', 'Belkin integrates Amazon Buy with Prime into its e-commerce site'], &#91;'AMZN', 'Today', '10:23AM', 'Why JPMorgan predicts an AI trade shift in 2025'], &#91;'AMZN', 'Today', '10:19AM', 'Amazon.com (AMZN) Set for Strong 2025, Says TD Cowen Analyst'], &#91;'AMZN', 'Today', '10:18AM', 'Nvidia stock jumps as Wall Street analysts maintain bullish outlooks'], &#91;'AMZN', 'Today', '10:06AM', 'Why the Mag 7 trade is far from over: Chart of the Day'], &#91;'AMZN', 'Today', '09:45AM', 'UBS Bullish on Amazon: Raises Target Price to $264'], &#91;'AMZN', 'Today', '09:01AM', 'Buy with Prime Expands with Launch of New Brand Belkin'], &#91;'AMZN', 'Today', '08:30AM', 'Is Amazon Stock A Buy? Tech Giant Named A Top 2025 Pick'], &#91;'AMZN', 'Today', '08:28AM', 'AT&amp;T is joining Amazon in ordering employees back to the office 5 days a week'], &#91;'AMZN', 'Today', '08:15AM', '2 Stocks Set to Dominate in 2025'], &#91;'AMZN', 'Today', '07:52AM', 'Is Amazon.com (AMZN) Among Billionaire Daniel Sundheims Stock Picks Heading Into 2025?'], &#91;'AMZN', 'Today', '07:21AM', 'Honest Company downgraded to Hold from Buy at Loop Capital'], &#91;'AMZN', 'Today', '07:00AM', 'Teamsters have some legal issues to overcome after wins at Amazon and with DSPs'], &#91;'AMZN', 'Today', '07:00AM', 'Cloud AI Startup Vultr Raises $333 Million at $3.5 Billion Valuation'], &#91;'AMZN', 'Today', '06:00AM', \"Big Tech is dominating the market once again  and that's probably just fine: Morning Brief\"], &#91;'AMZN', 'Today', '06:00AM', \"Nvidia's Blackwell chip could push the company into a new stratosphere as the AI revolution continues\"], &#91;'AMZN', 'Today', '05:56AM', 'AT&amp;T is dumping hybrid work as it follows Amazon in demanding employees spend 5 days a week in office'], &#91;'AMZN', 'Today', '05:50AM', 'Meet the 3 Artificial Intelligence (AI) Stocks Dan Ives Says Will Become The First Members of the $4 Trillion Club in 2025'], &#91;'AMZN', 'Today', '05:30AM', '2024 Has Been a Year of Extremes in the Stock Market. Can It Last?'], &#91;'AMZN', 'Today', '05:00AM', 'U.S. Weighs Ban on Chinese-Made Router in Millions of American Homes'], &#91;'AMZN', 'Today', '05:00AM', \"Amazon's 10 most viral items of 2024\"], &#91;'AMZN', 'Today', '04:57AM', 'Prediction: These 2 Magnificent S&amp;P 500 Growth Stocks Will Crush the Market Over the Next 5 Years'], &#91;'AMZN', 'Today', '04:25AM', 'Could Shopify Be Your Ticket to Becoming a Millionaire by 2035?'], &#91;'AMZN', 'Today', '01:51AM', 'Is Adobe (ADBE) a Safe Bet? Roth MKMs Caution Amid AI Buzz and Market Pressure'], &#91;'AMZN', 'Today', '01:45AM', 'Applied Materials (AMAT): Assessing Roth MKMs Caution on This Semiconductor Giant Amid Industry Tensions'], &#91;'AMZN', 'Today', '01:38AM', 'Cadence Design Systems (CDNS): Why Its Among Roth MKMs Cautious Stock Picks'], &#91;'AMZN', 'Dec-17-24', '04:39PM', 'Nvidia stock slides amid AI spending slowdown fears, increased competition'], &#91;'AMZN', 'Dec-17-24', '03:41PM', \"Why the 'Magnificent 7' rally could be a defensive move\"], &#91;'AMZN', 'Dec-17-24', '03:30PM', \"Move Over 'Rage Applying' And 'Quiet Quitting,' 2025 Will Be The Year Of 'Revenge Quitting'\"],\n\n.......................<\/code><\/pre>\n\n\n\n<p>\u5c06\u4e0a\u8ff0\u5217\u8868\u8f6c\u6362\u4e3a\u6570\u636e\u5e27<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vader = SentimentIntensityAnalyzer()\n\ncolumns = &#91;'ticker', 'date', 'time', 'headline']\n\nnews_df = pd.DataFrame(news_list, columns=columns)\n\nscores = news_df&#91;'headline'].apply(vader.polarity_scores).tolist()\n\nscores_df = pd.DataFrame(scores)\n\nnews_df = news_df.join(scores_df, rsuffix='_right')\n\nnews_df=news_df.replace('Today', 'Dec-18-24')\n\nnews_df.head()\n\n  ticker date    time    headline                                          neg neu    pos compound\n0 AMZN Dec-18-24 10:38AM Donald Trump Jr.'s Net Worth Is 8 Figures See ... 0.0 0.853 0.147 0.2263\n1 AMZN Dec-18-24 10:26AM Belkin integrates Amazon Buy with Prime into i... 0.0 0.841 0.159 0.1779\n2 AMZN Dec-18-24 10:23AM Why JPMorgan predicts an AI trade shift in 2025 0.0 1.000 0.000 0.0000\n3 AMZN Dec-18-24 10:19AM Amazon.com (AMZN) Set for Strong 2025, Says TD... 0.0 0.732 0.268 0.5106\n4 AMZN Dec-18-24 10:18AM Nvidia stock jumps as Wall Street analysts mai... 0.0 1.000 0.000 0.0000<\/code><\/pre>\n\n\n\n<p>\u521b\u5efa\u5e76\u7ed8\u5236\u5e73\u5747\u77e2\u91cf\u60c5\u611f\u5206\u6570<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import datetime\nmydf=pd.DataFrame(news_df, columns=&#91;'neg', 'neu','pos','compound','date'])\nmydfneg=mydf.groupby(mydf&#91;'date']).mean()\n\nmydfneg.head()\n\n          neg       neu      pos     compound\ndate    \nDec-13-24 0.061286 0.761429 0.177286 0.145314\nDec-14-24 0.026905 0.823095 0.150000 0.206933\nDec-15-24 0.031679 0.829571 0.138750 0.205850\nDec-16-24 0.021915 0.842064 0.136032 0.193571\nDec-17-24 0.055634 0.840305 0.104061 0.078788\n\nmydfneg&#91;'neg'].plot(label='neg')\nmydfneg&#91;'pos'].plot(label='pos')\nmydfneg&#91;'compound'].plot(label='compound')\nplt.legend()\nplt.title('AMZN Sentiment Score')\nplt.grid()<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837 AMZN \u7684\u8d1f\u9762\u3001\u6b63\u9762\u548c\u590d\u5408\u77e2\u91cf\u60c5\u7eea\u8bc4\u5206\u5c31\u51fa\u6765\u4e86\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-187.png\" alt=\"\" class=\"wp-image-3563\"\/><\/figure>\n\n\n\n<p>\u4e3a\u4fbf\u4e8e\u6bd4\u8f83\uff0c\u63a5\u7740\u7ed8\u5236\u4e2d\u6027\u60c5\u7eea\u5e73\u5747\u5f97\u5206\u56fe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mydfneg&#91;'neu'].plot(label='neu')\nplt.legend()\nplt.title('AMZN Sentiment Score')\nplt.grid()<\/code><\/pre>\n\n\n\n<p>AMZN \u4e2d\u6027\u60c5\u7eea\u5f97\u5206\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-188.png\" alt=\"\" class=\"wp-image-3564\"\/><\/figure>\n\n\n\n<p>\u6211\u4eec\u62ff\u51fa\u5728 AMZN TradingView \u5468\u7ebf\u56fe\u4e0a\u770b\u5230\u7684\u60c5\u51b5\uff0c\u600e\u4e48\u6837\uff0c\u6bd4\u8f83\u4e24\u5f20\u56fe\u66f2\u7ebf\u540e\u7684\u611f\u89c9\u5982\u4f55\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-189.png\" alt=\"\" class=\"wp-image-3565\"\/><\/figure>\n\n\n\n<p>\u8ba9\u6211\u4eec\u63a5\u7740\u6bd4\u8f83\u4e00\u4e0b\u5bf9 AMZN \u7684\u8d1f\u9762\u548c\u6b63\u9762\u8bc4\u4ef7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>news_df.loc&#91;:,'date'] = pd.to_datetime(news_df.date.astype(str)+' '+news_df.time.astype(str))\n\nnews_df.head()\n\n\n  ticker date      time            headline                                           neg neu   pos compound\n0 AMZN 2024-12-18 10:38:00 10:38AM Donald Trump Jr.'s Net Worth Is 8 Figures See ... 0.0 0.853 0.147 0.2263\n1 AMZN 2024-12-18 10:26:00 10:26AM Belkin integrates Amazon Buy with Prime into i... 0.0 0.841 0.159 0.1779\n2 AMZN 2024-12-18 10:23:00 10:23AM Why JPMorgan predicts an AI trade shift in 2025 0.0 1.000 0.000 0.0000\n3 AMZN 2024-12-18 10:19:00 10:19AM Amazon.com (AMZN) Set for Strong 2025, Says TD... 0.0 0.732 0.268 0.5106\n4 AMZN 2024-12-18 10:18:00 10:18AM Nvidia stock jumps as Wall Street analysts mai... 0.0 1.000 0.000 0.0000<\/code><\/pre>\n\n\n\n<p>\u521b\u5efa\u8d1f\u9762\u8bc4\u8bba\u6761\u5f62\u56fe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plt.bar(news_df&#91;'date'],news_df&#91;'neg'])<\/code><\/pre>\n\n\n\n<p>AMZN \u8d1f\u9762\u8bc4\u8bba\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-190.png\" alt=\"\" class=\"wp-image-3566\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>plt.bar(news_df&#91;'date'],news_df&#91;'neg'])\nplt.bar(news_df&#91;'date'],news_df&#91;'pos'],alpha=0.3)<\/code><\/pre>\n\n\n\n<p>AMZN \u8d1f\u9762\uff08\u84dd\u8272\uff09\u4e0e\u6b63\u9762\uff08\u6a59\u8272\uff09\u8bc4\u8bba\u5bf9\u6bd4<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-191.png\" alt=\"\" class=\"wp-image-3567\"\/><\/figure>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u5c06\u4e09\u4e2a\u5206\u6570\u5408\u5e76\u6210\u4e00\u4e2a\u6563\u70b9\u56fe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plt.figure(figsize=(12,6))\nplt.scatter(news_df&#91;'date'],news_df&#91;'compound'],s=news_df&#91;'pos']*200,c=news_df&#91;'neg'])\nplt.grid()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/12\/image-192.png\" alt=\"\" class=\"wp-image-3568\"\/><\/figure>\n\n\n\n<p>\u4e0b\u56fe\u662fAMZN \u6bcf\u5468\u590d\u5408\u5f97\u5206\u4e0e\u6b63\u9762\u5f97\u5206\uff08\u7b26\u53f7\u5927\u5c0f\uff09\u548c\u8d1f\u9762\u5f97\u5206\uff08\u7b26\u53f7\u989c\u8272\uff09\u7684\u6bd4\u8f83\u3002\u5927\u5bb6\u662f\u4e0d\u662f\u5f00\u59cb\u6709\u4e9b\u4e00\u76ee\u4e86\u7136\u8be5\u80a1\u7968\u672c\u5468\u5e02\u573a\u60c5\u7eea\u7684\u611f\u89c9\u4e86\uff1f<\/p>\n\n\n\n<p>\u5728\u4e0b\u4e00\u7bc7\u4e2d\u6211\u4eec\u5c06\u5b9e\u73b0\uff1a<strong>\u901a\u8fc7\u6293\u53d6\u6700\u65b0\u7684\u8c37\u6b4c\u65b0\u95fb\u548c\u4f7f\u7528Yahoo Finance API\u83b7\u53d6\u7684\u8d22\u52a1\u6570\u636e<\/strong>\uff0c\u4e3a\u6295\u8d44\u8005\u63d0\u4f9b\u5373\u65f6\u7684\u5e02\u573a\u6d1e\u5bdf\u548c\u8d22\u52a1\u4fe1\u606f\uff0c\u4ece\u800c\u66f4\u51c6\u786e\u5730\u8bc4\u4f30\u80a1\u7968\u7684\u4ef7\u503c\u3002\u656c\u8bf7\u671f\u5f85\u3002\u3002\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u89c2\u70b9\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6838\u5fc3\u5e93\u548c\u5de5\u5177<\/strong>\uff1a\u5217\u4e3e\u4e86\u5b9e\u73b0\u8be5\u5206\u6790\u6240\u9700\u7684\u6838\u5fc3Python\u5e93\u548c\u5de5\u5177\uff0c\u5305\u62ecBeautifulSoup\u3001nltk\u3001matplotlib\u7b49\u3002<\/li>\n\n\n\n<li><strong>NLP\u60c5\u611f\u5206\u6790<\/strong>\uff1a\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528VADER\u60c5\u611f\u5206\u6790\u5de5\u5177\u5bf9\u6293\u53d6\u7684\u65b0\u95fb\u6807\u9898\u8fdb\u884c\u60c5\u611f\u5206\u6790\uff0c\u5e76\u8ba1\u7b97\u5468\u6807\u91cf\u60c5\u7eea\u5f97\u5206\u3002<\/li>\n\n\n\n<li><strong>\u5468\u77e2\u91cf\u60c5\u7eea\u5f97\u5206<\/strong>\uff1a\u6269\u5c55\u4e86NLP\u5206\u6790\uff0c\u8ba1\u7b97\u4e86AMZN\u80a1\u7968\u7684\u6bcf\u5468\u77e2\u91cf\u60c5\u7eea\u5f97\u5206\uff0c\u5e76\u901a\u8fc7\u56fe\u8868\u5c55\u793a\u4e86\u60c5\u7eea\u5f97\u5206\u7684\u53d8\u5316\u3002<\/li>\n\n\n\n<li><strong>\u60c5\u611f\u5206\u6790\u5bf9\u4e8e\u7406\u89e3\u5e02\u573a\u60c5\u7eea\u548c\u9884\u6d4b\u80a1\u7968\u4ef7\u683c\u8d70\u52bf\u81f3\u5173\u91cd\u8981<\/strong>\u3002\u901a\u8fc7\u5206\u6790\u65b0\u95fb\u6807\u9898\u7684\u60c5\u611f\u503e\u5411\uff0c\u53ef\u4ee5\u6355\u6349\u5230\u53ef\u80fd\u5f71\u54cd\u80a1\u7968\u5e02\u573a\u7684\u5173\u952e\u4fe1\u606f\u3002<\/li>\n\n\n\n<li><strong>\u96c6\u6210NLP\u548cML\u7684\u65b9\u6cd5\u53ef\u4ee5\u4f5c\u4e3a\u80a1\u7968\u8868\u73b0\u7684\u9886\u5148\u6307\u6807<\/strong>\uff0c\u6709\u52a9\u4e8e\u6539\u8fdb\u4ea4\u6613\u7b56\u7565\u548c\u52a0\u5f3a\u6295\u8d44\u7ec4\u5408\u98ce\u9669\u7ba1\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u672c\u6587\u80fd\u7ed9\u60a8\u5e26\u6765\u65b0\u7684\u6536\u83b7\u3002\u7801\u5b57\u4e0d\u6613\uff0c\u8bf7\u5e2e\u6211\u70b9\u8d5e\u3001\u5206\u4eab\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u7684\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u8bf7\u7ed9\u6211\u7559\u8a00\uff0c\u5fc5\u590d\u3002<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center\" id=\"a1c6\">\u672c\u6587\u5185\u5bb9\u4ec5\u9650\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.laoyulaoyu.com\/index.php\/2025\/01\/18\/%e7%a7%91%e6%8a%80%e8%82%a1%e9%a2%84%e6%b5%8b%e6%96%b0%e5%88%a9%e5%99%a8%ef%bc%9anlp%e6%83%85%e7%bb%aa%e5%88%86%e6%9e%90%e4%b8%8e%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e7%9a%84%e5%ae%8c%e7%be%8e\/\">Continue reading<span class=\"screen-reader-text\">\u79d1\u6280\u80a1\u9884\u6d4b\u65b0\u5229\u5668\uff1aNLP\u60c5\u7eea\u5206\u6790\u4e0e\u673a\u5668\u5b66\u4e60\u7684\u5b8c\u7f8e\u878d\u5408\uff08\u4e00\uff09<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,6],"class_list":["post-1804","post","type-post","status-publish","format-standard","hentry","category-aiinvest","tag-ai","tag-6","entry"],"_links":{"self":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1804"}],"version-history":[{"count":3,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1804\/revisions"}],"predecessor-version":[{"id":1809,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1804\/revisions\/1809"}],"wp:attachment":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}