Class RelationshipComponent

java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.RelationshipComponent
All Implemented Interfaces:
Serializable

public class RelationshipComponent extends BaseAttribute implements Serializable
A Relationship Component: a building block of a relationship mention, such as an argument, predicate or adjunct.
See Also:
  • Constructor Details

  • Method Details

    • getPhrase

      public String getPhrase()
      Returns a display string representing the component.
      Returns:
      a display string representing the component
    • getExtents

      public List<Extent> getExtents()
      Returns a list of start and end offsets, which serve as extents in the data for a component.
      Returns:
      a list of start and end offsets
    • getIdentifier

      public String getIdentifier()
      Returns a textual identifier from an external database of "real world" entity, property or value this component refers (or "resolves") to.
      Returns:
      an textual identifier of a "real world" entity
    • toStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
      Overrides:
      toStringHelper in class BaseAttribute