Apache Spark Naive Bayes based Text Classification

后端 未结 4 1890
名媛妹妹
名媛妹妹 2021-02-03 15:47

im trying to use Apache Spark for document classification.

For example i have two types of Class (C and J)

Train data is :

C, Chinese Beijing Chi         


        
4条回答
  •  深忆病人
    2021-02-03 16:13

    You can use mlib's naive bayes classifier for this. A sample example is given in the link. http://spark.apache.org/docs/latest/mllib-naive-bayes.html

提交回复
热议问题