What problem does it solve?
This Skill simplifies the task of converting abbreviated terms to their full names within structured text files, streamlining data cleaning and normalization processes.
Core Features & Use Cases
- Expand Abbreviations: Automatically expands abbreviations present in text columns according to an internal dictionary or an external custom dictionary.
- Selective Column Processing: Allows processing only specific text columns in the input file, making it adaptable for different data formats and needs.
- Custom Dictionary Support: Integrates with JSON, CSV, or TSV dictionaries for defining additional abbreviation-to-full-name mappings.
- Keep Abbreviations: Offers the option to retain the original abbreviation after the expanded term for better readability.
Quick Start
Expand abbreviations in 'input.csv' to 'output.csv' while processing all columns using the default dictionary and retaining abbreviations: python scripts/abbrev_expander.py --input_path input.csv --output_path output.csv --keep_abbr