我是 deeplearning4j 的新手,我想使用词向量作为分类器的输入来制作句子分类器。我之前使用 python,其中使用 gensim 生成矢量模型,我想将该模型用于这个新分类器。是否可以在 deeplearning4j.word2vec 中使用 gensim 的 word2vec 模型,我该怎么做?
给出以下Scala列表:
val l = List(List("a1", "b1", "c1"), List("a2", "b2", "c2"), List("a3", "b3", "c3"))
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到:
List("a1a2a3","b1b2b3","c1c2c3")
Run Code Online (Sandbox Code Playgroud)
是否可以在列表中使用zipped.map(_ + _)具有两个以上的列表?或者还有其他方法可以解决这个问题吗?