Share via


NLTokenizer.EnumerateTokens Method

Definition

Enumerates tokens for the specified range in the text.

[Foundation.Export("enumerateTokensInRange:usingBlock:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void EnumerateTokens(Foundation.NSRange range, NaturalLanguage.NLTokenizerEnumerateContinuationHandler handler);
[<Foundation.Export("enumerateTokensInRange:usingBlock:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member EnumerateTokens : Foundation.NSRange * NaturalLanguage.NLTokenizerEnumerateContinuationHandler -> unit
override this.EnumerateTokens : Foundation.NSRange * NaturalLanguage.NLTokenizerEnumerateContinuationHandler -> unit

Parameters

range
NSRange

The lexical range over which to get tokens.

handler
NLTokenizerEnumerateContinuationHandler

A handler to run on each token.

Attributes

Applies to