Statistical problem oriented syntactic encoder (SPOSE)