Package org.opensextant.data
Class TextInput
java.lang.Object
org.opensextant.data.TextInput
- Direct Known Subclasses:
DocInput
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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
buffer
-
id
-
langid
-
isLower
public boolean isLowerwritable 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
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.
-