[Transformers] Generalized Parsing and Term Rewriting: Semantics Driven Disambiguation