{"id":17718548,"url":"https://github.com/linuxscout/sylajone-arabic-syntax","last_synced_at":"2025-09-23T10:30:57.997Z","repository":{"id":138755596,"uuid":"286021645","full_name":"linuxscout/sylajone-arabic-syntax","owner":"linuxscout","description":"Sylajone: Arabic syntax Analyzer library","archived":false,"fork":false,"pushed_at":"2020-08-27T18:49:12.000Z","size":181,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T06:49:41.619Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxscout.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"linuxscout"}},"created_at":"2020-08-08T10:27:22.000Z","updated_at":"2020-08-27T18:49:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e91b4001-26ad-4319-aa20-8c020be44347","html_url":"https://github.com/linuxscout/sylajone-arabic-syntax","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/linuxscout%2Fsylajone-arabic-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxscout%2Fsylajone-arabic-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxscout%2Fsylajone-arabic-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxscout%2Fsylajone-arabic-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxscout","download_url":"https://codeload.github.com/linuxscout/sylajone-arabic-syntax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233965888,"owners_count":18758368,"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-10-25T14:54:46.109Z","updated_at":"2025-09-23T10:30:52.562Z","avatar_url":"https://github.com/linuxscout.png","language":"Python","funding_links":["https://patreon.com/linuxscout"],"categories":[],"sub_categories":[],"readme":"# Sylajone: Arabic syntax Analyzer library\n\n#مكتبة سيلجون للتحليل النحوي\n\nSylajone: Arabic syntax Analyzer library\n\n![sylajone logo](doc/sylajone_header.png  \"sylajone logo\")\n\n![PyPI - Downloads](https://img.shields.io/pypi/dm/sylajone)\n\n\n  Developpers:  Taha Zerrouki: http://tahadz.com\n    taha dot zerrouki at gmail dot com\n\n  \nFeatures |   value\n---------|---------------------------------------------------------------------------------\nAuthors  | [Authors.md](https://github.com/linuxscout/sylajone-arabic-syntax/master/AUTHORS.md)\nRelease  | 0.1\nLicense  |[GPL](https://github.com/linuxscout/sylajone-arabic-syntax/master/LICENSE)\nTracker  |[linuxscout/sylajone/Issues](https://github.com/linuxscout/sylajone-arabic-syntax/issues)\nSource  |[Github](http://github.com/linuxscout/sylajone-arabic-syntax)\nFeedbacks  |[Comments](https://github.com/linuxscout/sylajone-arabic-syntax/)\nAccounts  |[@Twitter](https://twitter.com/linuxscout))\n\n## Description\n\nSylajone: Arabic syntax Analyzer library\n\n\n\n###  مزايا:\n* استخلاص العلاقات النحوية بين ثنائيات الكلمات : (فعل -فاعل، فعل-مفعول به، ناصب منصوب، جار مجرور)\n\n\u003cdiv dir=\"rtl\"\u003e\n\n- \n\n\u003c/div\u003e\n\n## Citation\n\n```bibtex\n@thesis{zerrouki2020adawat,\nauthor = {Taha Zerrouki},\ntitle = {Towards An Open Platform For Arabic Language Processing},\ntype = {PhD thesis},\ninstitution = {Ecole Nationale Supérieure d'informatique, Alger, Algérie},\ndate = {2020},\n}\n```\n### install\n```shell\npip install sylajone\n```\n### Usage\n\n#### import\n```python\npip install sylajone\n```\n#### Test \n```python\n\u003e\u003e\u003e import sylajone.anasyn as asn\n\u003e\u003e\u003e import pprint\n\u003e\u003e\u003e \n\u003e\u003e\u003e text  =  u\"يعبد الله منذ أن تطلع الشمس\"\n\u003e\u003e\u003e result  =  []\n\u003e\u003e\u003e anasyn  =  asn.SyntaxAnalyzer()    \n\u003e\u003e\u003e result  =  anasyn.analyze_text(text)\n\u003e\u003e\u003e anasyn.pprint(result)\n```\n\n* Extract semantic relation, display only found relations\n\n```python\n\u003e\u003e\u003e import pprint\n\u003e\u003e\u003e syn_result = anasyn.display_syn(result)\n\u003e\u003e\u003e pprint.pprint(syn_result)         \n[[['اللهَ', 'يُعَبِّدَ', 'اللهُ', 'عَبَّدَ', 20],\n  ['اللهَ', 'يُعَبِّدُ', 'اللهُ', 'عَبَّدَ', 20],\n  ['اللهَ', 'يُعَبِّدْ', 'اللهُ', 'عَبَّدَ', 20],\n  ['اللهَ', 'يَعْبُدَ', 'اللهُ', 'عَبَدَ', 20],\n  ['اللهَ', 'يَعْبُدُ', 'اللهُ', 'عَبَدَ', 20],\n  ['اللهَ', 'يَعْبُدْ', 'اللهُ', 'عَبَدَ', 20],\n  ['اللهُ', 'يُعَبِّدَ', 'اللهُ', 'عَبَّدَ', 10],\n...\n```\n* Extract semantic relation, display all words and tags\n```python\n\u003e\u003e\u003e syn_result = anasyn.display_syn(result, all=True)\n\u003e\u003e\u003e pprint.pprint(syn_result)\n[('يعبد', 'B', []),\n ('الله',\n  'I',\n  [['اللهَ', 'يُعَبِّدَ', 'اللهُ', 'عَبَّدَ', 20],\n   ['اللهَ', 'يُعَبِّدُ', 'اللهُ', 'عَبَّدَ', 20],\n   ['اللهَ', 'يُعَبِّدْ', 'اللهُ', 'عَبَّدَ', 20],\n   ['اللهَ', 'يَعْبُدَ', 'اللهُ', 'عَبَدَ', 20],\n   ['اللهَ', 'يَعْبُدُ', 'اللهُ', 'عَبَدَ', 20],\n   ['اللهَ', 'يَعْبُدْ', 'اللهُ', 'عَبَدَ', 20],\n   ['اللهُ', 'يُعَبِّدَ', 'اللهُ', 'عَبَّدَ', 10],\n...\n\u003e\u003e\u003e \n```\n\n* convert to pandas\n```python\n\u003e\u003e\u003e # convert to pandas\n... import pandas as pd\n\u003e\u003e\u003e # flatten the result\n... df = pd.DataFrame(anasyn.decode(result))\n\u003e\u003e\u003e print(df.head())\n  action affix                          affix_key  forced_word_case  ...   unvocalized  unvoriginal  vocalized  word\n0         -ي--          -ي--|المضارع المنصوب:هو:y             False  ...          يعبد          عبد  يُعَبِّدَ  يعبد\n1         -ي--  -ي--|المضارع المجهول المجزوم:هو:y             False  ...          يعبد          عبد  يُعَبَّدْ  يعبد\n2         -ي--          -ي--|المضارع المجهول:هو:y             False  ...          يعبد          عبد  يُعَبَّدُ  يعبد\n3         -ي--          -ي--|المضارع المعلوم:هو:y             False  ...          يعبد          عبد  يُعَبِّدُ  يعبد\n4         -ي--          -ي--|المضارع المجزوم:هو:y             False  ...          يعبد          عبد  يُعَبِّدْ  يعبد\n\n[5 rows x 50 columns]\n\u003e\u003e\u003e df.to_csv(\"output/test.csv\", encoding=\"utf8\", sep=\"\\t\")\n\n```\n\n\n#### [requirement]\n  \n    1. CodernityDB\u003e=0.5.0   /  CodernityDB3\u003e=0.6.0\n    2. libqutrub\u003e=1.2.4.1\n    3. naftawayh\u003e=0.4\n    4. pyarabic\u003e=0.6.8\n    5. qalsadi\u003e=0.3.5\n\n\n### تسمية\nأحمد بن سليجون هو أبو العباس أحمد بن يحيى بن زيد بن سيار، البغدادي النحوي، الشيباني أو ثعلب (200 هـ-291 هـ) (816-904)م، إمام الكوفيين في عهده، وثالث ثلاثة قامت على أعمالهم مدرسة الكوفة النحوية، العلامة المحدث، وإمام النحو، صاحب الفصيح والتصانيف، ولد ببغداد في السنة الثانية من خلافة المأمون وبها مات. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxscout%2Fsylajone-arabic-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxscout%2Fsylajone-arabic-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxscout%2Fsylajone-arabic-syntax/lists"}