Clean up dataset JSON and convert to Alpaca format

#2
  • 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.
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment