Text Classification into Categories

后端 未结 3 1288
野的像风
野的像风 2020-12-31 22:31

I am working on a text classification problem, I am trying to classify a collection of words into category, yes there are plenty of libraries available for classification, s

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 23:17

    A dirt simple way of implementing this is using straight-up Lucene (or any text-indexing engine). Create a single Lucene document with all of the "java" examples, and another document with the "c#" examples, and add both to the index. To classify a new document, OR all the terms in the document and execute a query against the index, and grab the category with the highest score.

提交回复
热议问题