信息抽取包OpenIE 4.x在Intellij IDEA中的开发环境配置

    xiaoxiao2021-03-25  110

    #install sbt curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo yum install sbt -y #install dependencies for openie and assembly a jar git clone https://github.com/allenai/openie-standalone.git cd openie-standalone echo 'addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")' >> project/plugins.sbt sbt -J-Xmx2700M compile echo "import AssemblyKeys._  assemblySettings  test in assembly := {}" > assembly.sbt sbt -J-Xmx4g assembly #execute in cli sbt "runMain edu.knowitall.openie.OpenIECli" #find openie-assembly*.jar in target/scala-2.11 and exec test cases in Intellij IDEA

    #create scala project in IDEA and add openie-assembly*.jar into the dependencies.

    参考: 1. https://github.com/allenai/openie-standalone 2. https://segmentfault.com/a/1190000002484984 sbt assembly的用法
    转载请注明原文地址: https://ju.6miu.com/read-5304.html

    最新回复(0)