tagAtIndex:unit:scheme:tokenRange:
Finds a tag for a given linguistic unit, for a single scheme, at the specified character position.
Declaration
- (NLTag) tagAtIndex:(NSUInteger) characterIndex unit:(NLTokenUnit) unit scheme:(NLTagScheme) scheme tokenRange:(NSRangePointer) tokenRange;Parameters
- characterIndex:
The position of the initial character.
- unit:
The linguistic unit. See Nltokenunit for possible values.
- scheme:
The tag scheme. See Nltagscheme for possible values.
- tokenRange:
A pointer to the token range.
Return Value
The tag for the requested tag scheme and linguistic unit, or nil. If a tag is returned, this function returns by reference the range of the token to tokenRange.