Tools for mapping a sentence with arbitrary length to vector space