Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lykmapipo/us-inaugural-addresses
Python scripts to download, process, and analyze US Inaugural Addresses
https://github.com/lykmapipo/us-inaugural-addresses
beautifulsoup4 gensim joblib lykmapipo natural-language-processing nlp nltk python python-scripts requests spacy text-analysis text-analytics text-extraction text-processing web-scraping
Last synced: 2 days ago
JSON representation
Python scripts to download, process, and analyze US Inaugural Addresses
- Host: GitHub
- URL: https://github.com/lykmapipo/us-inaugural-addresses
- Owner: lykmapipo
- License: mit
- Created: 2024-01-01T16:32:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-02T21:35:48.000Z (10 months ago)
- Last Synced: 2024-10-11T12:19:46.811Z (25 days ago)
- Topics: beautifulsoup4, gensim, joblib, lykmapipo, natural-language-processing, nlp, nltk, python, python-scripts, requests, spacy, text-analysis, text-analytics, text-extraction, text-processing, web-scraping
- Language: Python
- Homepage:
- Size: 4.45 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# US-Inaugural-Addresses
Python scripts to download, process, and analyze [US Inaugural Addresses](https://www.presidency.ucsb.edu/documents/presidential-documents-archive-guidebook/inaugural-addresses).
> π This repository's maintainer is available to hire for Natural Language Processing (NLP) consulting projects. To get a cost estimate, send email to [email protected] (for projects of any size or complexity).
## Requirements
- [Python 3.8+](https://www.python.org/)
- [pip 23.3+](https://github.com/pypa/pip)
- [joblib 1.3+](https://github.com/joblib/joblib)
- [pyarrow 14.0+](https://github.com/apache/arrow)
- [pandas 2.0+](https://github.com/pandas-dev/pandas)
- [nltk 3.8+](https://github.com/nltk/nltk)
- [gensim 4.3+](https://github.com/piskvorky/gensim)
- [spacy 3.7+](https://github.com/explosion/spaCy)
- [jupyterlab>=4.0+](https://github.com/jupyterlab/jupyterlab)## Usage
- Clone this repository
```sh
git clone https://github.com/lykmapipo/US-Inaugural-Addresses.git
cd US-Inaugural-Addresses
```- Install all dependencies
```sh
pip install -r requirements.txt
```- To scrape [Inaugural Addresses](https://www.presidency.ucsb.edu/documents/presidential-documents-archive-guidebook/inaugural-addresses), run:
```sh
python scrape_inaugural_addresses.py
```- To analyze raw words, to aid next analysis steps, run:
```sh
python analyze_raw_words.py
```## Data
- Check [data/raw/inaugural-addresses](https://github.com/lykmapipo/US-Inaugural-Addresses/tree/main/data/raw/inaugural-addresses) directory for all raw scraped data. Each file is in `text format`, and named following `{year}-{president name}` pattern.- Check [raw words wordcloud](https://github.com/lykmapipo/US-Inaugural-Addresses/tree/main/data/interim/inaugural_address_raw_words_wordcloud.png) and [raw words metadata](https://github.com/lykmapipo/US-Inaugural-Addresses/tree/main/data/interim/inaugural_address_raw_words_metadata.csv) generated from analyzing raw words.
## Contribute
It will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas. Do not forget to add a bit of test(s) of what value you adding.
## Questions/Issues/Contacts
[email protected], or open a GitHub issue
## Licence
The MIT License (MIT)
Copyright (c) lykmapipo & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the βSoftwareβ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.