Text this: Defect analysis in elctron microscopy