The easiest way to start using NLPCraft is to add SBT dependency to your project:
libraryDependencies += "org.apache.nlpcraft" % "nlpcraft" % "1.0.0"
<dependency> <groupId>org.apache.nlpcraft</groupId> <artifactId>nlpcraft</artifactId> <version>1.0.0</version> </dependency>
NOTE: 1.0.0
is the latest version.
To built and install NLPCraft from the source code:
sbt
: $ sbt clean package
maven
: $ mvn -B clean package -P stanford-core,examples
Minimal Java and Scala versions
Starting with version 1.0.0 NLPCraft requires JDK 11+ and Scala 3.2.2.
You can create new Scala projects in many ways - we recommend SBT to accomplish this task. Make sure that build.sbt
file has the following content:
ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion := "3.2.2" lazy val root = (project in file(".")) .settings( name := "Your project", version := "1.0.0", libraryDependencies += "org.apache.nlpcraft" % "nlpcraft" % "1.0.0", libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test" )
NOTE: make sure to use the latest versions of Scala and ScalaTest.
Check out First Example for a quick deep dive.