Class Relationship

java.lang.Object
com.basistech.rosette.apimodel.Relationship

public final class Relationship extends Object
Relationship extracted by the relationship extractor
  • Method Details

    • builder

      public static Relationship.RelationshipBuilder builder()
    • getPredicate

      public String getPredicate()
      Returns:
      the relationship predicate
    • getPredicateId

      public String getPredicateId()
      Returns:
      the relationship predicate'sID
    • getArg1

      public String getArg1()
      Returns:
      the first arg
    • getArg1Id

      public String getArg1Id()
      Returns:
      the first arg's ID
    • getArg2

      public String getArg2()
      Returns:
      the second arg
    • getArg2Id

      public String getArg2Id()
      Returns:
      the second arg's ID
    • getArg3

      public String getArg3()
      Returns:
      the third arg
    • getArg3Id

      public String getArg3Id()
      Returns:
      the third arg's ID
    • getAdjuncts

      public List<String> getAdjuncts()
      Returns:
      a list of adjuncts
    • getLocatives

      public List<String> getLocatives()
      Returns:
      a list of locatives
    • getTemporals

      public List<String> getTemporals()
      Returns:
      a list of temporals
    • getModalities

      public Set<String> getModalities()
      Returns:
      modalities
    • getConfidence

      public Double getConfidence()
      Returns:
      the confidence (0.0-1.0)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object