{"id":24268332,"url":"https://github.com/vaibhavad/python-wrapper-openie5","last_synced_at":"2025-07-22T13:09:22.552Z","repository":{"id":62582309,"uuid":"235868552","full_name":"vaibhavad/python-wrapper-OpenIE5","owner":"vaibhavad","description":"Python wrapper for OpenIE5","archived":false,"fork":false,"pushed_at":"2020-01-25T13:30:17.000Z","size":10,"stargazers_count":39,"open_issues_count":5,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T18:06:04.395Z","etag":null,"topics":["information-extraction","openie","openie5-server","python-wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyopenie/","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/vaibhavad.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}},"created_at":"2020-01-23T19:20:34.000Z","updated_at":"2025-01-22T18:53:43.000Z","dependencies_parsed_at":"2022-11-03T21:22:29.843Z","dependency_job_id":null,"html_url":"https://github.com/vaibhavad/python-wrapper-OpenIE5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vaibhavad/python-wrapper-OpenIE5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaibhavad%2Fpython-wrapper-OpenIE5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaibhavad%2Fpython-wrapper-OpenIE5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaibhavad%2Fpython-wrapper-OpenIE5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaibhavad%2Fpython-wrapper-OpenIE5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaibhavad","download_url":"https://codeload.github.com/vaibhavad/python-wrapper-OpenIE5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaibhavad%2Fpython-wrapper-OpenIE5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266500110,"owners_count":23938980,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["information-extraction","openie","openie5-server","python-wrapper"],"created_at":"2025-01-15T13:36:54.823Z","updated_at":"2025-07-22T13:09:22.525Z","avatar_url":"https://github.com/vaibhavad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyopenie\nPython wrapper for OpenIE5.  This simply wraps the API from the server included with [OpenIE 5.1.0](https://github.com/dair-iitd/OpenIE-standalone).\n\n# Install\n```\npip install pyopenie\n```\n\n# Usage\nFirst make sure you have the OpenIE5 server running.  See [the instructions here](https://github.com/dair-iitd/OpenIE-standalone#running-as-http-server) for how to do that.\n\nThen the setup just requires you to pass in the url of the server:\n```\n\u003e\u003e\u003e from pyopenie import OpenIE5\n\u003e\u003e\u003e extractor = OpenIE5('http://localhost:9000')\n```\nAny English sentence can be passed to OpenIE5 server.\n```\n\u003e\u003e\u003e extractions = extractor.extract(\"The U.S. president Barack Obama gave his speech to thousands of people.\")\n```\nThe result is a JSON list of extractions with confidence, offset and other properties.\n```\n\u003e\u003e\u003e extractions\n[\n    {\n        \"confidence\": 0.38089450366724514,\n        \"sentence\": \"The U.S. president Barack Obama gave his speech on Tuesday to thousands of people.\",\n        \"extraction\": {\n            \"arg1\": {\n                \"text\": \"Barack Obama\",\n                \"offsets\": [...]\n            },\n            \"rel\": {\n                \"text\": \"[is] president [of]\",\n                \"offsets\": [...]\n            },\n            \"arg2s\": [\n                {\n                    \"text\": \"United States\",\n                    \"offsets\": [...]\n                }\n            ],\n            \"context\": null,\n            \"negated\": false,\n            \"passive\": false\n        }\n    },\n    {\n        \"confidence\": 0.9168198459177435,\n        \"sentence\": \"The U.S. president Barack Obama gave his speech on Tuesday to thousands of people.\",\n        \"extraction\": {\n            \"arg1\": {\n                \"text\": \"The U.S. president Barack Obama\",\n                \"offsets\": [...]\n            },\n            \"rel\": {\n                \"text\": \"gave\",\n                \"offsets\": [...]\n            },\n            \"arg2s\": [\n                {\n                    \"text\": \"his speech\",\n                    \"offsets\": [...]\n                },\n                {\n                    \"text\": \"on Tuesday\",\n                    \"offsets\": [...]\n                },\n                {\n                    \"text\": \"to thousands of people\",\n                    \"offsets\": [...]\n                }\n            ],\n            \"context\": null,\n            \"negated\": false,\n            \"passive\": false\n        }\n    }\n]\n```\nIndividual properties can also be accessed.\n```\n\u003e\u003e\u003e extractions[0]['confidence']\n0.38089450366724514\n\n\u003e\u003e\u003e extractions[0]['extraction']['arg1']['text']\n'Barack Obama'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaibhavad%2Fpython-wrapper-openie5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaibhavad%2Fpython-wrapper-openie5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaibhavad%2Fpython-wrapper-openie5/lists"}