Class LLMNLComponent

java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.llm.LLMNLComponent
All Implemented Interfaces:
NLUInterface

public class LLMNLComponent extends DiarcComponent implements NLUInterface
  • Constructor Details

    • LLMNLComponent

      public LLMNLComponent()
  • Method Details

    • additionalUsageInfo

      protected List<org.apache.commons.cli.Option> additionalUsageInfo()
      Description copied from class: DiarcComponent
      Command line options available in sub-class. This should be paired with a parseArgs implementation.
      Overrides:
      additionalUsageInfo in class DiarcComponent
      Returns:
    • parseArgs

      protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine)
      Description copied from class: DiarcComponent
      Called directly after construction to pass runtime values that will override default values. This should parse all the options that additionalUsageInfo provides.zs
      Overrides:
      parseArgs in class DiarcComponent
    • parseUtterance

      public Utterance parseUtterance(Utterance u)
      Description copied from interface: NLUInterface
      Accumulates text, sentence-at-a-time and attempts to parse the incoming Utterance.
      Specified by:
      parseUtterance in interface NLUInterface
      Returns:
      Utterance populated with semantics.
    • convertSemanticsToText

      public Utterance convertSemanticsToText(Utterance u)
    • getPromptText

      public String getPromptText()
      This is a testing/development method which provides the output of the current prompt at a given point
      Returns:
      text of the current prompt that would be generated if called