dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.91k stars 1.86k forks source link

Get Topics Used By LDA? #7112

Open cwford opened 2 months ago

cwford commented 2 months ago

Using ML.NET 3.0 on Windows 11.

How do I get the topics used by the Latent Dirichlet Allocation when predicting (correlating) the relationship between a set of documents and a set of topics?

When I run the LatentDirichletAllocation.cs sample all I get are document correlations for three topics but I can see no way to actually get the topics, as text strings, that are used to make the predictions (correlations). There must be some way to know what topics ML.NET LDA has determined to use to make predictions.

Can someone help me find a way to return as a text string each topic ML.NET LDA uses to make predictions?

Thank you in advance.