MLStringType
class NatML.Types.MLStringType : MLFeatureType
The string type describes string features.
Creating the Type
/// <summary>
/// Create a string feature type.
/// </summary>
/// <param name="length">String length.</param>
/// <param name="name">Feature name.</param>
MLTextType (int length, string name = null);
The string type is created with a length
parameter which specifies the character length of the string. The string type can also be created with a feature name
.
Inspecting the Type
/// <summary>
/// Feature name.
/// </summary>
string name { get; }
/// <summary>
/// Feature data type.
/// </summary>
Type dataType { get; }
Refer to the MLFeatureType
class for more information.
Inspecting the String
/// <summary>
/// Text length.
/// </summary>
int length { get; }
The string type reports the length
of its string feature.
Last updated
Was this helpful?