关注 spark技术分享,
撸spark源码 玩spark最佳实践

Latent Dirichlet Allocation (LDA)

Latent Dirichlet Allocation (LDA)

Note
Information here are based almost exclusively from the blog post Topic modeling with LDA: MLlib meets GraphX.

Topic modeling is a type of model that can be very useful in identifying hidden thematic structure in documents. Broadly speaking, it aims to find structure within an unstructured collection of documents. Once the structure is “discovered”, you may answer questions like:

  • What is document X about?

  • How similar are documents X and Y?

  • If I am interested in topic Z, which documents should I read first?

Spark MLlib offers out-of-the-box support for Latent Dirichlet Allocation (LDA) which is the first MLlib algorithm built upon GraphX.

Topic models automatically infer the topics discussed in a collection of documents.

Example

Caution
FIXME Use Tokenizer, StopWordsRemover, CountVectorizer, and finally LDA in a pipeline.
赞(0) 打赏
未经允许不得转载:spark技术分享 » Latent Dirichlet Allocation (LDA)
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏