{"id":18723782,"url":"https://github.com/hscells/cui2vec","last_synced_at":"2025-04-12T15:20:23.111Z","repository":{"id":90190190,"uuid":"141513431","full_name":"hscells/cui2vec","owner":"hscells","description":"Utility for cui2vec in Go","archived":false,"fork":false,"pushed_at":"2023-02-25T00:38:38.000Z","size":4284,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T09:51:12.243Z","etag":null,"topics":["cui2vec","embeddings"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/hscells.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":"2018-07-19T02:20:28.000Z","updated_at":"2025-03-14T15:55:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4212add-42ec-471b-bdb3-ec014d577e5a","html_url":"https://github.com/hscells/cui2vec","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/hscells%2Fcui2vec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fcui2vec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fcui2vec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Fcui2vec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hscells","download_url":"https://codeload.github.com/hscells/cui2vec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586218,"owners_count":21128998,"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":["cui2vec","embeddings"],"created_at":"2024-11-07T13:51:36.236Z","updated_at":"2025-04-12T15:20:23.067Z","avatar_url":"https://github.com/hscells.png","language":"Go","readme":"# cui2vec\n\npackage cui2vec implements utilities for dealing with cui2vec embeddings and mapping cuis to text.\n\nPaper (author not affiliated with this code): https://arxiv.org/pdf/1804.01486.pdf\n\nDocumentation: https://godoc.org/github.com/hscells/cui2vec\n\nExample: See [cmd/cui2vec/main.go](cmd/cui2vec/main.go)\n\n## Data\n\nPre-trained embeddings (model) can be downloaded from https://figshare.com/s/00d69861786cd0156d81.\n\nA pre-computed distances version of these pre-trained embeddings is included in the [testdata](testdata) folder. \n\n---\n\nExample file structure of mapping file:\n\n```\nICUI,title\n5,(131)i-maa\n39,dipalmitoylphosphatidylcholine\n96,1-methyl-3-isobutylxanthine\n107,\"1-(n-methylglycine)-8-l-isoleucine-angiotensin ii\"\n139,\"16,16-dimethyl-pge2\"\n151,\"17 beta hydroxy 5 beta androstan 3 one\"\n167,17-ketosteroids\n172,18-hydroxycorticosterone\n173,\"18 hydroxydesoxycorticosterone\"\n```\n\nOne way this can be constructed is detailed in:\n\n```\nJimmy, Zuccon G., Koopman B. (2018) Choices in Knowledge-Base Retrieval for Consumer Health Search.\nIn: Pasi G., Piwowarski B., Azzopardi L., Hanbury A. (eds) Advances in Information Retrieval. ECIR 2018.\nLecture Notes in Computer Science, vol 10772. Springer, Cham\n```\n\n## Command-line\n\nCommand-line utility can be installed with:\n\n```bash\ngo install github.com/hscells/cui2vec/cmd/cui2vec\n```\n\n```bash\nUsage: cui2vec [--cui CUI] [--model MODEL] [--type TYPE] [--skipfirst] [--numcuis NUMCUIS] [--mapping MAPPING] [--verbose]\n\nOptions:\n  --cui CUI\n  --model MODEL\n  --type TYPE\n  --skipfirst\n  --numcuis NUMCUIS, -n NUMCUIS\n  --mapping MAPPING\n  --verbose, -v\n  --help, -h             display this help and exit\n  --version              display version and exit\n```\n\n### Pre-computing distances\n\nA tool that can be used to compress and increase the speed of computing similar CUIs is included in the form of `pcdvec`.\n\nInstall the tool with \n\n```bash\ngo get github.com/hscells/cui2vec/cmd/pcdvec\n```\n\n```bash\nUsage: pcdvec --cui CUI [--output OUTPUT] [--skipfirst]\n\nOptions:\n  --cui CUI\n  --output OUTPUT, -o OUTPUT\n  --skipfirst\n  --help, -h             display this help and exit\n  --version              display version and exit\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Fcui2vec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhscells%2Fcui2vec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Fcui2vec/lists"}