Text this: Physical Mechanism Enabled Neural Network for Power System Dynamic Security Assessment