How to include words as numerical feature in classification

前端 未结 3 808
眼角桃花
眼角桃花 2021-02-06 11:40

Whats the best method to use the words itself as the features in any machine learning algorithm ?

The problem I have to extract word related feature from a particular p

3条回答
  •  野的像风
    2021-02-06 12:22

    tf-idf is a pretty standard way of turning words into numeric features.

    You need to remember to use a learning algorithm that supports numeric featuers, like SVM. Naive Bayes doesn't support numeric features.

提交回复
热议问题