frequency based text representation