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.txtThis script uses en_core_web_trf, a transformer-based spaCy model. Install it with:
python -m spacy download en_core_web_trfRun 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 π«‘!