#!/bin/bash
set -e

# Clone WikiTables-WithLinks repository
git clone https://github.com/wenhuchen/WikiTables-WithLinks

# Extract text into .txt files
python extract_text.py

# Extract tables into .txt files
python extract_table.py

# Clean up by removing the cloned repository
rm -rf WikiTables-WithLinks