Class Engine

java.lang.Object
com.vivoka.vsdk.nlu.Engine
All Implemented Interfaces:
IEngine

public abstract class Engine extends Object implements IEngine
Abstract class representing the NLU engine.
  • Field Details

  • Constructor Details

    • Engine

      public Engine()
  • Method Details

    • getParser

      public Parser getParser(String name, IParserListener listener) throws Exception
      Gets or creates a parser with the specified name and listener.
      Parameters:
      name - The name of the parser.
      listener - The listener to handle events. If the parser already exists, the listener will be overridden by the new one.
      Returns:
      The parser instance.
      Throws:
      Exception - If the parser cannot be created or found.
    • removeParser

      public void removeParser(String name) throws Exception
      Removes the parser with the specified name by releasing the parser resources.
      Parameters:
      name - The name of the parser to remove.
      Throws:
      Exception - If the parser cannot be removed.
    • makeParser

      protected abstract Parser makeParser(String name, IParserListener listener) throws Exception
      Throws:
      Exception