Correction data stored in memory attached to tool or tool holder