{"id":21844213,"url":"https://github.com/altescy/textvae","last_synced_at":"2026-05-19T09:34:44.338Z","repository":{"id":66183331,"uuid":"548441300","full_name":"altescy/textvae","owner":"altescy","description":"VAE implementation for text generation with PyTorch","archived":false,"fork":false,"pushed_at":"2022-12-09T08:34:44.000Z","size":104,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T11:42:14.568Z","etag":null,"topics":["machine-learning","nlp","python","pytorch","vae"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/altescy.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":"2022-10-09T15:20:57.000Z","updated_at":"2024-06-14T12:56:07.000Z","dependencies_parsed_at":"2023-02-23T01:15:47.358Z","dependency_job_id":null,"html_url":"https://github.com/altescy/textvae","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altescy%2Ftextvae","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altescy%2Ftextvae/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altescy%2Ftextvae/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altescy%2Ftextvae/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altescy","download_url":"https://codeload.github.com/altescy/textvae/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825652,"owners_count":20516592,"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":["machine-learning","nlp","python","pytorch","vae"],"created_at":"2024-11-27T22:18:45.391Z","updated_at":"2026-05-19T09:34:44.307Z","avatar_url":"https://github.com/altescy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"TextVAE\n=======\n\n[![Actions Status](https://github.com/altescy/textvae/workflows/CI/badge.svg)](https://github.com/altescy/textvae/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/altescy/textvae)](https://github.com/altescy/textvae/blob/master/LICENSE)\n\nVAE implementation for text generation with PyTorch\n\n## Usage\n\nTrain VAE model (config example: [config.json](https://github.com/altescy/textvae/blob/main/tests/fixtures/configs/textvae.json)):\n\n```bash\ntextvae train config.json --workdir output/\n```\n\nReconstruct texts:\n\n```python\nfrom textvae import TextVAE\n\ntexts = [\"this is a first sentence\", \"this is a second sentence\"]\ntextvae = TextVAE.from_archive(\"output/archive.pkl\")\nfor reconstructed_text in textvae.reconstruct(texts):\n    print(reconstructed_text)\n```\n\nEncode texts:\n\n```python\nfrom textvae import TextVAE\n\ntexts = [\"this is a first sentence\", \"this is a second sentence\"]\ntextvae = TextVAE.from_archive(\"output/archive.pkl\")\nfor mean, logvar in textvae.encode(texts):\n    ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltescy%2Ftextvae","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltescy%2Ftextvae","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltescy%2Ftextvae/lists"}