Given the thematic model from Mahout LDA CVB / Standalone Batch Execution, I like to infer a new document using model / online web service calls.
These documents are not incredibly useful for new products and output. * https://builds.apache.org/job/Mahout-Quality/javadoc/org/apache/mahout/clustering/lda/cvb/TopicModel.html * http://svn.apache.org/viewvc/mahout/trunk /core/src/main/java/org/apache/mahout/clustering/lda/cvb/TopicModel.java?view=markup
I could not even find any sample code on the Internet or anywhere else.
Here I thought what I might want to do in Java code,
TopicModel model = new TopicModel();
Vector documentInTermFrequency = new RandomAccessSparseVector(); documentInTermFrequence.setQuick(termIdX, 10); documentInTermFrequence.setQuick(termIdY, 20);
Vector documentInTermFrequency = new RandomAccessSparseVector();
documentInTermFrequence.setQuick(termIdX, 10);
documentInTermFrequence.setQuick(termIdY, 20);
Vector docTopic = new DenseVector(new Double[10] { 0.1, 0.1, ..., 0.1 }); // 0.1 probabilities
Vector documentTopicInference = model.infer(documentInTermFrequence, docTopic);
I have not seen anyone trying something like this? Has anyone ever tried something like this?
Any suggestion or index would be highly appreciated.
No one has answered this question yet.
See related questions:
Source: https://habr.com/ru/post/1493371/More articles:getting data from one table for comparison with another table in mysql - mysqlEnable Gmail login in the application - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1493368/gradle-doesnt-pass-system-properties-to-test-classes&usg=ALkJrhh6dDIHy-BCRuITK6Eu7g1BeKNd2wHow to integrate Gmail login in Android application? - androidIs there any gmail sdk for android, just like facebook sdk - androidBrowser shows timeout while server process is still running - browserSetting system properties when using junitPlatform - javaHow can I invert the colors of an image without changing the values ββin the colorbar in Matlab - imageThe default behavior for Object.create () - javascriptRunning cv :: warpPerspective on points - visual-c ++All Articles