是什么导致Stanford Topic Modeling工具箱中的MissingRequirementError:object scala not found错误?

时间:2019-05-16 14:53:25

标签: scala stanford-nlp topic-modeling

使用斯坦福主题建模工具包tmt执行PLDA的代码示例会导致"scala.tools.nsc.MissingRequirementError: object scala not found"错误。

按照斯坦福大学TMT webpage的指示,我下载并运行tmt script。这会启动应用程序。然后,我下载了必需的data,将其用作PLDA脚本的输入。但是,在执行PLDA的脚本时,会引发以下错误。

scala.tools.nsc.MissingRequirementError: object scala not found.
    at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655)
    at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:605)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
    at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)
    at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814)
    at scala.tools.nsc.Global$Run.<init>(Global.scala:697)
    at scala.tools.nsc.ScriptRunner.compile$1(ScriptRunner.scala:120)
    at scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply$mcZ$sp(ScriptRunner.scala:157)
    at scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)
    at scala.tools.nsc.ScriptRunner$$anonfun$withCompiledScript$1.apply(ScriptRunner.scala:131)
    at scala.tools.nsc.util.package$.waitingForThreads(package.scala:26)
    at scala.tools.nsc.ScriptRunner.withCompiledScript(ScriptRunner.scala:130)
    at scala.tools.nsc.ScriptRunner.runScript(ScriptRunner.scala:188)
    at scala.tools.nsc.ScriptRunner.runScriptAndCatch(ScriptRunner.scala:201)
    at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:58)
    at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at edu.stanford.nlp.tmt.TMTMain$.main(TMTMain.scala:57)
    at edu.stanford.nlp.tmt.TMTMain.main(TMTMain.scala)

由于我不知道scala是如何工作的,因此我不确定这里缺少什么以及如何成功对PubMed数据执行PLDA脚本。

任何提示或指示都值得赞赏。

0 个答案:

没有答案