{"id":22559454,"url":"https://github.com/nxgeo/id-svo-extractor","last_synced_at":"2026-01-23T15:42:16.630Z","repository":{"id":267026571,"uuid":"863907310","full_name":"nxgeo/id-svo-extractor","owner":"nxgeo","description":"id-svo-extractor: Extract SVO triples from Indonesian text.","archived":false,"fork":false,"pushed_at":"2024-09-27T19:09:17.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T06:26:16.221Z","etag":null,"topics":["artificial-intelligence","indonesian-language","indonesian-linguistics","indonesian-nlp","information-extraction","knowledge-extraction","knowledge-representation","natural-language-processing","nlp","python","rdf-triples","spacy","spacy-stanza","stanza","text-analysis","triple-extraction"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/id-svo-extractor/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nxgeo.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":"2024-09-27T06:21:37.000Z","updated_at":"2024-09-27T12:45:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7b1ba0d-7031-4a45-94f0-13cba730d0d7","html_url":"https://github.com/nxgeo/id-svo-extractor","commit_stats":null,"previous_names":["nxgeo/id-svo-extractor"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nxgeo/id-svo-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxgeo%2Fid-svo-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxgeo%2Fid-svo-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxgeo%2Fid-svo-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxgeo%2Fid-svo-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nxgeo","download_url":"https://codeload.github.com/nxgeo/id-svo-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxgeo%2Fid-svo-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"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":["artificial-intelligence","indonesian-language","indonesian-linguistics","indonesian-nlp","information-extraction","knowledge-extraction","knowledge-representation","natural-language-processing","nlp","python","rdf-triples","spacy","spacy-stanza","stanza","text-analysis","triple-extraction"],"created_at":"2024-12-07T21:06:32.763Z","updated_at":"2026-01-23T15:42:16.620Z","avatar_url":"https://github.com/nxgeo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![(id, svo, extractor)](https://i.imgur.com/FqUBo68.png)\n\n# id-svo-extractor\n\n**id-svo-extractor** is a heuristic tool designed to extract SVO (Subject-Verb-Object) triples from Indonesian text. It uses Stanza's state-of-the-art Indonesian language pipeline for NLP.\n\n## Requirements\n\nTo use **id-svo-extractor**, you will need Python v3.10 or higher and the following Python package:\n- [spacy-stanza](https://github.com/explosion/spacy-stanza) v1.0.4\n\nYou must also download Stanza's Indonesian models for `tokenize`, `mwt`, `pos`, `lemma`, and `depparse` processors before initializing the pipeline.\n\n## Installation\n\nInstall the package directly from PyPI:\n\n```sh\npip install id-svo-extractor\n```\n\n## Usage\n\nHere's a basic example to get you started.\n\n```python\nfrom id_svo_extractor import create_pipeline\nfrom id_svo_extractor.utils import collect_svo_triples\nfrom stanza import download\n\n\n# Download Stanza's Indonesian models for tokenize, mwt, pos, lemma, and depparse processors.\n# This step is mandatory before initializing the NLP pipeline.\ndownload(\"id\", processors=\"tokenize,mwt,pos,lemma,depparse\")\n\n# Initialize the NLP pipeline.\nnlp = create_pipeline()\n\ndoc = nlp(\"Niko dan Okin mendesain brosur promosi dan mencetak poster iklan.\")\n\nfor sentence in doc.sents:\n    # Extracted triples for each sentence are stored in `svo_triples` custom attribute.\n    print(sentence._.svo_triples)\n    # Output:\n    # [ SVOTriple(s=[Niko], v=[mendesain], o=[brosur, promosi]),\n    #   SVOTriple(s=[Okin], v=[mendesain], o=[brosur, promosi]),\n    #   SVOTriple(s=[Niko], v=[mencetak], o=[poster, iklan]),\n    #   SVOTriple(s=[Okin], v=[mencetak], o=[poster, iklan]) ]\n\nprint(collect_svo_triples(doc))\n# Output:\n# [ ('Niko', 'mendesain', 'brosur promosi'),\n#   ('Okin', 'mendesain', 'brosur promosi'),\n#   ('Niko', 'mencetak', 'poster iklan'),\n#   ('Okin', 'mencetak', 'poster iklan') ]\n```\n\n## License\n\nThis project is licensed under the Apache License 2.0.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxgeo%2Fid-svo-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxgeo%2Fid-svo-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxgeo%2Fid-svo-extractor/lists"}