Package opennlp.tools.sentdetect
Schnittstelle SDContextGenerator
- Alle bekannten Implementierungsklassen:
DefaultSDContextGenerator,SentenceContextGenerator
public interface SDContextGenerator
Interface for
SentenceDetectorME context generators.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]getContext(CharSequence s, int position) Returns an array of contextual features for the potential sentence boundary at the specified position within the specified string buffer.
-
Methodendetails
-
getContext
Returns an array of contextual features for the potential sentence boundary at the specified position within the specified string buffer.- Parameter:
s- TheStringfor which sentences are being determined.position- An index into the specified string buffer when a sentence boundary may occur.- Gibt zurück:
- an array of contextual features for the potential sentence boundary at the
specified
positionwithin the specified string buffer.
-