{"id":15460221,"url":"https://github.com/izuna385/bert-article-recommender-with-faiss","last_synced_at":"2025-04-22T10:24:16.752Z","repository":{"id":113374710,"uuid":"344474035","full_name":"izuna385/BERT-Article-Recommender-with-Faiss","owner":"izuna385","description":"Article Recommender with fine-tuned BERT and faiss.","archived":false,"fork":false,"pushed_at":"2021-03-14T11:56:54.000Z","size":531,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T19:54:27.528Z","etag":null,"topics":["allennlp","approximate-nearest-neighbor-search","bert","faiss","fastapi","natural-language-processing","recommender-system"],"latest_commit_sha":null,"homepage":"https://qiita.com/izuna385/items/7074af1361a6bbfba7d4","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/izuna385.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-03-04T12:55:00.000Z","updated_at":"2024-09-27T07:19:21.000Z","dependencies_parsed_at":"2023-03-09T12:30:54.756Z","dependency_job_id":null,"html_url":"https://github.com/izuna385/BERT-Article-Recommender-with-Faiss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuna385%2FBERT-Article-Recommender-with-Faiss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuna385%2FBERT-Article-Recommender-with-Faiss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuna385%2FBERT-Article-Recommender-with-Faiss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuna385%2FBERT-Article-Recommender-with-Faiss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izuna385","download_url":"https://codeload.github.com/izuna385/BERT-Article-Recommender-with-Faiss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232665942,"owners_count":18557950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["allennlp","approximate-nearest-neighbor-search","bert","faiss","fastapi","natural-language-processing","recommender-system"],"created_at":"2024-10-01T23:21:03.725Z","updated_at":"2025-01-06T02:47:08.119Z","avatar_url":"https://github.com/izuna385.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BERT-Article-Recommender-with-Faiss\n* BERTとfaissを用いた記事推薦の実装\n\n# モデル\n![dummy](./img/model.png)\n\n# 環境設定\n```\n$ conda create -n allennlp python=3.7\n$ conda activate allennlp\n$ pip install -r requirements.txt\n$ download.sh\n```\n\n# 実験方法\n$ `python3 main.py -num_epochs 10`\n\n* 特にパラメータ調整は行っていない。dev acc. ~85%, test acc. ~83%.\n\n# 記事推薦モデルの立ち上げ\n```\n$ python3 main.py -num_epochs 10\n$ uvicorn api:app --reload --host 0.0.0.0 --port 8000\n```\n\n# 記事推薦モデルの構成\n\n![test](./img/recommend.png)\n\n# 参考\n[https://qiita.com/izuna385/items/a004982f76256cab1b2d](https://qiita.com/izuna385/items/a004982f76256cab1b2d)\n\n# その他\n* faiss関連でエラーが起こる場合、faissを一度削除して以下を試して下さい。\n   \n   `pip install faiss-cpu --no-cache`\n   \n   (参考記事：https://github.com/facebookresearch/faiss/issues/821#issuecomment-573531694)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuna385%2Fbert-article-recommender-with-faiss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizuna385%2Fbert-article-recommender-with-faiss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuna385%2Fbert-article-recommender-with-faiss/lists"}