MLStringType
class NatML.Types.MLStringType : MLFeatureType
The string type describes string features.
/// <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
./// <summary>
/// Feature name.
/// </summary>
string name { get; }
/// <summary>
/// Feature data type.
/// </summary>
Type dataType { get; }
The
dataType
is always equal to typeof(string)
./// <summary>
/// Text length.
/// </summary>
int length { get; }
The string type reports the
length
of its string feature.Last modified 7mo ago