{"id":15694201,"url":"https://github.com/krmanik/chinese-example-sentences","last_synced_at":"2025-05-08T07:27:36.138Z","repository":{"id":117575774,"uuid":"341973041","full_name":"krmanik/Chinese-Example-Sentences","owner":"krmanik","description":"63k Chinese sentences with simplified, traditional, pinyin and english translation for offline use","archived":false,"fork":false,"pushed_at":"2021-03-17T17:07:46.000Z","size":8965,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T17:24:47.525Z","etag":null,"topics":["chinese","pinyin","sentence","simplified-chinese","traditional-chinese","tsv"],"latest_commit_sha":null,"homepage":"","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/krmanik.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-02-24T17:04:40.000Z","updated_at":"2025-03-20T15:33:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5102bb75-e0d8-4f54-93aa-71c955209f8f","html_url":"https://github.com/krmanik/Chinese-Example-Sentences","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/krmanik%2FChinese-Example-Sentences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2FChinese-Example-Sentences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2FChinese-Example-Sentences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2FChinese-Example-Sentences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krmanik","download_url":"https://codeload.github.com/krmanik/Chinese-Example-Sentences/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253019748,"owners_count":21841433,"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":["chinese","pinyin","sentence","simplified-chinese","traditional-chinese","tsv"],"created_at":"2024-10-03T18:54:16.466Z","updated_at":"2025-05-08T07:27:36.120Z","avatar_url":"https://github.com/krmanik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chinese-Example-Sentences\nChinese sentences with simplified, traditional, pinyin and english translation for offline use in app.\nSentences data taken from [Tatoeba](https://tatoeba.org/eng/downloads), pinyin and traditional characters generated using python module ```pinyin_jyutping_sentence``` and ```hanziconv```. Translation generated using Google sheets.\n\nTotal 63352 sentences in db and tsv file.\n\n## Downloads\n### TSV file\nThis is tab separated file.\n- [Chinese Sentences with pinyin and translation](Chinese%20Example%20Sentences/cmn_sen_db_2.tsv)\n\n| id | Simplified | Traditional | Pinyin | English |\n```\n10\t我不知道。\t我不知道。\twǒ bù zhīdào 。\tI do not know.\n```\n\n### sqlite .db file\n- [sen_data.db](Chinese%20Example%20Sentences/sen_data.db)\n\nThe [sen_data.db](Chinese%20Example%20Sentences/sen_data.db) contains table ```examples``` with ```id, simplified, traditional, pinyin, english```.\n\n\n## Usage\nGet two random sentences with pinyin, traditional characters and translation\u003cbr\u003e\nView [read_2_random_sen.py](Chinese%20Example%20Sentences/read_2_random_sen.py)\n\n## Create\n1. Download sentences database from [Tatoeba](https://tatoeba.org/eng/downloads)\n2. Use Google translate to translate the sentences\n3. Use Python module ```pinyin_jyutping_sentence``` and ```hanziconv``` to generate pinyin and traditional characters for sentences\n4. Use [gen_sen.py](Chinese%20Example%20Sentences/gen_sen.py) and write data to ```.tsv``` file \n5. Use [tsv_to_db.py](Chinese%20Example%20Sentences/tsv_to_db.py) python code to create databases.\n\n## View this to create tsv and db files with translation for other language\n[Simple 中文](https://simplezhongwen.blogspot.com/2021/03/create-language-database-with.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmanik%2Fchinese-example-sentences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrmanik%2Fchinese-example-sentences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmanik%2Fchinese-example-sentences/lists"}