Vectorization in Apache Mahout

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-30 05:14:05

问题


I am new to Mahout. I have a requirement to convert a text file to a vector for classification in later stage.

Could anybody of of shed some light on these below questions?

  1. How to convert a text file to a vector in mahout? The file format is like "username|comment about item|rating"
  2. The data will be few TBs. So which algorithm implementable I can use for classification using the vector I suppose to create?

Thanks, Arun


回答1:


You can check these 2 examples that also somewhat do/explain how to use the Sequence File API. Here and here

And you should definitely read this intro to text analysis



来源:https://stackoverflow.com/questions/11932668/vectorization-in-apache-mahout

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