A machine learning vector model for motif analysis