Converted rants.tsv to linus_emails.jsonl using:
--------------------------------------------------------------
import pandas as pd
import json
# Load the TSV file with Linus's emails
df = pd.read_csv('rants.tsv', delimiter='\t', encoding='utf-8')
# Grab the 'mail excerpt' column, remove missing/empty entries, and trim whitespace
excerpts = df['mail excerpt'].dropna().str.strip()
excerpts = excerpts[excerpts != '']
# Save each excerpt as a JSON object in a JSONL file
with open('linus_emails.jsonl', 'w', encoding='utf-8') as f:
for excerpt in excerpts:
json.dump({"text": excerpt}, f)
f.write('\n')
print("Emails extracted and organized into 'linus_emails.jsonl'. Ready for LLM training!")