A Python script that renames files in a directory based on naming conventions and entity recognition using NLP.
Ensure you have Python installed, then run:
pip install -r requirements.txt
This script uses en_core_web_trf
, a transformer-based spaCy model. Install it with:
python -m spacy download en_core_web_trf
Run the script and follow the prompts:
python smart_rename.py
- CamelCase
- PascalCase
- snake_case
- kebab-case
- flatcase
- UPPERFLATCASE
- Pascal_Snake_Case
- camel_Snake_Case
- SCREAMING_SNAKE_CASE
- Train-Case
- COBOL-CASE
project-folder/
│── smart_rename.py
│── clean_filename.py
│── name_conventions.py
│── requirements.txt
│── README.md
- Ensure your files are in the target directory before running the script.
- Handles CamelCase splitting, number formatting, and NLP-based entity recognition for smarter renaming.
- Uses spaCy’s transformer model for improved accuracy.
Good luck renaming those files 🫡!