{"id":18887158,"url":"https://github.com/thunlp-mt/bilex","last_synced_at":"2025-04-14T22:33:51.737Z","repository":{"id":86099696,"uuid":"160183996","full_name":"THUNLP-MT/BiLex","owner":"THUNLP-MT","description":"A Bilingual Lexicon Inducer From Non-Parallel Data","archived":false,"fork":false,"pushed_at":"2018-12-03T12:00:00.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T10:54:20.438Z","etag":null,"topics":["bilingual-lexicon-extraction","bilingual-word-embedding"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/THUNLP-MT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-03T11:59:10.000Z","updated_at":"2022-09-06T04:38:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"71a944cd-8828-48e0-8875-014f81d08371","html_url":"https://github.com/THUNLP-MT/BiLex","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/THUNLP-MT%2FBiLex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUNLP-MT%2FBiLex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUNLP-MT%2FBiLex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUNLP-MT%2FBiLex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THUNLP-MT","download_url":"https://codeload.github.com/THUNLP-MT/BiLex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248973082,"owners_count":21191910,"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":["bilingual-lexicon-extraction","bilingual-word-embedding"],"created_at":"2024-11-08T07:34:51.470Z","updated_at":"2025-04-14T22:33:46.714Z","avatar_url":"https://github.com/THUNLP-MT.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BiLex: A Bilingual Lexicon Inducer From Non-Parallel Data #\r\n\r\nThis software learns a bilingual lexicon from non-parallel data with the help of a small seed lexicon. The technique is described in the following paper:\r\n\r\n\u003e Meng Zhang, Haoruo Peng, Yang Liu, Huanbo Luan, and Maosong Sun. Bilingual Lexicon Induction From Non-Parallel Data With Minimal Supervision. In Proceedings of AAAI, 2017.\r\n\r\n## Runtime Environment ##\r\n\r\nThis software has been tested in the following environment, but should work in a compatible one.\r\n\r\n- 64-bit Linux\r\n- Python 3.4\r\n- GCC 4.9.4\r\n\r\n## Usage ##\r\n\r\n1\\. Compile the code.\r\n\r\n`./compile.sh`\r\n\r\n2\\. Specify the variables in the `config` file. For example, if `config` contains the following lines:\r\n\r\n\tconfig=zh-en\r\n\tlang1=zh\r\n\tlang2=en\r\n\r\nthen the data should be located in `data/zh-en` with file extensions `zh` and `en`.\r\n\r\n3\\. Prepare data according to Step 2. Toy non-parallel data is provided, along with a Chinese-English seed lexicon with 100 word translation pairs. If your seed lexicon has more than 10000 entries, you need to modify the code by redefining `MAX_LEXICON_SIZE`.\r\n\r\n4\\. Train and obtain the bilingual lexicon.\r\n\r\n`./run.sh`\r\n\r\n5\\. The following files will be generated in `data/zh-en` (the folder specified in `config`):\r\n\r\n- word-vec.zh/en: Bilingual word embeddings in a human readable format. From these files vocab.zh/en and vec.zh/en are extracted.\r\n- vocab.zh/en: Vocabularies.\r\n- vec.zh/en: Bilingual word embeddings.\r\n- result: Translations of vocab.zh. For each source word, there will be at most 10 translations after the tab character, each in the format `\u003ctranslation candidate\u003e:\u003ccosine similarity to the source word vector\u003e`, separated by space and sorted in decreasing order of the cosine similarity. `\u003c/s\u003e` is the sentence marker; its translations should be ignored.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunlp-mt%2Fbilex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunlp-mt%2Fbilex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunlp-mt%2Fbilex/lists"}