Clean up dataset JSON and convert to Alpaca format
#2
by
lianghsun
- opened
- Read input JSON file with potential BOM characters.
- Remove BOM characters from keys.
- Strip trailing spaces from string values, particularly in 'Answer' field.
- Convert dataset to Alpaca format.
- Write cleaned and formatted data to new JSON file.