Modified to allow for sentence splitter to be chosen at runtime.