Text this: Adaptive unified neural network for dynamic power quality compensation