{"id":15980646,"url":"https://github.com/ccoreilly/text2lang","last_synced_at":"2026-06-09T16:31:51.961Z","repository":{"id":107871613,"uuid":"441653839","full_name":"ccoreilly/text2lang","owner":"ccoreilly","description":"Language detection api based on ivanlau/language-detection-fine-tuned-on-xlm-roberta-base","archived":false,"fork":false,"pushed_at":"2022-01-06T22:53:07.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-09T23:34:20.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"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/ccoreilly.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":"2021-12-25T10:17:38.000Z","updated_at":"2024-12-27T21:29:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"34cf907c-d564-4282-9530-edd93c99c055","html_url":"https://github.com/ccoreilly/text2lang","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"abc531dfa67e16423c93f558ede21702f2778cfc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ccoreilly/text2lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Ftext2lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Ftext2lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Ftext2lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Ftext2lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccoreilly","download_url":"https://codeload.github.com/ccoreilly/text2lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Ftext2lang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34116457,"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-09T02:00:06.510Z","response_time":63,"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-10-08T00:21:32.673Z","updated_at":"2026-06-09T16:31:51.943Z","avatar_url":"https://github.com/ccoreilly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Language detection API\n\nMimics the Huggingface Inference API for the language detection model [ivanlau/language-detection-fine-tuned-on-xlm-roberta-base](https://huggingface.co/ivanlau/language-detection-fine-tuned-on-xlm-roberta-base)\n\nThe model is preloaded the docker image.\n\n## Usage\n\n```sh\n\u003e docker run -p 8000:8000 -d ghcr.io/ccoreilly/text2lang:0.1.0\n\u003e  curl -X POST -H \"Content-type: application/json\" --data '{\"inputs\":\"Jo vaig reaccionar des del primer dia contra la intolerable arbitrarietat que suposa perseguir una llengua\"}' \"127.0.0.1:8000/text2lang\"\n\n[[{\"label\":\"Arabic\",\"score\":8.245650064964138e-07},{\"label\":\"Basque\",\"score\":3.5457860576570965e-06},{\"label\":\"Breton\",\"score\":1.8627226836542832e-06},{\"label\":\"Catalan\",\"score\":0.9998441934585571},{\"label\":\"Chinese_China\",\"score\":1.91025219464791e-06},{\"label\":\"Chinese_Hongkong\",\"score\":1.0793111187012983e-06},{\"label\":\"Chinese_Taiwan\",\"score\":6.242291874514194e-07},{\"label\":\"Chuvash\",\"score\":8.692016422173765e-07},{\"label\":\"Czech\",\"score\":2.192819465562934e-06},{\"label\":\"Dhivehi\",\"score\":1.3375296248341328e-06},{\"label\":\"Dutch\",\"score\":3.4881782084994484e-06},{\"label\":\"English\",\"score\":2.022519993261085e-06},{\"label\":\"Esperanto\",\"score\":1.0684777862479677e-06},{\"label\":\"Estonian\",\"score\":6.384639732459618e-07},{\"label\":\"French\",\"score\":3.7301720112736803e-06},{\"label\":\"Frisian\",\"score\":7.979567158145073e-07},{\"label\":\"Georgian\",\"score\":1.052802758749749e-06},{\"label\":\"German\",\"score\":8.448164408036973e-07},{\"label\":\"Greek\",\"score\":1.665433728703647e-06},{\"label\":\"Hakha_Chin\",\"score\":1.4556193264070316e-06},{\"label\":\"Indonesian\",\"score\":2.9045900191704277e-06},{\"label\":\"Interlingua\",\"score\":2.7023002985515632e-05},{\"label\":\"Italian\",\"score\":4.412924226926407e-06},{\"label\":\"Japanese\",\"score\":2.7772518933488755e-06},{\"label\":\"Kabyle\",\"score\":1.60937315740739e-06},{\"label\":\"Kinyarwanda\",\"score\":1.5755953199914075e-06},{\"label\":\"Kyrgyz\",\"score\":1.1009155969077256e-06},{\"label\":\"Latvian\",\"score\":1.516824113423354e-06},{\"label\":\"Maltese\",\"score\":2.2403401089832187e-06},{\"label\":\"Mongolian\",\"score\":2.4010071228985908e-06},{\"label\":\"Persian\",\"score\":8.083088118837622e-07},{\"label\":\"Polish\",\"score\":2.316840891580796e-06},{\"label\":\"Portuguese\",\"score\":1.1824969078588765e-05},{\"label\":\"Romanian\",\"score\":3.0523619898303878e-06},{\"label\":\"Romansh_Sursilvan\",\"score\":2.06494441954419e-05},{\"label\":\"Russian\",\"score\":5.589186002907809e-07},{\"label\":\"Sakha\",\"score\":9.823885420701117e-07},{\"label\":\"Slovenian\",\"score\":1.7532637457406963e-06},{\"label\":\"Spanish\",\"score\":2.416618008282967e-05},{\"label\":\"Swedish\",\"score\":6.210944434315024e-07},{\"label\":\"Tamil\",\"score\":7.816464631105191e-07},{\"label\":\"Tatar\",\"score\":4.2421132206982293e-07},{\"label\":\"Turkish\",\"score\":2.0509990008577006e-06},{\"label\":\"Ukranian\",\"score\":2.744618313954561e-06},{\"label\":\"Welsh\",\"score\":4.41204883827595e-06}]]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoreilly%2Ftext2lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccoreilly%2Ftext2lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoreilly%2Ftext2lang/lists"}