{"id":44288836,"url":"https://github.com/checkmarble/marble-ner","last_synced_at":"2026-02-10T23:09:25.592Z","repository":{"id":279784380,"uuid":"931542745","full_name":"checkmarble/marble-ner","owner":"checkmarble","description":"Entity Name Recognition API for Marble","archived":false,"fork":false,"pushed_at":"2025-06-05T06:44:19.000Z","size":270,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-05T07:56:09.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/checkmarble.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,"zenodo":null}},"created_at":"2025-02-12T13:06:07.000Z","updated_at":"2025-05-12T11:21:40.000Z","dependencies_parsed_at":"2025-02-27T16:30:09.366Z","dependency_job_id":"e9cf1cf5-ba7f-47fb-b143-bfee602c4e25","html_url":"https://github.com/checkmarble/marble-ner","commit_stats":null,"previous_names":["checkmarble/marble-ner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/checkmarble/marble-ner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmarble%2Fmarble-ner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmarble%2Fmarble-ner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmarble%2Fmarble-ner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmarble%2Fmarble-ner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/checkmarble","download_url":"https://codeload.github.com/checkmarble/marble-ner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkmarble%2Fmarble-ner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29321277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-02-10T23:09:24.951Z","updated_at":"2026-02-10T23:09:25.585Z","avatar_url":"https://github.com/checkmarble.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marble Name Entity Recognition API\n\nThis repository powers Marble's Name Entity Recognition (NER) used within the Sanctions Check feature.\n\n## Build and run\n\n```\n$ docker build -t marble/marble-ner:latest -f Dockerfile.gpu . # Or Dockerfile.gpu\n$ docker run --rm -p 9000:9000 -e GLINER_LABELS=Person,Company,Country marble/marble-ner:latest\n```\n\nYou can instruct the model to try and label specific names from your input by specifying a comma-separated list of labels in the `GLINER_LABELS` environment variable. By default, the used labels are `Person` and `Company`.\n\n## Query\n\n```\n$ curl -XPOST 127.0.0.1:9000/detect -H content-type:application/json -d \\\n  '{\"text\":\"flying to canada to have dinner at acme\\'s headquarters with joe\"}'\n[\n  {\n    \"type\": \"Country\",\n    \"text\": \"canada\"\n  },\n  {\n    \"type\": \"Company\",\n    \"text\": \"acme\"\n  },\n  {\n    \"type\": \"Person\",\n    \"text\": \"joe\"\n  }\n]\n```\n\n## Develop\n\nBefore pulling the dependencies, you need to rename/symlink the proper `pyproject.toml` and `poetry.lock` for your platform, mostly whether or not you are running on a GPU. A Makefile is provided to help with this.\n\nNote that the CPU built wheel of pytorch is not provided for macOS. If running that platform, you need to be using the `gpu` build. The Docker build requires a `TARGET=\u003ccpu|gpu\u003e` build argument to target the proper build (defaults to CPU).\n\n```\n$ make prepare TARGET=cpu # Or TARGET=gpu\n$ poetry install\n# Either run it directly with uvicorn\n$ NER_API_KEY=apikey make run\n```\n\nIn order to build the Docker image from macOS, you either have to use `--build-arg TARGET=gpu` or `--platform linux/x86_64`.\n\n## Configure\n\nYou can configure which labels the Name Entity Recognition will try and detect from the input string. By default, it is set to `Person` and `Company`, but you can adjust it by setting a comma-separated list of labels in `GLINER_LABELS`. For example:\n\n```sh\n$ NER_API_KEY=apikey GLINER_LABELS='Person,Company,Country,Illegal Activity' make run\n$ http POST :9000/detect text='Dinner with Martin Finnigan at Moneycorp, flying to Germany for some light money laundering and have a meeting with Bob Gloss' --bearer apikey\n[\n    {\n        \"type\": \"Person\",\n        \"text\": \"Martin Finnigan\"\n    },\n    {\n        \"type\": \"Company\",\n        \"text\": \"Moneycorp\"\n    },\n    {\n        \"type\": \"Country\",\n        \"text\": \"Germany\"\n    },\n    {\n        \"type\": \"Illegal Activity\",\n        \"text\": \"money laundering\"\n    },\n    {\n        \"type\": \"Person\",\n        \"text\": \"Bob Gloss\"\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckmarble%2Fmarble-ner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckmarble%2Fmarble-ner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckmarble%2Fmarble-ner/lists"}