This is a Scala example.
For any user input this example model returns JSON representation of the query context corresponding to that input. This is a simple demonstration of the JSON output and of most of the NLPCraft-provided data that a user defined model can operate on. This example can be useful during the development to see what object properties are available.
You can run this example from command line or IDE in a similar way:
org.apache.nlpcraft.NCStart
-server
org.apache.nlpcraft.NCStart
-Dconfig.override_with_env_vars=true
CONFIG_FORCE_nlpcraft_probe_models.0=org.apache.nlpcraft.examples.echo.EchoModel
-probe
org.apache.nlpcraft.examples.echo.EchoTest
See Getting Started guide for more instructions on how to run these examples.
For any questions, feedback or suggestions:
Copyright (C) 2020 Apache Software Foundation