Class Attribute

java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Attribute
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BaseNounPhrase, EntityMention, EventMention, EventRole, Extent, LanguageDetection, LayoutRegion, Mention, NegationCue, RelationshipMention, ResolvedEntity, ScriptRegion, Sentence, Token

public abstract class Attribute extends BaseAttribute implements Serializable
Base class for attributes that span a range of text. These attributes have a start and end offset. The offsets refer to a half-open range of characters (UTF-16 elements).
See Also:
  • Field Details

    • startOffset

      protected final int startOffset
    • endOffset

      protected final int endOffset
  • Constructor Details

    • Attribute

      protected Attribute(int startOffset, int endOffset)
    • Attribute

      protected Attribute(int startOffset, int endOffset, Map<String,Object> extendedProperties)
  • Method Details

    • getStartOffset

      public int getStartOffset()
      Returns the start character offset.
      Returns:
      the start character offset
    • getEndOffset

      public int getEndOffset()
      Return the end character offset.
      Returns:
      the end character offset
    • toStringHelper

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