{"id":21607068,"url":"https://github.com/mya-mya/novel2vecweb","last_synced_at":"2026-05-18T01:37:19.635Z","repository":{"id":118132382,"uuid":"397099196","full_name":"Mya-Mya/Novel2VecWeb","owner":"Mya-Mya","description":"Word2Vec の小説バージョン","archived":false,"fork":false,"pushed_at":"2021-08-18T07:20:09.000Z","size":3247,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T15:19:44.585Z","etag":null,"topics":["bootstrap","bootstrap5","embedding-models","html","jinja2","python","word2vec"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mya-Mya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-17T04:35:31.000Z","updated_at":"2021-08-18T07:20:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"31eabdce-194b-4f8d-aa27-4e661b14492e","html_url":"https://github.com/Mya-Mya/Novel2VecWeb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mya-Mya/Novel2VecWeb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2FNovel2VecWeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2FNovel2VecWeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2FNovel2VecWeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2FNovel2VecWeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mya-Mya","download_url":"https://codeload.github.com/Mya-Mya/Novel2VecWeb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2FNovel2VecWeb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap5","embedding-models","html","jinja2","python","word2vec"],"created_at":"2024-11-24T20:28:36.719Z","updated_at":"2026-05-18T01:37:19.620Z","avatar_url":"https://github.com/Mya-Mya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 使い方\n1. [足す小説]と[引く小説]それぞれに小説の題名を記入する。\n    * 片方の欄が空白のままでも大丈夫。\n    * 複数ある場合は、全角または半角スペースで区切る。\n2. [計算]ボタンを押す。\n3. 1.での計算の結果に似ている順に小説が表示される。\n    * 表右側に表示される数値は**類似度**。\n\n#### 例\n* 足す小説 : `こころ 銀河鉄道の夜`\n* 引く小説 : `星の王子さま`\n\nこう書くと、『こころ』+『銀河鉄道の夜』-『星の王子さま』という **小説の計算** が行われる。\n\n#### 活用例\n* 好きな小説を5冊挙げ、全て[足す小説]に書く。→次に読むべき1冊が見つかるかも？？\n\n# Novel2Vecについて\n#### Novel2Vecとは、小説とそのベクトル表現を対応付けるモデルである\nベクトルは各種演算ができるため、このモデルによって\n\n* 小説を足し算、引き算する\n* 任意のベクトルと方向が似ている小説を求める\n\nことができる。また、ベクトルには方向があるため、この方向が何かしらの**意味**を示していると考えられている。\n\n何かをベクトル表現するというアイデアは**単語**にもある(Word2Vecという)。こちらは\n\n* `王`-`男`+`女`=`女王`\n* `お兄さん`-`おじさん`=`優しい`\n\nなどの計算ができることが知られている[2]。\n\n#### Novel2Vecが作られるまで\nNovel2Vecでは、Word2Vecのアイデアを小説に流用している。実際、Novel2VecはWord2Vecのモデルを作成するライブラリ`gensim.models.Word2Vec`を使用して作成されている。\n\nWord2Vecは、文章を機械に沢山読ませることで作られた。\n\nこれにならい、Novel2Vecは、2018～2020/10/25にTwitter上に投稿された[1]`#名刺代わりの小説10選`というハッシュタグを持つツイート約8,000件(https://github.com/GINK03/novel_recommend/blob/master/var/shosetsu_dataset.csv) から小説の題名を抽出し、それらを機械に読ませて作った。\n\n#### 現行のNovel2Vecモデルの詳細\n* 学習アルゴリズム : `Skip-gram`\n* Gensimバージョン : `4`\n* ベクトル次元数 : `100`\n\n#### 参考\n1. GINK03 .(2020). novel recommended. https://gink03.github.io/novel_recommend/. 2021/08/17アクセス\n2. パソコン工房NEXMAG. (2018). Word2Vecで「おじさん」と「お兄さん」を比較してみた. https://www.pc-koubou.jp/magazine/9905. 2021/08/17アクセス\n\n# 注意\n* 入力欄には個人情報を書き込まないこと。\n* 小説の引き算という計算が何を意味しているのか、Mya-Myaはよく分かっていない。\n* 小説の題名を抽出する処理において、小説の題名ではないノイズデータがいくつか混ざってしまった。このため、計算結果に小説の題名ではない文字列が表示されることがある。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmya-mya%2Fnovel2vecweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmya-mya%2Fnovel2vecweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmya-mya%2Fnovel2vecweb/lists"}