NatML
Search…
MLTextType
class NatML.Types.MLTextType : MLFeatureType
The image type describes text.

Creating the Type

/// <summary>
/// Create a text feature type.
/// </summary>
/// <param name="length">Text length.</param>
MLTextType (int length);
The text type is created with a length parameter which specifies the character length of the text. The text type can also be created with a feature name:
/// <summary>
/// Create a text feature type.
/// </summary>
/// <param name="name">Feature name.</param>
/// <param name="length">Text length.</param>
MLTextType (string name, int length);

Inspecting the Type

/// <summary>
/// Feature name.
/// </summary>
string name { get; }
/// <summary>
/// Feature data type.
/// This will typically be a numeric type.
/// </summary>
Type dataType { get; }
Refer to the MLFeatureType class for more information.
The dataType is always equal to typeof(string).

Inspecting the Text

/// <summary>
/// Text length.
/// </summary>
int length { get; }
INCOMPLETE.
Copy link
On this page
Creating the Type
Inspecting the Type
Inspecting the Text