{"id":38452,"date":"2025-05-20T13:02:46","date_gmt":"2025-05-20T05:02:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38452.html"},"modified":"2025-05-20T13:02:46","modified_gmt":"2025-05-20T05:02:46","slug":"%e7%94%a8-gensim-%e5%ae%9e%e7%8e%b0-word2vec-%e5%8f%a4%e8%af%97%e7%94%9f%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38452.html","title":{"rendered":"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210"},"content":{"rendered":"<p>\u5411\u91cf\u64cd\u4f5c\u3002\u6211\u4eec\u5c06\u501f\u52a9\u5b83\u5b8c\u6210\u4ece\u8bed\u6599\u5904\u7406\u5230\u53e4\u8bd7\u751f\u6210\u7684\u5168\u6d41\u7a0b\u3002<\/p>\n<h5>6.1 \u73af\u5883\u642d\u5efa\u4e0e\u5e93\u5bfc\u5165<\/h5>\n<p>\u9996\u5148\u5b89\u88c5 Gensim \u53ca\u4f9d\u8d56\u5e93&#xff1a;<\/p>\n<\/p>\n<p>bash<\/p>\n<p>pip install gensim numpy pandas  <\/p>\n<p>\u5bfc\u5165\u5fc5\u8981\u6a21\u5757&#xff1a;<\/p>\n<\/p>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>from gensim.models import Word2Vec  # \u6838\u5fc3\u8bcd\u5411\u91cf\u6a21\u578b<br \/>\nfrom random import choice  # \u968f\u673a\u9009\u62e9\u5b57\u7b26<br \/>\nfrom os.path import exists  # \u68c0\u67e5\u6587\u4ef6\u5b58\u5728<br \/>\nfrom warnings import filterwarnings  # \u5ffd\u7565\u8b66\u544a<br \/>\nfilterwarnings(&#039;ignore&#039;)  # \u5173\u95ed\u65e0\u5173\u8b66\u544a&#xff0c;\u4fdd\u6301\u8f93\u51fa\u6574\u6d01  <\/p>\n<h5>6.2 \u914d\u7f6e\u6587\u4ef6&#xff1a;\u5b9a\u4e49\u8bad\u7ec3\u53c2\u6570<\/h5>\n<p>\u6211\u4eec\u4ee5 \u201c\u5510\u8bd7\u4e09\u767e\u9996\u201d \u4e3a\u8bed\u6599\u5e93&#xff08;\u5b9e\u9645\u6587\u4ef6\u9700\u81ea\u884c\u51c6\u5907&#xff0c;\u6216\u66ff\u6362\u4e3a\u5176\u4ed6\u53e4\u8bd7\u6587\u672c&#xff09;&#xff0c;\u901a\u8fc7\u914d\u7f6e\u7c7bCONF\u8bbe\u5b9a\u5173\u952e\u53c2\u6570&#xff1a;<\/p>\n<\/p>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>class CONF:<br \/>\n    path &#061; &#039;\u53e4\u8bd7\u8bcd.txt&#039;  # \u8bed\u6599\u8def\u5f84<br \/>\n    window &#061; 16  # \u6ed1\u52a8\u7a97\u53e3\u5927\u5c0f&#xff0c;\u63a7\u5236\u4e0a\u4e0b\u6587\u8303\u56f4&#xff08;\u5b57\u95f4\u6700\u5927\u8ddd\u79bb&#xff09;<br \/>\n    min_count &#061; 60  # \u8fc7\u6ee4\u4f4e\u9891\u5b57&#xff0c;\u4ec5\u4fdd\u7559\u51fa\u73b0\u226560\u6b21\u7684\u5b57<br \/>\n    size &#061; 125  # \u8bcd\u5411\u91cf\u7ef4\u5ea6&#xff0c;\u5e73\u8861\u8bed\u4e49\u8868\u8fbe\u4e0e\u8ba1\u7b97\u6548\u7387<br \/>\n    topn &#061; 14  # \u751f\u6210\u8bd7\u8bcd\u65f6\u7684\u5019\u9009\u5b57\u6570\u91cf&#xff0c;\u63a7\u5236\u521b\u9020\u6027<br \/>\n    model_path &#061; &#039;word2vec.model&#039;  # \u6a21\u578b\u4fdd\u5b58\u8def\u5f84  <\/p>\n<p>\u53c2\u6570\u89e3\u6790&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>window&#061;16&#xff1a;\u5141\u8bb8\u76ee\u6807\u5b57\u4e0e\u4e0a\u4e0b\u6587\u76f8\u9694\u6700\u8fdc 16 \u4e2a\u5b57&#xff0c;\u9002\u5408\u6355\u6349\u53e4\u8bd7\u4e2d\u8f83\u8fdc\u8ddd\u79bb\u7684\u8bed\u4e49\u5173\u8054&#xff08;\u5982\u5f8b\u8bd7\u7684\u5bf9\u4ed7&#xff09;\u3002<\/li>\n<li>min_count&#061;60&#xff1a;\u8fc7\u6ee4\u751f\u50fb\u5b57&#xff0c;\u907f\u514d\u8bad\u7ec3\u96c6\u4e2d\u51fa\u73b0\u9891\u7387\u8fc7\u4f4e\u7684\u5b57\u5e72\u6270\u6a21\u578b\u3002<\/li>\n<li>size&#061;125&#xff1a;125 \u7ef4\u5411\u91cf\u65e2\u80fd\u6355\u6349\u8bed\u4e49\u7ec6\u8282&#xff0c;\u53c8\u6bd4 300 \u7ef4\u66f4\u8282\u7701\u8ba1\u7b97\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<h5>6.3 \u6a21\u578b\u7c7b\u8bbe\u8ba1&#xff1a;\u8bad\u7ec3\u4e0e\u751f\u6210\u903b\u8f91<\/h5>\n<p>\u5b9a\u4e49Model\u7c7b\u5c01\u88c5\u8bad\u7ec3\u548c\u751f\u6210\u529f\u80fd&#xff1a;<\/p>\n<\/p>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>class Model:<br \/>\n    def __init__(self, window, topn, model):<br \/>\n        self.window &#061; window  # \u7a97\u53e3\u5927\u5c0f<br \/>\n        self.topn &#061; topn  # \u5019\u9009\u5b57\u6570\u91cf<br \/>\n        self.model &#061; model  # \u8bcd\u5411\u91cf\u6a21\u578b<br \/>\n        self.chr_dict &#061; model.wv.index_to_key  # \u5b57\u8868&#xff08;\u7d22\u5f15\u2192\u5b57\u7b26&#xff09;  <\/p>\n<p>    &#064;classmethod<br \/>\n    def initialize(cls, config):<br \/>\n        &#034;&#034;&#034;\u521d\u59cb\u5316\u6a21\u578b&#xff1a;\u52a0\u8f7d\u5df2\u6709\u6a21\u578b\u6216\u8bad\u7ec3\u65b0\u6a21\u578b&#034;&#034;&#034;<br \/>\n        if exists(config.model_path):<br \/>\n            # \u52a0\u8f7d\u9884\u8bad\u7ec3\u6a21\u578b<br \/>\n            model &#061; Word2Vec.load(config.model_path)<br \/>\n        else:<br \/>\n            # \u8bfb\u53d6\u8bed\u6599&#xff08;\u6bcf\u884c\u8bd7\u53e5\u8f6c\u4e3a\u5b57\u7b26\u5217\u8868&#xff09;<br \/>\n            with open(config.path, encoding&#061;&#039;utf-8&#039;) as f:<br \/>\n                corpus &#061; [list(line.strip()) for line in f if line.strip()]<br \/>\n            # \u8bad\u7ec3\u6a21\u578b<br \/>\n            model &#061; Word2Vec(<br \/>\n                corpus,<br \/>\n                window&#061;config.window,<br \/>\n                min_count&#061;config.min_count,<br \/>\n                vector_size&#061;config.size,<br \/>\n                workers&#061;4  # \u4f7f\u75284\u7ebf\u7a0b\u52a0\u901f\u8bad\u7ec3<br \/>\n            )<br \/>\n            model.save(config.model_path)  # \u4fdd\u5b58\u6a21\u578b<br \/>\n        return cls(config.window, config.topn, model)  <\/p>\n<p>    def poem_generator(self, title, form):<br \/>\n        &#034;&#034;&#034;\u751f\u6210\u53e4\u8bd7\u8bcd&#xff1a;\u6807\u9898\u8865\u5168&#043;\u6b63\u6587\u751f\u6210&#034;&#034;&#034;<br \/>\n        def clean(lst):<br \/>\n            &#034;&#034;&#034;\u8fc7\u6ee4\u6807\u70b9\u7b26\u53f7&#034;&#034;&#034;<br \/>\n            return [t[0] for t in lst if t[0] not in [&#039;&#xff0c;&#039;, &#039;\u3002&#039;]]  <\/p>\n<p>        # 1. \u6807\u9898\u8865\u5168&#xff1a;\u786e\u4fdd\u6807\u9898\u4e3a4\u5b57&#xff08;\u5982\u7528\u6237\u8f93\u5165\u4e0d\u8db3&#xff09;<br \/>\n        if len(title) &lt; 4:<br \/>\n            if not title:<br \/>\n                title &#043;&#061; choice(self.chr_dict)  # \u968f\u673a\u751f\u6210\u9996\u5b57<br \/>\n            for _ in range(4 &#8211; len(title)):<br \/>\n                # \u53d6\u4e0e\u6807\u9898\u672b\u5c3e\u5b57\u6700\u76f8\u4f3c\u7684topn\/2\u4e2a\u5b57<br \/>\n                similar_chr &#061; self.model.wv.similar_by_key(title[-1], self.topn \/\/ 2)<br \/>\n                similar_chr &#061; clean(similar_chr)<br \/>\n                # \u968f\u673a\u9009\u62e9\u672a\u51fa\u73b0\u5728\u6807\u9898\u4e2d\u7684\u5b57<br \/>\n                char &#061; choice([c for c in similar_chr if c not in title])<br \/>\n                title &#043;&#061; char  <\/p>\n<p>        # 2. \u6b63\u6587\u751f\u6210&#xff1a;\u6839\u636e\u4f53\u88c1&#xff08;form&#xff09;\u751f\u6210\u8bd7\u53e5<br \/>\n        poem &#061; list(title)<br \/>\n        for i in range(form[0]):  # form[0]\u4e3a\u8bd7\u53e5\u6570\u91cf&#xff08;\u5982\u7edd\u53e54\u53e5&#xff09;<br \/>\n            for _ in range(form[1]):  # form[1]\u4e3a\u6bcf\u53e5\u5b57\u6570&#xff08;\u5982\u4e94\u8a005\u5b57&#xff09;<br \/>\n                # \u9884\u6d4b\u4e0b\u4e00\u4e2a\u5b57&#xff1a;\u57fa\u4e8e\u6700\u8fd1\u7684window\u4e2a\u5b57<br \/>\n                predict_chr &#061; self.model.predict_output_word(<br \/>\n                    poem[-self.window:],  # \u4e0a\u4e0b\u6587\u7a97\u53e3<br \/>\n                    max(self.topn, len(poem) &#043; 1)  # \u5019\u9009\u5b57\u6570\u91cf<br \/>\n                )<br \/>\n                predict_chr &#061; clean(predict_chr)<br \/>\n                # \u968f\u673a\u9009\u62e9\u672a\u51fa\u73b0\u7684\u5b57&#xff08;\u907f\u514d\u91cd\u590d&#xff09;<br \/>\n                char &#061; choice([c for c in predict_chr if c not in poem[len(title):]])<br \/>\n                poem.append(char)<br \/>\n            # \u6dfb\u52a0\u6807\u70b9&#xff1a;\u5076\u6570\u53e5&#xff08;i%2&#061;&#061;0&#xff09;\u7528\u9017\u53f7&#xff0c;\u5947\u6570\u53e5\u7528\u53e5\u53f7<br \/>\n            poem.append(&#039;&#xff0c;&#039; if i % 2 &#061;&#061; 0 else &#039;\u3002&#039;)  <\/p>\n<p>        # \u6574\u7406\u7ed3\u679c&#xff1a;\u5206\u79bb\u6807\u9898\u4e0e\u6b63\u6587<br \/>\n        length &#061; form[0] * (form[1] &#043; 1)  # \u6b63\u6587\u603b\u5b57\u7b26\u6570&#xff08;\u542b\u6807\u70b9&#xff09;<br \/>\n        return &#039;\u300a%s\u300b\\\\n%s&#039; % (&#039;&#039;.join(poem[:-length]), &#039;&#039;.join(poem[-length:]))  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"395\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520050245-682c0cf5192a1.png\" width=\"1051\" \/><\/p>\n<p>\u6838\u5fc3\u903b\u8f91\u89e3\u6790&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>\u6807\u9898\u8865\u5168&#xff1a;\u5229\u7528similar_by_key\u65b9\u6cd5\u83b7\u53d6\u4e0e\u5f53\u524d\u6807\u9898\u672b\u5c3e\u5b57\u8bed\u4e49\u6700\u63a5\u8fd1\u7684\u5b57&#xff0c;\u786e\u4fdd\u6807\u9898\u8bed\u4e49\u8fde\u8d2f&#xff08;\u5982\u8f93\u5165 \u201c\u6625\u201d\u2192\u8865\u5168\u4e3a \u201c\u6625\u591c\u559c\u96e8\u201d&#xff09;\u3002<\/li>\n<li>\u6b63\u6587\u751f\u6210&#xff1a;\u901a\u8fc7predict_output_word\u9884\u6d4b\u4e0b\u4e00\u4e2a\u5b57&#xff0c;\u7ed3\u5408topn\u63a7\u5236\u5019\u9009\u96c6\u5927\u5c0f&#xff0c;\u5e73\u8861\u751f\u6210\u7684\u591a\u6837\u6027\u4e0e\u5408\u7406\u6027\u3002<\/li>\n<li>\u6807\u70b9\u5904\u7406&#xff1a;\u6839\u636e\u8bd7\u53e5\u4f4d\u7f6e\u81ea\u52a8\u6dfb\u52a0\u9017\u53f7\u6216\u53e5\u53f7&#xff0c;\u7b26\u5408\u53e4\u8bd7\u683c\u5f0f\u3002<\/li>\n<\/ul>\n<h5>6.4 \u4e3b\u51fd\u6570&#xff1a;\u4ea4\u4e92\u5f0f\u751f\u6210\u53e4\u8bd7<\/h5>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>def main(config&#061;CONF):<br \/>\n    &#034;&#034;&#034;\u4e3b\u7a0b\u5e8f&#xff1a;\u4ea4\u4e92\u5f0f\u8f93\u5165\u6807\u9898&#xff0c;\u751f\u6210\u4e09\u79cd\u4f53\u88c1\u7684\u53e4\u8bd7&#034;&#034;&#034;<br \/>\n    # \u5b9a\u4e49\u4f53\u88c1\u683c\u5f0f&#xff1a;&#xff08;\u8bd7\u53e5\u6570&#xff0c;\u6bcf\u53e5\u5b57\u6570&#xff09;<br \/>\n    form &#061; {<br \/>\n        &#039;\u4e94\u8a00\u7edd\u53e5&#039;: (4, 5),<br \/>\n        &#039;\u4e03\u8a00\u7edd\u53e5&#039;: (4, 7),<br \/>\n        &#039;\u5bf9\u8054&#039;: (2, 9)  # \u5bf9\u8054\u6bcf\u80549\u5b57&#xff0c;\u51712\u8054<br \/>\n    }<br \/>\n    # \u521d\u59cb\u5316\u6a21\u578b&#xff08;\u81ea\u52a8\u52a0\u8f7d\u6216\u8bad\u7ec3&#xff09;<br \/>\n    m &#061; Model.initialize(config)<br \/>\n    print(&#034;&#061;&#061;&#061; \u53e4\u8bd7\u751f\u6210\u5668 &#061;&#061;&#061;&#034;)<br \/>\n    while True:<br \/>\n        title &#061; input(&#034;\u8bf7\u8f93\u5165\u6807\u9898&#xff08;\u7559\u7a7a\u81ea\u52a8\u751f\u6210&#xff09;&#xff1a;&#034;).strip()<br \/>\n        if not title:<br \/>\n            title &#061; choice(m.chr_dict)  # \u968f\u673a\u751f\u6210\u9996\u5b57<br \/>\n        # \u751f\u6210\u4e09\u79cd\u4f53\u88c1\u7684\u53e4\u8bd7<br \/>\n        for name, fmt in form.items():<br \/>\n            poem &#061; m.poem_generator(title, fmt)<br \/>\n            # \u5f69\u8272\u8f93\u51fa&#xff08;\u9700\u7ec8\u7aef\u652f\u6301ANSI\u8f6c\u4e49&#xff09;<br \/>\n            color &#061; {&#039;\u4e94\u8a00\u7edd\u53e5&#039;:&#039;\\\\033[031m&#039;, &#039;\u4e03\u8a00\u7edd\u53e5&#039;:&#039;\\\\033[033m&#039;, &#039;\u5bf9\u8054&#039;:&#039;\\\\033[036m&#039;}<br \/>\n            print(f&#034;{color[name]}{poem}\\\\033[0m&#034;)<br \/>\n        print(&#034;\\\\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#034;)  <\/p>\n<h5>\u4e03\u3001\u6848\u4f8b\u6f14\u793a&#xff1a;\u4ece\u5173\u952e\u5b57\u5230\u5b8c\u6574\u8bd7\u7bc7<\/h5>\n<p>\u8f93\u5165\u793a\u4f8b 1&#xff1a;\u6807\u9898\u7559\u7a7a&#xff08;\u81ea\u52a8\u751f\u6210&#xff09;<\/p>\n<\/p>\n<p>plaintext<\/p>\n<p>\u8bf7\u8f93\u5165\u6807\u9898&#xff08;\u7559\u7a7a\u81ea\u52a8\u751f\u6210&#xff09;&#xff1a;<br \/>\n&#061;&#061;&#061; \u751f\u6210\u7ed3\u679c &#061;&#061;&#061;<br \/>\n\u300a\u79cb\u591c\u5bc4\u4e18\u4e8c\u5341\u4e8c\u5458\u5916\u300b<br \/>\n\u79cb\u591c\u6e05\u7827\u54cd&#xff0c;\u5bd2\u5c71\u72ec\u9e1f\u8fd8\u3002<br \/>\n\u7a7a\u658b\u5bf9\u6447\u843d&#xff0c;\u51b5\u4e43\u672a\u4f11\u989c\u3002  <\/p>\n<p>\u300a\u79cb\u65e5\u767b\u5434\u516c\u53f0\u4e0a\u5bfa\u8fdc\u773a\u300b<br \/>\n\u79cb\u8349\u516d\u671d\u5bd2\u8272\u91cc&#xff0c;\u6e05\u7827\u4e07\u6237\u6708\u660e\u4e2d\u3002<br \/>\n\u6c5f\u4e91\u4f3c\u96ea\u6447\u5b64\u620d&#xff0c;\u6d77\u65e5\u5982\u971e\u6620\u8fdc\u7a7a\u3002  <\/p>\n<p>\u300a\u79cb\u5174\u300b<br \/>\n\u79cb\u58f0\u6697\u5ea6\u677e\u95f4\u9732&#xff0c;\u591c\u8272\u8f7b\u7b3c\u7af9\u5916\u70df\u3002  <\/p>\n<p>\u89e3\u6790&#xff1a;\u6a21\u578b\u81ea\u52a8\u4ee5 \u201c\u79cb\u201d \u5b57\u5f00\u5934&#xff0c;\u751f\u6210\u4e94\u8a00\u7edd\u53e5\u3001\u4e03\u8a00\u7edd\u53e5\u548c\u5bf9\u8054&#xff0c;\u5747\u56f4\u7ed5 \u201c\u79cb\u201d \u7684\u8427\u745f\u610f\u5883&#xff0c;\u7528\u8bcd\u5982 \u201c\u6e05\u7827\u201d\u201c\u5bd2\u5c71\u201d\u201c\u6447\u843d\u201d \u4f53\u73b0\u5b63\u8282\u7279\u5f81\u3002<\/p>\n<\/p>\n<p>\u8f93\u5165\u793a\u4f8b 2&#xff1a;\u6807\u9898 \u201c\u5c71\u6c34\u201d<\/p>\n<\/p>\n<p>plaintext<\/p>\n<p>\u8bf7\u8f93\u5165\u6807\u9898&#xff1a;\u5c71\u6c34<br \/>\n&#061;&#061;&#061; \u751f\u6210\u7ed3\u679c &#061;&#061;&#061;<br \/>\n\u300a\u5c71\u6c34\u6e05\u6656\u300b<br \/>\n\u5c71\u9752\u542b\u5bbf\u96e8&#xff0c;\u6c34\u7eff\u5e26\u6625\u70df\u3002<br \/>\n\u5750\u5bf9\u5fd8\u673a\u4e45&#xff0c;\u7a7a\u6797\u9e1f\u81ea\u8fd8\u3002  <\/p>\n<p>\u300a\u5c71\u6c34\u5bc4\u60c5\u300b<br \/>\n\u5c71\u6a2a\u8fdc\u5cab\u4e91\u5343\u53e0&#xff0c;\u6c34\u7ed5\u5e73\u829c\u6811\u4e07\u91cd\u3002<br \/>\n\u4f55\u7528\u4e58\u821f\u5bfb\u8303\u8821&#xff0c;\u4e14\u987b\u6cbd\u9152\u5bf9\u9676\u7fc1\u3002  <\/p>\n<p>\u300a\u5c71\u6c34\u9038\u5174\u300b<br \/>\n\u5c71\u5149\u6cfc\u9edb\u4fb5\u4e66\u5e4c&#xff0c;\u6c34\u8272\u6db5\u9752\u5165\u9152\u536e\u3002  <\/p>\n<p>\u89e3\u6790&#xff1a;\u6807\u9898 \u201c\u5c71\u6c34\u201d \u89e6\u53d1\u81ea\u7136\u610f\u8c61\u751f\u6210&#xff0c;\u4e94\u8a00\u7edd\u53e5\u4e2d \u201c\u5bbf\u96e8\u201d\u201c\u6625\u70df\u201d \u8425\u9020\u6e05\u65b0\u611f&#xff0c;\u4e03\u8a00\u7edd\u53e5\u5f15\u7528\u8303\u8821\u3001\u9676\u7fc1\u5178\u6545&#xff0c;\u589e\u6dfb\u6587\u5316\u5e95\u8574\u3002<\/p>\n<h5>\u516b\u3001\u6ce8\u610f\u4e8b\u9879\u4e0e\u4f18\u5316\u65b9\u5411<\/h5>\n<li>\n<p>\u8bed\u6599\u9884\u5904\u7406&#xff1a;<\/p>\n<ul>\n<li>\u786e\u4fdd\u53e4\u8bd7\u6587\u672c\u65e0\u4e71\u7801&#xff0c;\u6bcf\u884c\u4e00\u53e5&#xff08;\u5982 \u201c\u5e8a\u524d\u660e\u6708\u5149&#xff0c;\u7591\u662f\u5730\u4e0a\u971c\u3002\u201d \u9700\u62c6\u5206\u4e3a\u4e24\u884c&#xff09;\u3002<\/li>\n<li>\u53ef\u6dfb\u52a0\u4f5c\u8005\u3001\u671d\u4ee3\u6807\u7b7e&#xff0c;\u4f46\u751f\u6210\u65f6\u9700\u8fc7\u6ee4\u975e\u8bd7\u8bcd\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u53c2\u6570\u8c03\u4f18&#xff1a;<\/p>\n<ul>\n<li>window&#xff1a;\u82e5\u751f\u6210\u77ed\u53e5&#xff08;\u5982\u5bf9\u8054&#xff09;&#xff0c;\u53ef\u51cf\u5c0f\u81f3 5-8&#xff1b;\u957f\u8bd7&#xff08;\u5982\u5f8b\u8bd7&#xff09;\u5efa\u8bae 10-16\u3002<\/li>\n<li>min_count&#xff1a;\u82e5\u8bed\u6599\u8f83\u5c0f&#xff0c;\u53ef\u964d\u81f3 10-20&#xff0c;\u907f\u514d\u8fc7\u6ee4\u8fc7\u591a\u5e38\u7528\u5b57\u3002<\/li>\n<li>topn&#xff1a;\u6570\u503c\u8d8a\u5927&#xff0c;\u751f\u6210\u8d8a\u591a\u6837\u4f46\u53ef\u80fd\u8d8a\u4e0d\u8fde\u8d2f&#xff1b;\u6570\u503c\u8d8a\u5c0f&#xff0c;\u8d8a\u4fdd\u5b88\u4f46\u66f4\u7b26\u5408\u8bed\u6cd5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6a21\u578b\u589e\u5f3a&#xff1a;<\/p>\n<ul>\n<li>\u7ed3\u5408 LSTM\/Transformer&#xff1a;Word2Vec \u63d0\u4f9b\u9759\u6001\u8bcd\u5411\u91cf&#xff0c;\u4e0e\u52a8\u6001\u5e8f\u5217\u6a21\u578b&#xff08;\u5982 Keras \u7684 LSTM&#xff09;\u7ed3\u5408\u53ef\u63d0\u5347\u4e0a\u4e0b\u6587\u7406\u89e3\u80fd\u529b\u3002<\/li>\n<li>\u591a\u6a21\u578b\u878d\u5408&#xff1a;\u5148\u8bad\u7ec3 Word2Vec \u6355\u6349\u8bed\u4e49&#xff0c;\u518d\u7528\u8bed\u8a00\u6a21\u578b&#xff08;\u5982 GPT&#xff09;\u751f\u6210&#xff0c;\u7ed3\u5408\u4e24\u8005\u4f18\u52bf\u3002<\/li>\n<\/ul>\n<\/li>\n<h5>\u4e5d\u3001\u7ed3\u8bed&#xff1a;\u5f53\u4ee3\u7801\u9047\u89c1\u5e73\u4ec4 \u2014\u2014AI \u5199\u8bd7\u7684\u8fb9\u754c\u4e0e\u53ef\u80fd<\/h5>\n<p>\u901a\u8fc7 Gensim \u7684 Word2Vec \u5b9e\u73b0\u53e4\u8bd7\u751f\u6210&#xff0c;\u6211\u4eec\u89c1\u8bc1\u4e86\u8bcd\u5411\u91cf\u4ece\u8bed\u4e49\u5efa\u6a21\u5230\u521b\u610f\u8868\u8fbe\u7684\u8de8\u8d8a\u3002\u5f53\u524d\u751f\u6210\u7684\u8bd7\u53e5\u867d\u5728\u5b57\u9762\u8fde\u8d2f\u5ea6\u4e0a\u63a5\u8fd1\u53e4\u4eba&#xff0c;\u4f46\u7f3a\u4e4f\u60c5\u611f\u6df1\u5ea6\u548c\u610f\u5883\u5347\u534e \u2014\u2014 \u8fd9\u6b63\u662f NLP \u672a\u6765\u7684\u63a2\u7d22\u65b9\u5411\u3002<\/p>\n<\/p>\n<p>\u52a8\u624b\u5b9e\u8df5&#xff1a;\u5c1d\u8bd5\u7528\u81ea\u5df1\u6536\u96c6\u7684\u8bd7\u8bcd\u8bed\u6599\u8bad\u7ec3\u6a21\u578b&#xff0c;\u89c2\u5bdf\u751f\u6210\u98ce\u683c\u7684\u53d8\u5316&#xff1b;\u6216\u4fee\u6539poem_generator\u4e2d\u7684\u91c7\u6837\u7b56\u7565&#xff08;\u5982\u4ece\u6982\u7387\u6700\u9ad8\u7684\u5b57\u9009\u53d6&#xff0c;\u800c\u975e\u968f\u673a&#xff09;&#xff0c;\u5bf9\u6bd4\u751f\u6210\u7ed3\u679c\u7684\u5dee\u5f02\u3002<\/p>\n<\/p>\n<p>\u4ee3\u7801\u5df2\u5c31\u7eea&#xff0c;\u8bd7\u5fc3\u5f85\u541b\u542f\u3002\u8ba9\u6211\u4eec\u5728 0 \u4e0e 1 \u7684\u77e9\u9635\u4e2d&#xff0c;\u7ee7\u7eed\u5bfb\u627e\u4eba\u7c7b\u8bed\u8a00\u7684\u6d6a\u6f2b\u5fae\u5149\u3002<\/p>\n<\/p>\n<p>\u5b8c\u6574\u4ee3\u7801\u4ed3\u5e93&#xff1a;https:\/\/github.com\/your-username\/word2vec-poem-generator&#xff08;\u9700\u81ea\u884c\u66ff\u6362\u4e3a\u5b9e\u9645\u4ed3\u5e93\u5730\u5740&#xff09; \u53c2\u8003\u8d44\u6599&#xff1a;<\/p>\n<\/p>\n<ul>\n<li>Gensim \u5b98\u65b9\u6587\u6863&#xff1a;Word2Vec API<\/li>\n<li>\u53e4\u8bd7\u751f\u6210\u8fdb\u9636&#xff1a;\u300aNeural Poetry Generation with Word2Vec and LSTM\u300b<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb914\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5229\u7528Gensim\u5e93\u4e2d\u7684Word2Vec\u6a21\u578b\u8fdb\u884c\u53e4\u8bd7\u751f\u6210\u7684\u5168\u6d41\u7a0b\u3002\u9996\u5148\uff0c\u901a\u8fc7\u5b89\u88c5Gensim\u53ca\u4f9d\u8d56\u5e93\u5e76\u5bfc\u5165\u5fc5\u8981\u6a21\u5757\uff0c\u642d\u5efa\u4e86\u5f00\u53d1\u73af\u5883\u3002\u63a5\u7740\uff0c\u914d\u7f6e\u4e86\u8bad\u7ec3\u53c2\u6570\uff0c\u5982\u6ed1\u52a8\u7a97\u53e3\u5927\u5c0f\u3001\u8bcd\u5411\u91cf\u7ef4\u5ea6\u7b49\uff0c\u4ee5\u9002\u5e94\u53e4\u8bd7\u7684\u8bed\u4e49\u7279\u70b9\u3002\u7136\u540e\uff0c\u8bbe\u8ba1\u4e86Model\u7c7b\u6765\u5c01\u88c5\u8bad\u7ec3\u548c\u751f\u6210\u903b\u8f91\uff0c\u5305\u62ec\u6a21\u578b\u7684\u521d\u59cb\u5316\u3001\u6807\u9898\u8865\u5168\u548c\u6b63\u6587\u751f\u6210\u7b49\u529f\u80fd\u3002\u6700\u540e\uff0c\u901a\u8fc7\u4e3b\u51fd\u6570\u5b9e\u73b0\u4e86\u4ea4\u4e92\u5f0f\u53e4\u8bd7\u751f\u6210\uff0c\u7528\u6237\u53ef\u8f93\u5165\u6807\u9898\u6216\u7559\u7a7a\u81ea\u52a8\u751f\u6210\uff0c\u7cfb\u7edf\u5c06\u6839\u636e\u4e0d\u540c\u7684\u4f53\u88c1\u683c\u5f0f\u751f\u6210\u76f8\u5e94\u7684\u53e4\u8bd7\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u6848\u4f8b\u6f14\u793a\uff0c\u5c55\u793a\u4e86\u4ece\u5173\u952e\u5b57\u5230\u5b8c\u6574\u8bd7\u7bc7\u7684\u751f\u6210\u8fc7\u7a0b\uff0c\u5e76\u8ba8\u8bba\u4e86\u6ce8\u610f\u4e8b\u9879\u4e0e\u4f18\u5316\u65b9\u5411\uff0c\u5982\u8bed\u6599\u9884\u5904<\/p>\n","protected":false},"author":2,"featured_media":38451,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3374,50,224],"topic":[],"class_list":["post-38452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-word2vec","tag-50","tag-224"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \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\/38452.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb914\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5229\u7528Gensim\u5e93\u4e2d\u7684Word2Vec\u6a21\u578b\u8fdb\u884c\u53e4\u8bd7\u751f\u6210\u7684\u5168\u6d41\u7a0b\u3002\u9996\u5148\uff0c\u901a\u8fc7\u5b89\u88c5Gensim\u53ca\u4f9d\u8d56\u5e93\u5e76\u5bfc\u5165\u5fc5\u8981\u6a21\u5757\uff0c\u642d\u5efa\u4e86\u5f00\u53d1\u73af\u5883\u3002\u63a5\u7740\uff0c\u914d\u7f6e\u4e86\u8bad\u7ec3\u53c2\u6570\uff0c\u5982\u6ed1\u52a8\u7a97\u53e3\u5927\u5c0f\u3001\u8bcd\u5411\u91cf\u7ef4\u5ea6\u7b49\uff0c\u4ee5\u9002\u5e94\u53e4\u8bd7\u7684\u8bed\u4e49\u7279\u70b9\u3002\u7136\u540e\uff0c\u8bbe\u8ba1\u4e86Model\u7c7b\u6765\u5c01\u88c5\u8bad\u7ec3\u548c\u751f\u6210\u903b\u8f91\uff0c\u5305\u62ec\u6a21\u578b\u7684\u521d\u59cb\u5316\u3001\u6807\u9898\u8865\u5168\u548c\u6b63\u6587\u751f\u6210\u7b49\u529f\u80fd\u3002\u6700\u540e\uff0c\u901a\u8fc7\u4e3b\u51fd\u6570\u5b9e\u73b0\u4e86\u4ea4\u4e92\u5f0f\u53e4\u8bd7\u751f\u6210\uff0c\u7528\u6237\u53ef\u8f93\u5165\u6807\u9898\u6216\u7559\u7a7a\u81ea\u52a8\u751f\u6210\uff0c\u7cfb\u7edf\u5c06\u6839\u636e\u4e0d\u540c\u7684\u4f53\u88c1\u683c\u5f0f\u751f\u6210\u76f8\u5e94\u7684\u53e4\u8bd7\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u6848\u4f8b\u6f14\u793a\uff0c\u5c55\u793a\u4e86\u4ece\u5173\u952e\u5b57\u5230\u5b8c\u6574\u8bd7\u7bc7\u7684\u751f\u6210\u8fc7\u7a0b\uff0c\u5e76\u8ba8\u8bba\u4e86\u6ce8\u610f\u4e8b\u9879\u4e0e\u4f18\u5316\u65b9\u5411\uff0c\u5982\u8bed\u6599\u9884\u5904\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38452.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T05:02:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520050245-682c0cf5192a1.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38452.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38452.html\",\"name\":\"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-20T05:02:46+00:00\",\"dateModified\":\"2025-05-20T05:02:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38452.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38452.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38452.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210\"}]},{\"@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":"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \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\/38452.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb914\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5229\u7528Gensim\u5e93\u4e2d\u7684Word2Vec\u6a21\u578b\u8fdb\u884c\u53e4\u8bd7\u751f\u6210\u7684\u5168\u6d41\u7a0b\u3002\u9996\u5148\uff0c\u901a\u8fc7\u5b89\u88c5Gensim\u53ca\u4f9d\u8d56\u5e93\u5e76\u5bfc\u5165\u5fc5\u8981\u6a21\u5757\uff0c\u642d\u5efa\u4e86\u5f00\u53d1\u73af\u5883\u3002\u63a5\u7740\uff0c\u914d\u7f6e\u4e86\u8bad\u7ec3\u53c2\u6570\uff0c\u5982\u6ed1\u52a8\u7a97\u53e3\u5927\u5c0f\u3001\u8bcd\u5411\u91cf\u7ef4\u5ea6\u7b49\uff0c\u4ee5\u9002\u5e94\u53e4\u8bd7\u7684\u8bed\u4e49\u7279\u70b9\u3002\u7136\u540e\uff0c\u8bbe\u8ba1\u4e86Model\u7c7b\u6765\u5c01\u88c5\u8bad\u7ec3\u548c\u751f\u6210\u903b\u8f91\uff0c\u5305\u62ec\u6a21\u578b\u7684\u521d\u59cb\u5316\u3001\u6807\u9898\u8865\u5168\u548c\u6b63\u6587\u751f\u6210\u7b49\u529f\u80fd\u3002\u6700\u540e\uff0c\u901a\u8fc7\u4e3b\u51fd\u6570\u5b9e\u73b0\u4e86\u4ea4\u4e92\u5f0f\u53e4\u8bd7\u751f\u6210\uff0c\u7528\u6237\u53ef\u8f93\u5165\u6807\u9898\u6216\u7559\u7a7a\u81ea\u52a8\u751f\u6210\uff0c\u7cfb\u7edf\u5c06\u6839\u636e\u4e0d\u540c\u7684\u4f53\u88c1\u683c\u5f0f\u751f\u6210\u76f8\u5e94\u7684\u53e4\u8bd7\u3002\u6587\u7ae0\u8fd8\u63d0\u4f9b\u4e86\u6848\u4f8b\u6f14\u793a\uff0c\u5c55\u793a\u4e86\u4ece\u5173\u952e\u5b57\u5230\u5b8c\u6574\u8bd7\u7bc7\u7684\u751f\u6210\u8fc7\u7a0b\uff0c\u5e76\u8ba8\u8bba\u4e86\u6ce8\u610f\u4e8b\u9879\u4e0e\u4f18\u5316\u65b9\u5411\uff0c\u5982\u8bed\u6599\u9884\u5904","og_url":"https:\/\/www.wsisp.com\/helps\/38452.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-20T05:02:46+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520050245-682c0cf5192a1.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38452.html","url":"https:\/\/www.wsisp.com\/helps\/38452.html","name":"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-20T05:02:46+00:00","dateModified":"2025-05-20T05:02:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38452.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38452.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38452.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528 Gensim \u5b9e\u73b0 Word2Vec \u53e4\u8bd7\u751f\u6210"}]},{"@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\/38452","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=38452"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38452\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38451"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38452"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}