{"id":20114807,"url":"https://github.com/gatenlp/gate-cloud-python-example","last_synced_at":"2025-08-04T05:39:11.631Z","repository":{"id":145770886,"uuid":"171845129","full_name":"GateNLP/gate-cloud-python-example","owner":"GateNLP","description":"example of using the GATE Cloud on-line API","archived":false,"fork":false,"pushed_at":"2019-02-21T12:09:14.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-09T19:55:24.430Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GateNLP.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":"2019-02-21T09:50:25.000Z","updated_at":"2020-11-08T09:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf59f9ca-5e26-4202-9208-c88c07bc86d1","html_url":"https://github.com/GateNLP/gate-cloud-python-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GateNLP/gate-cloud-python-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2Fgate-cloud-python-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2Fgate-cloud-python-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2Fgate-cloud-python-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2Fgate-cloud-python-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GateNLP","download_url":"https://codeload.github.com/GateNLP/gate-cloud-python-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2Fgate-cloud-python-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268655141,"owners_count":24285128,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"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-13T18:32:08.683Z","updated_at":"2025-08-04T05:39:11.604Z","avatar_url":"https://github.com/GateNLP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GATE Cloud API Python Example\n\nThis is a brief example of using the GATE Cloud on-line API\nusing the `requests` library in Python.\n\nIf you just want to see the code, it's [`annie.py`](annie.py).\n\nTo run the code you'll need\nPython 3 and the [`requests` library](https://pypi.org/project/requests/).\n\n## Install using `conda`\n\nIf you have `conda`,\nyou can create a new environment with Python 3 and `requests` like this:\n\n    conda create --name gate-cloud-example python=3 requests\n\nactivate it:\n\n    conda activate gate-cloud-example\n\n## Install using `pip`\n\nIf you already use Python and `pip` then, as an alternative to using `conda`,\nyou can install the dependencies using:\n\n    pip install -r requirements.txt\n\n## Running it\n\nRun the script:\n\n    python annie.py Hieronymus Bosch was a Dutch painter from Brabant, born in 1450\n\nWhen successful, the script will\nprint a formatted version of the JSON result it obtains from the GATE Cloud web service; and,\nthe parts of the text that correspond to annotations that ANNIE found.\n\nThe above example will output some JSON that only a web programmer can love, followed by:\n\n    Date : 1450\n    Location : Brabant\n    Person : Hieronymus Bosch\n\n## Quota\n\nGATE Cloud has a quota for API calls; if you use an API key quota is increased.\nYou can generate new API keys by logging into your GATE Cloud account,\nand visiting the [API Key page](https://cloud.gate.ac.uk/yourAccount/apiKeys).\n\nThe `requests` library will use credentials in your [`.netrc`](https://ec.haxx.se/usingcurl-netrc.html) file.\nSo put them in like this:\n\n    machine cloud-api.gate.ac.uk\n    login 71rs93h36m0c\n    password 9u8ki81lstfc2z8qjlae\n\n\n## GATE Cloud documentation\n\nThe GATE Cloud API documention is here: https://cloud.gate.ac.uk/info/help/online-api.html\n\nThe API description page for ANNIE is here:\nhttps://cloud.gate.ac.uk/shopfront/displayItem/annie-named-entity-recognizer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fgate-cloud-python-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgatenlp%2Fgate-cloud-python-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fgate-cloud-python-example/lists"}