{"id":19237679,"url":"https://github.com/adamouization/pos-tagging-and-unknown-words","last_synced_at":"2026-06-18T13:32:21.486Z","repository":{"id":37623889,"uuid":"237176701","full_name":"Adamouization/POS-Tagging-and-Unknown-Words","owner":"Adamouization","description":":pencil: Part-Of-Speech Tagger with unknown word handling using the Viterbi algorithm.","archived":false,"fork":false,"pushed_at":"2022-12-08T04:27:17.000Z","size":1833,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T23:51:33.426Z","etag":null,"topics":["natural-language-processing","nlp","part-of-speech","part-of-speech-tagger","part-of-speech-tagging","pos","tagging","viterbi","viterbi-algorithm"],"latest_commit_sha":null,"homepage":"","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/Adamouization.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-30T09:10:50.000Z","updated_at":"2024-06-02T13:18:07.000Z","dependencies_parsed_at":"2023-01-24T15:45:11.792Z","dependency_job_id":null,"html_url":"https://github.com/Adamouization/POS-Tagging-and-Unknown-Words","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Adamouization/POS-Tagging-and-Unknown-Words","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamouization%2FPOS-Tagging-and-Unknown-Words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamouization%2FPOS-Tagging-and-Unknown-Words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamouization%2FPOS-Tagging-and-Unknown-Words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamouization%2FPOS-Tagging-and-Unknown-Words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adamouization","download_url":"https://codeload.github.com/Adamouization/POS-Tagging-and-Unknown-Words/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adamouization%2FPOS-Tagging-and-Unknown-Words/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34493360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["natural-language-processing","nlp","part-of-speech","part-of-speech-tagger","part-of-speech-tagging","pos","tagging","viterbi","viterbi-algorithm"],"created_at":"2024-11-09T16:27:51.600Z","updated_at":"2026-06-18T13:32:21.461Z","avatar_url":"https://github.com/Adamouization.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# POS Tagger with Unknown Words Handling [![HitCount](http://hits.dwyl.com/Adamouization/POS-Tagging-and-Unknown-Words.svg)](http://hits.dwyl.com/Adamouization/POS-Tagging-and-Unknown-Words) [![GitHub license](https://img.shields.io/github/license/Adamouization/POS-Tagging-and-Unknown-Words)](https://github.com/Adamouization/POS-Tagging-and-Unknown-Words/blob/master/LICENSE)\n\nThis repository contains code developed for a Part Of Speech (POS) tagger using the Viberbi algorithm to predict POS tags in sentences in the Brown corpus, which is a common Natural Language Processing (NLP) task. It contains the following features:\n  * HMM word emission frequency smoothing;\n  * Unknown word handling;\n  * Extra unknown words rules based on their morphological idiosyncrasies;\n  * HMM training data saving for quicker program execution.\n\nThe evolution of the tagger's accuracy using different methods can be seen below. The report can be visited [here](https://github.com/Adamouization/POS-Tagging-and-Unknown-Words/blob/master/report/report.pdf).\n\n![alt text](https://raw.githubusercontent.com/Adamouization/POS-Tagging-and-Unknown-Words/master/report/accuracy_evolution.png?token=AEI7XLFLK2XMOVTE2HPSKRC7R5M6A)\n\n## Usage\n\nBefore running the program, create a new virtual environment to install Python libraries such as NLTK and run the following command:\n\n```\npip install -r requirements.txt\n```\n\nTo run the POS tagger in Python, move to the `src` directory and run the following command:\n\n```\npython main.py [-corpus \u003ccorpus_name\u003e] [-r] [-d]\n```\n\nwhere:\n\n* `-corpus`: is the name of corpus to use, which can be either `brown` or `floresta`. This is an optional argument that defaults to `brown` if nothing is specified.\n\n* `-r`: is a flag that forces the program to recompute the HMM’s tag transition and word emission probabilities rather than loading previously computed versions into memory.\n\n* `-d` is a flag that enters debugging mode, printing additional statements on the command line.\n\n## License \n* see [LICENSE](https://github.com/Adamouization/POS-Tagging-and-Unknown-Words/blob/master/LICENSE) file.\n\n## Contact\n* Email: adam@jaamour.com\n* Website: www.adam.jaamour.com\n* LinkedIn: [linkedin.com/in/adamjaamour](https://www.linkedin.com/in/adamjaamour/)\n* Twitter: [@Adamouization](https://twitter.com/Adamouization)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamouization%2Fpos-tagging-and-unknown-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamouization%2Fpos-tagging-and-unknown-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamouization%2Fpos-tagging-and-unknown-words/lists"}