https://github.com/howl-anderson/code_for_aipi510_fall24_premodule
https://github.com/howl-anderson/code_for_aipi510_fall24_premodule
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/howl-anderson/code_for_aipi510_fall24_premodule
- Owner: howl-anderson
- Created: 2024-08-27T13:03:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-27T13:14:05.000Z (about 1 year ago)
- Last Synced: 2024-12-14T19:44:32.843Z (10 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A toy acronym tool for pre-module assignment of AIPI510 Fall 2024
This toy tool can read a text file and convert each line of text to acronym and then write those acronym line by line to other text file.
## install dependencies
using a virtual environment is suggested.
```bash
pip install -r requirements.txt
```## How to use it?
for example, if we want convert each line in the `test_main/text_file_for_demo.txt` to acronym and write it to `result_file_for_demo.txt`, we can use the tool like this:
```bash
python ./acronym.py test_cases/input_file_for_test.txt result_file_for_demo.txt
```## How to test the code?
```bash
pytest
```