Binary Classification using the N-Grams

萝らか妹 提交于 2021-02-11 06:51:48

问题


I want to extract the ngrams of the tweets, from two groups of users (0/1), to make a CSV file as follows for a binary classifier.

user_tweets, ngram1, ngram2, ngram3, ..., label
1, 0.0, 0.0, 0.0, ..., 0
2, 0.0, 0.0, 0.0, ..., 1
..

My question is whether I should first extract the important ngrams of the two groups, and then score each ngram that I found in the user's tweets? or is there an easier way to do this?

来源:https://stackoverflow.com/questions/66092089/binary-classification-using-the-n-grams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!