generate a generic query analizer based on LDA