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

Creating the Type

1
/// <summary>
2
/// Create a text feature type.
3
/// </summary>
4
/// <param name="length">Text length.</param>
5
MLTextType (int length);
Copied!
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:
1
/// <summary>
2
/// Create a text feature type.
3
/// </summary>
4
/// <param name="name">Feature name.</param>
5
/// <param name="length">Text length.</param>
6
MLTextType (string name, int length);
Copied!

Inspecting the Type

1
/// <summary>
2
/// Feature name.
3
/// </summary>
4
string name { get; }
5
6
/// <summary>
7
/// Feature data type.
8
/// This will typically be a numeric type.
9
/// </summary>
10
Type dataType { get; }
Copied!
Refer to the MLFeatureType class for more information.
The dataType is always equal to typeof(string).

Inspecting the Text

1
/// <summary>
2
/// Text length.
3
/// </summary>
4
int length { get; }
Copied!
INCOMPLETE.