Package com.yahoo.language.process
Interface Segmenter
- All Known Implementing Classes:
SegmenterImpl
public interface Segmenter
A segmenter splits a string into separate segments (such as words) without applying any further
processing (such as stemming) on each segment.
This is useful when token processing should be done separately from segmentation, such as in
linguistic processing of queries, where token processing depends on field settings in a specific
schema, while segmentation only depends on language and happens before schema-specific processing.
- Author:
- Mathias Mølster Lidal
-
Method Summary
-
Method Details
-
segment
Returns a list of segments produced from a string.- Parameters:
input- the text to segmentlanguage- the language of the input text- Returns:
- the resulting list of segments
- Throws:
ProcessingException- if an exception is encountered during processing
-