Dela via


SelectableWordsSegmenter.GetTokens(String) Method

Definition

Determines and returns all of the selectable words or word stems in the provided text.

public:
 virtual IVectorView<SelectableWordSegment ^> ^ GetTokens(Platform::String ^ text) = GetTokens;
IVectorView<SelectableWordSegment> GetTokens(winrt::hstring const& text);
public IReadOnlyList<SelectableWordSegment> GetTokens(string text);
function getTokens(text)
Public Function GetTokens (text As String) As IReadOnlyList(Of SelectableWordSegment)

Parameters

text
String

Platform::String

winrt::hstring

Provided text containing words or word stems to be selected.

Returns

A collection of SelectableWordSegment objects that represent the selectable words or word stems.

Remarks

Note that some languages do not use spaces (such as Japanese or Chinese) and some languages may return multiple word stems for compound words (such as German).

Applies to