NLP Configuration

To configure this section you must have an app created in Wit.ai and get the "Server Access Token".

The configuration file for the NLP service is located at config/nlp.rb

One Language

Kogno::Application.configure do |config|

  config.nlp.wit = {
    enable: false,
    api_version: "20210928",
    apps: {
      default: "WIT_APP_SERVER_TOKEN"     
    }
  }
  
end

Multi-Language

Kogno::Application.configure do |config|

  config.nlp.wit = {
    enable: true,
    api_version: "20210928",
    apps: {
      default: "DEFAULT_WIT_APP_SERVER_TOKEN",
      es: "SPANISH_WIT_APP_SERVER_TOKEN",
      fr: "FRENCH_WIT_APP_SERVER_TOKEN"
    }
  }
  
end

Field Description

Last updated