transform textual features into numerical features