--- active_crumb: Docs layout: documentation fa_icon: fa-cog id: installation ---
The easiest way to start using NLPCraft is to add SBT dependency to your project:
NOTE: {{site.latest_version}}
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 := "{{site.latest_version}}", libraryDependencies += "org.apache.nlpcraft" % "nlpcraft" % "{{site.latest_version}}", libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test" )
NOTE: make sure to use the latest versions of Scala and ScalaTest.
Check out {% doc first-example First Example %} for a quick deep dive.