{"id":13723203,"url":"https://github.com/iamaziz/ar-embeddings","last_synced_at":"2025-11-05T04:30:31.724Z","repository":{"id":16714282,"uuid":"73863341","full_name":"iamaziz/ar-embeddings","owner":"iamaziz","description":"Sentiment Analysis for Arabic Text (tweets, reviews, and standard Arabic) using word2vec","archived":false,"fork":false,"pushed_at":"2024-08-20T16:25:54.000Z","size":4018,"stargazers_count":91,"open_issues_count":3,"forks_count":47,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-03T19:39:15.670Z","etag":null,"topics":["arabic","arabic-embedding","arabic-nlp","arabic-sentiment","embeddings","sentiment-analysis","word2vec","word2vec-model"],"latest_commit_sha":null,"homepage":"https://huggingface.co/azizalto/arabic-news-embeddings","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/iamaziz.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":"2016-11-15T23:06:28.000Z","updated_at":"2024-12-04T08:54:16.000Z","dependencies_parsed_at":"2024-11-24T06:00:10.141Z","dependency_job_id":"aa084876-6810-413b-af2d-f938ff11188c","html_url":"https://github.com/iamaziz/ar-embeddings","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/iamaziz%2Far-embeddings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamaziz%2Far-embeddings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamaziz%2Far-embeddings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamaziz%2Far-embeddings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamaziz","download_url":"https://codeload.github.com/iamaziz/ar-embeddings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449579,"owners_count":19640535,"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":["arabic","arabic-embedding","arabic-nlp","arabic-sentiment","embeddings","sentiment-analysis","word2vec","word2vec-model"],"created_at":"2024-08-03T01:01:37.171Z","updated_at":"2025-11-05T04:30:31.684Z","avatar_url":"https://github.com/iamaziz.png","language":"Python","funding_links":[],"categories":["GitHub projects"],"sub_categories":[],"readme":"Code, embeddings, and datasets used in the paper:\n\nA. Altowayan and L. Tao _\"Word Embeddings for Arabic Sentiment Analysis\"_, IEEE BigData 2016 Workshop\n\n\n##### How to run:\n\nMake sure to unzip `embeddings/arabic-news.tar.gz`, then run\n\n`$ python asa.py --vectors embeddings/arabic-news.bin --dataset datasets/LABR-book-reviews.csv`\n\n```\n[2017-04-08 12:59:20,387] INFO: loading projection weights from embeddings/arabic-news.bin\n[2017-04-08 12:59:23,408] INFO: loaded (159175, 300) matrix from embeddings/arabic-news.bin\n[2017-04-08 12:59:23,408] INFO: precomputing L2-norms of word weight vectors\n[2017-04-08 12:59:24,525] INFO: dataset datasets/LABR-book-reviews.csv (16448, 2). Split: 14803 training and 1645 testing.\n[2017-04-08 12:59:24,526] INFO: Tokenizing the training dataset ..\n[2017-04-08 12:59:24,950] INFO:  ... total 927007 training tokens.\n[2017-04-08 12:59:24,950] INFO: Tokenizing the testing dataset ..\n[2017-04-08 12:59:25,003] INFO:  ... total 110705 testing tokens.\n[2017-04-08 12:59:25,003] INFO: Vectorizing training tokens ..\n[2017-04-08 12:59:27,414] INFO:  ... total 14803 training\n[2017-04-08 12:59:27,415] INFO: Vectorizing testing tokens ..\n[2017-04-08 12:59:27,723] INFO:  ... total 1645 testing\n[2017-04-08 12:59:27,848] INFO: Done loading and vectorizing data.\n[2017-04-08 12:59:27,848] INFO: --- Sentiment CLASSIFIERS ---\n[2017-04-08 12:59:27,848] INFO: fitting ...\n[2017-04-08 13:02:03,397] INFO: results ...\n\tMacAvg. 80.41% F1. 79.95% P. 81.37 R. 78.58 : LinearSVC\n\tMacAvg. 77.31% F1. 76.79% P. 78.10 R. 75.52 : RandomForestClassifier\n\tMacAvg. 63.93% F1. 57.42% P. 72.88 R. 47.37 : GaussianNB\n\tMacAvg. 80.84% F1. 80.50% P. 81.45 R. 79.56 : NuSVC\n\tMacAvg. 81.15% F1. 80.77% P. 81.89 R. 79.68 : LogisticRegressionCV\n\tMacAvg. 78.97% F1. 79.00% P. 78.34 R. 79.68 : SGDClassifier\n[2017-04-08 13:02:03,397] INFO: DONE!\n```\n\n##### Dependencies:\n\nCheck out `requirements.txt` file.\nTo install the dependencies:\n\n\u003e `$ pip install -r requirements.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamaziz%2Far-embeddings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamaziz%2Far-embeddings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamaziz%2Far-embeddings/lists"}