Construction of PA dictionaries for vectorisation