Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.7 KB

wordsegmentstokenizinghandler.md

File metadata and controls

32 lines (23 loc) · 1.7 KB
-api-id -api-type -api-device-family-note
T:Windows.Data.Text.WordSegmentsTokenizingHandler
winrt delegate
xbox

Windows.Data.Text.WordSegmentsTokenizingHandler

-description

Defines the signature of a function that is provided to WordsSegmenter.Tokenize.

-parameters

-param precedingWords

Contains the selectable words, in reverse order, that precede the parameter startIndex that is provided to WordsSegmenter.Tokenize.

-param words

Contains the selectable words that contain or follow the parameter startIndex that is provided to WordsSegmenter.Tokenize.

-remarks

One iterator passed to the handler iterates through all the words in the provided text that occur prior to the parameter startIndex (passed to Tokenize), in reverse order. The other iterator iterates through all the words in the provided text that contain or follow startIndex.

Example: If you provide Tokenize with "this is a simple example" and startIndex within the word "simple", precedingWords iterates through the words "a ", "is ", "this ", and words iterates through the words "simple ", "example".

precedingWords and words are valid only during the lifetime of the handler.

-examples

-see-also

WordsSegmenter.Tokenize