NatML
Search…
MLTextFeature
class NatSuite.ML.Features.MLTextFeature : MLFeature
This feature contains plain text. It is intended for use with natural language processing (NLP) models.

Creating the Feature

1
/// <summary>
2
/// Create the text feature.
3
/// </summary>
4
/// <param name="text">Text.</param>
5
MLTextFeature (string text);
Copied!
The text feature can be created from a string.

Inspecting the Text

1
/// <summary>
2
/// Feature text.
3
/// </summary>
4
string text { get; }
Copied!
The text feature exposes the enclosing text that it was created with.

Type Conversions

1
/// <summary>
2
/// Get the `string` contained in the text feature.
3
/// </summary>
4
static implicit operator string (MLTextFeature feature);
Copied!
The feature type provides an implicit conversion to the string text which it contains.
Last modified 1d ago