License Documentation Status Gitter

Echo Example

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.

Running

You can run this example from command line or IDE in a similar way:

  1. Run REST server:
    • Main class: org.apache.nlpcraft.NCStart
    • Program arguments: -server
  2. Run data probe:
    • Main class: org.apache.nlpcraft.NCStart
    • VM arguments: -Dconfig.override_with_env_vars=true
    • Environment variables: CONFIG_FORCE_nlpcraft_probe_models.0=org.apache.nlpcraft.examples.echo.EchoModel
    • Program arguments: -probe
  3. Run test:
    • JUnit 5 test: org.apache.nlpcraft.examples.echo.EchoTest
    • or use NLPCraft REST APIs with your favorite REST client

Documentation

See Getting Started guide for more instructions on how to run these examples.

For any questions, feedback or suggestions:

Copyright

Copyright (C) 2020 Apache Software Foundation