Text this: Quadratic descriptors and reduction methods in a two-layered model for compound inference