{"id":19373607,"url":"https://github.com/4ai/bert-encoder","last_synced_at":"2026-06-11T01:31:18.234Z","repository":{"id":92904540,"uuid":"192325235","full_name":"4AI/bert-encoder","owner":"4AI","description":"Encode text to BERT representations from pretrained BERT model","archived":false,"fork":false,"pushed_at":"2019-06-25T04:26:47.000Z","size":66,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T15:19:52.720Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4AI.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-06-17T10:26:32.000Z","updated_at":"2023-12-17T08:30:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b162376-eda0-4c04-8465-ee0703ff40d8","html_url":"https://github.com/4AI/bert-encoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/4AI/bert-encoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4AI%2Fbert-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4AI%2Fbert-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4AI%2Fbert-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4AI%2Fbert-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4AI","download_url":"https://codeload.github.com/4AI/bert-encoder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4AI%2Fbert-encoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34178819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T08:30:14.996Z","updated_at":"2026-06-11T01:31:18.220Z","avatar_url":"https://github.com/4AI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bert-encoder\n\n# Usage\n```python\nfrom bert_encoder import BertEncoder\nbe = BertEncoder(\"/path/to/pretrain_bert_model\")\nbe.encode([\"你好\", \"你在哪\"])\n```\n\noutput\n\n```\n[array([[-0.43364248,  0.41179657, -0.32683408, ...,  0.2388876 ,\n         0.2813817 , -0.12212703],\n       [-0.3853165 ,  0.30760592, -0.3487961 , ..., -0.02057578,\n        -0.21075164, -0.4568899 ]], dtype=float32), array([[-0.43364248,  0.41179657, -0.32683408, ...,  0.2388876 ,\n         0.2813817 , -0.12212703],\n       [-0.1804257 ,  0.7799143 , -0.19864915, ..., -0.26258343,\n         0.01706939, -0.6424839 ],\n       [-0.45424426,  0.5611929 ,  0.1049192 , ...,  0.31221464,\n         0.19015062, -0.10684527]], dtype=float32)]\n\n```\n# Environment\n```\npython 3.5+\n```\n\n# Installation\n```bash\ncd bert-encoder\npython setup install\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4ai%2Fbert-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4ai%2Fbert-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4ai%2Fbert-encoder/lists"}