Class SumoProcessEntityProperty

java.lang.Object
com.articulate.sigma.nlg.SumoProcessEntityProperty
All Implemented Interfaces:
Comparable

public class SumoProcessEntityProperty extends Object implements Comparable
Hold properties associated with a SumoProcessCollector. Properties refers to adjectives (SUO-Kif "attributes") as well as any other expression or phrase modifying an entity.
  • Constructor Details

    • SumoProcessEntityProperty

      public SumoProcessEntityProperty(Formula form)
      Parameters:
      form -
  • Method Details

    • getSurfaceFormForNoun

      public String getSurfaceFormForNoun(String noun, KB kb)
      For a given property, combine it with the given noun into a natural-sounding expression. E.g., "hat" + black-attribute -> "black hat"; "hat" + location-on-dresser-attribute -> "hat on the dresser".
      Parameters:
      noun -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
    • compareTo

      public int compareTo(Object o)
      Allows sortable collections of these objects.
      Specified by:
      compareTo in interface Comparable
      Parameters:
      o -
      Returns: