Text this: Electric machine analysis using tensors