{"id":15893483,"url":"https://github.com/multimeric/doc2vec_agg","last_synced_at":"2025-04-02T17:43:03.475Z","repository":{"id":85377219,"uuid":"205518237","full_name":"multimeric/doc2vec_agg","owner":"multimeric","description":"Generates simple document vectors from word2vec embeddings","archived":false,"fork":false,"pushed_at":"2019-08-31T14:15:11.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T05:23:30.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multimeric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-08-31T08:34:28.000Z","updated_at":"2019-08-31T14:15:13.000Z","dependencies_parsed_at":"2023-03-29T19:35:37.208Z","dependency_job_id":null,"html_url":"https://github.com/multimeric/doc2vec_agg","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/multimeric%2Fdoc2vec_agg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2Fdoc2vec_agg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2Fdoc2vec_agg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2Fdoc2vec_agg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multimeric","download_url":"https://codeload.github.com/multimeric/doc2vec_agg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863846,"owners_count":20846322,"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":[],"created_at":"2024-10-06T08:11:06.434Z","updated_at":"2025-04-02T17:43:03.453Z","avatar_url":"https://github.com/multimeric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doc2vec_agg\n\n## Installation\n```bash\npip install git+https://github.com/TMiguelT/doc2vec_agg.git\n```\n\n## Usage\n```python\nfrom word2vec_agg.word2vec import docvector\n\n# Generate the document vector\ndoc_vector = docvector(\n    word2vec='./GoogleNews-vectors-negative300.bin', # Path to pretrained doc2vec embeddings, in binary format\n    text=['passenger', 'terminal', 'building'], # Array of preprocessed tokens, representing the document\n    max=True, # True if you want the maximum of each dimension in the final output\n    mean=True, # True if you want the mean of each dimension in the final output\n    min=True # True if you want the minimum of each dimension in the final output\n)\n\n# Do operations with the vector\nfrom scipy.spatial import distance\n\nreturn distance.cosine(doc_vector_1, doc_vector_2)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fdoc2vec_agg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultimeric%2Fdoc2vec_agg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fdoc2vec_agg/lists"}