Package org.opensextant.data
Class TextInput
- java.lang.Object
-
- org.opensextant.data.TextInput
-
- Direct Known Subclasses:
DocInput
public class TextInput extends java.lang.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
-
-
Constructor Summary
Constructors Constructor Description TextInput(java.lang.String tid, java.lang.String buf)
A simple input.
-
-
-
Field Detail
-
buffer
public java.lang.String buffer
-
id
public java.lang.String id
-
langid
public java.lang.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 Detail
-
TextInput
public TextInput(java.lang.String tid, java.lang.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 bufferbuf
- any textual content; any format or encoding.
-
-