# EntityToken

An offset and shape within the recognition context's text.

Struct 

`OfficeIMO.Entities`

**Namespace**

`OfficeIMO.Entities`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[EntityToken.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L14)

**Base**

`ValueType`

**Modifiers**

sealed

An offset and shape within the recognition context's text.

## Inheritance

- ValueType
- EntityToken

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [EntityRecognitionContext.GetTokens](/api/core/officeimo-entities-entityrecognitioncontext/#method-gettokens-officeimo-entities-entitytokenshape)

Filter members 

Show inherited

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public EntityTokenShape Shape { get; }` [#](#property-shape)

[EntityToken.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L14)

The shape the tokenizer recognized.

`public int Start { get; }` [#](#property-start)

[EntityToken.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L16)

UTF-16 offset relative to the current segment.

`public int Length { get; }` [#](#property-length)

[EntityToken.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L18)

Written length, including any internal separators.

`public int CharacterCount { get; }` [#](#property-charactercount)

[EntityToken.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L20)

Number of characters excluding internal separators.

`public bool TouchesWord { get; }` [#](#property-touchesword)

[EntityToken.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityToken.cs#L22)

Whether a letter or digit touches either end of the token.

<!-- PowerForge markdown artifact sha256:32710791765CCB4EC53A9291DD4ED04B6E9CB3E2D2EE4C3C1D6E02966940165A -->
