1
J'utilise étincelle 2.0.0 et je voudrais former un modèle de LDA ensemble de données Tweets, lorsque je tente d'exécuteralgorithme Run LDA sur Spark 2.0
val ldaModel = new LDA().setK(3).run(corpus)
Je reçois cette erreur
error: reference to LDA is ambiguous;
it is imported twice in the same scope by import org.apache.spark.ml.clustering.LDA and import org.apache.spark.mllib.clustering.LDA
Quelqu'un pourrait m'aider s'il vous plaît? Merci!
pouvez-vous s'il vous plaît télécharger le code –
vous avez importé le LDA deux fois voir l'importation, vous trouverez importation org.apache.spark.ml.clustering.LDA importation org.apache.spark.mllib.clustering.LDA –