{"id":21009462,"url":"https://github.com/memgonzales/regex-tweet-tokenizer","last_synced_at":"2025-07-05T19:05:59.961Z","repository":{"id":112399007,"uuid":"505137726","full_name":"memgonzales/regex-tweet-tokenizer","owner":"memgonzales","description":"General-purpose regex-based tweet tokenizer that employs pattern matching with a single regular expression","archived":false,"fork":false,"pushed_at":"2023-01-23T16:12:51.000Z","size":13913,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T11:11:26.541Z","etag":null,"topics":["natural-language-processing","natural-language-understanding","nlp","regex","regular-expression","tokenization","tokenizer","tweet-preprocessing","tweets"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memgonzales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-06-19T14:48:11.000Z","updated_at":"2022-12-26T04:34:52.000Z","dependencies_parsed_at":"2023-05-14T12:30:19.606Z","dependency_job_id":null,"html_url":"https://github.com/memgonzales/regex-tweet-tokenizer","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/memgonzales%2Fregex-tweet-tokenizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgonzales%2Fregex-tweet-tokenizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgonzales%2Fregex-tweet-tokenizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgonzales%2Fregex-tweet-tokenizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memgonzales","download_url":"https://codeload.github.com/memgonzales/regex-tweet-tokenizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243431192,"owners_count":20289851,"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":["natural-language-processing","natural-language-understanding","nlp","regex","regular-expression","tokenization","tokenizer","tweet-preprocessing","tweets"],"created_at":"2024-11-19T09:16:54.097Z","updated_at":"2025-03-13T15:27:33.336Z","avatar_url":"https://github.com/memgonzales.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RegEx-Based Tweet Tokenizer\n![badge][badge-jupyter]\n![badge-python](https://img.shields.io/badge/python-3670A0?style=flat\u0026logo=python\u0026logoColor=white)\n![badge][badge-pandas]\n![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=flat\u0026logo=Twitter\u0026logoColor=white)\n\nThis project is a **general-purpose regular expression-based tokenizer for tweets**. In order to highlight the power and limitations of a purely regular expression-based approach, tokenization is performed by **pattern matching with a *single* regular expression**; conditional statements and substitutions are deliberately not utilized.\n\nAll the scripts are placed inside a [Jupyter notebook](https://github.com/memgonzales/regex-tweet-tokenizer/blob/master/RegEx-Based%20Tweet%20Tokenizer.ipynb), which also includes a detailed write-up covering the following:\n- Definition of a token (and the underlying rationale)\n- Design decisions in the implementation of the tokenizer\n- Walkthrough of the implementation of the tokenizer\n- Descriptive statistics of the corpus after tokenization\n- Analysis of the power and limitations of the tokenizer\n- Comparative analysis with the state-of-the-art [NLTK TweetTokenizer](https://www.nltk.org/api/nltk.tokenize.casual.html) \n- Performance (running time) of the tokenizer\n- Analysis of the most frequent tokens\n\nThis is a major course output in an introduction to natural language processing class under Mr. Edward P. Tighe of the Department of Software Technology, De La Salle University.\n\n## Built Using\nThis project is a Jupyter notebook, with the following Python libraries and modules used:\n\nLibrary/Module |\tDescription |\tLicense\n-- | -- | --\n[`pandas`](https://pandas.pydata.org/)\t| Provides functions for data analysis and manipulation\t| BSD 3-Clause \"New\" or \"Revised\" License\n[`csv`](https://docs.python.org/3/library/csv.html)\t| Implements classes to read and write tabular data in CSV format | Python Software Foundation License\n[`regex`](https://pypi.org/project/regex/)\t| Provides additional functionality over the standard [`re`](https://docs.python.org/3/library/re.html) module while maintaining backwards-compatibility\t| Apache License 2.0\n[`nltk`](https://www.nltk.org/) (For comparative analysis of resulting tokenization)\t| Provides interfaces to corpora and lexical resources, along with a suite of text processing libraries for classification, tokenization, stemming, tagging, parsing, and semantic reasoning\t| Apache License 2.0\n\n*The descriptions are taken from their respective websites.*\n\n## Author\n- \u003cb\u003eMark Edward M. Gonzales\u003c/b\u003e \u003cbr/\u003e\n  mark_gonzales@dlsu.edu.ph \u003cbr/\u003e\n  gonzales.markedward@gmail.com \u003cbr/\u003e\n\nThe [dataset of tweets](https://github.com/memgonzales/regex-tweet-tokenizer/blob/master/tweets_for_pa2.csv) was scraped by Mr. Edward P. Tighe of the Department of Software Technology, De La Salle University. All the tweets in this dataset are public tweets collected via the [Twitter API](https://developer.twitter.com/en/docs/twitter-api).\n\n[badge-jupyter]: https://img.shields.io/badge/Jupyter-F37626.svg?\u0026style=flat\u0026logo=Jupyter\u0026logoColor=white\n[badge-pandas]: https://img.shields.io/badge/Pandas-2C2D72?style=flat\u0026logo=pandas\u0026logoColor=white\n[badge-numpy]: https://img.shields.io/badge/Numpy-777BB4?style=flat\u0026logo=numpy\u0026logoColor=white\n[badge-scipy]: https://img.shields.io/badge/SciPy-654FF0?style=flat\u0026logo=SciPy\u0026logoColor=white\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgonzales%2Fregex-tweet-tokenizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemgonzales%2Fregex-tweet-tokenizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgonzales%2Fregex-tweet-tokenizer/lists"}