{"id":19162781,"url":"https://github.com/centre-for-humanities-computing/spacy_polyglot","last_synced_at":"2026-06-17T10:30:16.382Z","repository":{"id":161880875,"uuid":"636509290","full_name":"centre-for-humanities-computing/spacy_polyglot","owner":"centre-for-humanities-computing","description":"A wrapper library for wrapping Polyglot into a spaCy pipeline. This is intended mainly for validation. We do not recommend using this in application.","archived":false,"fork":false,"pushed_at":"2023-05-08T19:54:14.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-03T21:41:13.247Z","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/centre-for-humanities-computing.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":"2023-05-05T02:26:29.000Z","updated_at":"2023-07-27T23:30:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b62047bd-dd25-4b3a-9da5-f3ebd46137a8","html_url":"https://github.com/centre-for-humanities-computing/spacy_polyglot","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/centre-for-humanities-computing%2Fspacy_polyglot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-humanities-computing%2Fspacy_polyglot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-humanities-computing%2Fspacy_polyglot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-humanities-computing%2Fspacy_polyglot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centre-for-humanities-computing","download_url":"https://codeload.github.com/centre-for-humanities-computing/spacy_polyglot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245902,"owners_count":19771029,"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":[],"created_at":"2024-11-09T09:13:08.704Z","updated_at":"2026-06-17T10:30:16.338Z","avatar_url":"https://github.com/centre-for-humanities-computing.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spaCy Polyglot\nA spaCy wrapper for using polyglot within spaCy.\n\n\n## Installation\n```bash\npip install https://github.com/centre-for-humanities-computing/spacy_polyglot\n```\n\nYou might need to install some dependencies first:\n```bash\n# install dev tools\napt-get install python3-venv\necho -e \"[INFO:] Installing DEV tools ...\" # user msg\napt-get update \u0026\u0026 apt-get install -y apt-transport-https -y\napt-get install libicu-dev -y\napt-get install python3-dev -y\n\n#install things in this order\necho -e \"[INFO:] Installing packages ...\" # user msg\npip install pycld2\npip install polyglot\npip install --no-binary=:pyicu: pyicu\n```\n\n*Note*: This package is only intended to work on Linux.\n\n## Usage\n```python\nimport spacy\nfrom spacy_polyglot import PolyglotComponent  # just to register the component\n\n\nnlp = spacy.blank(\"da\")\nnlp.add_pipe(\"polyglot\", last=True)\ndoc = nlp(\"Jeg hedder Anders og bor i Odense.\")\nprint(doc.ents)\n# (Anders, Odense)\n\nnlp = spacy.blank(\"en\")\nnlp.add_pipe(\"polyglot\", last=True)\ndoc = nlp(\"My name is Anders and I live in Odense.\")\nprint(doc.ents)\n# (Anders, Odense)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentre-for-humanities-computing%2Fspacy_polyglot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentre-for-humanities-computing%2Fspacy_polyglot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentre-for-humanities-computing%2Fspacy_polyglot/lists"}