Class TextInput

java.lang.Object
org.opensextant.data.TextInput
Direct Known Subclasses:
DocInput

public class TextInput extends Object
TextInput is a unit of data -- a tuple that represents the text and its language and an identifier for downstream processing, export formatting, databasing results keyed by text identifier, etc.
Author:
Marc C. Ubaldino, MITRE, ubaldino at mitre dot org
  • Field Details

    • buffer

      public String buffer
    • id

      public String id
    • langid

      public String langid
    • isLower

      public boolean isLower
      writable flags that represent some basic assement of your input text. Default is mixed case where text is neither upper or lower.
    • isUpper

      public boolean isUpper
  • Constructor Details

    • TextInput

      public TextInput(String tid, String buf)
      A simple input. If this input is to be used with the normal OpenSextant pipelines, the caller must ensure the input text is UTF-8 encoded content.
      Parameters:
      tid - any identifier for the text buffer
      buf - any textual content; any format or encoding.