Using the scala REPL, you can run the following example:
import com.oomagnitude._
val model = train(10000)
inferWord("the", model)
Build the project:
./gradlew clean build test
Then, run scalaConsole:
./gradlew -q scalaConsole
Add a new run configuration of type 'Scala Console' and make sure it uses the classpath of this project. When using the IntelliJ REPL, you will need to type cmd+enter in order to send a command to the REPL.