Class Sentence

All Implemented Interfaces:
Serializable

public class Sentence extends Attribute implements Serializable
A Sentence. By convention (influenced by the sentence boundary rules from Unicode TR#29), a sentence should include trailing whitespace after an end-of-sentence marker. For example, for the string "Hello. World " with two spaces before "World" and one space after:
 012345678901234
 Hello.  World
 
the first sentence is at offsets [0, 8), and the second at [8, 14).
Note that sentences have no properties of their own.
See Also:
  • Constructor Details

    • Sentence

      protected Sentence(int startOffset, int endOffset, Map<String,Object> extendedProperties)