Unity
  • NatML for Unity
  • Preliminaries
    • Getting Started
    • Requirements
  • Workflows
    • Core Concepts
    • Fetching Models
    • Using Predictors
  • Authoring
    • Creating Predictors
    • Distributing Predictors
  • API Reference
    • IMLPredictor
    • MLModel
      • MLEdgeModel
        • Configuration
      • MLCloudModel
    • MLFeature
      • MLArrayFeature
      • MLImageFeature
      • MLStringFeature
      • MLAudioFeature
      • MLVideoFeature
      • MLDepthFeature
      • MLXRCpuDepthFeature
    • MLFeatureType
      • MLArrayType
      • MLAudioType
      • MLImageType
      • MLVideoType
      • MLStringType
    • MLPredictorExtensions
  • Integrations
    • Media Devices
    • Augmented Reality
    • Video Recording
  • Insiders
    • Changelog
    • Open Source
    • GitHub
    • Discord
    • Blog
Powered by GitBook
On this page
  • Creating the Type
  • Inspecting the Type
  • Inspecting the String

Was this helpful?

  1. API Reference
  2. MLFeatureType

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; }

The dataType is always equal to typeof(string).

Inspecting the String

/// <summary>
/// Text length.
/// </summary>
int length { get; }

The string type reports the length of its string feature.

PreviousMLVideoTypeNextMLPredictorExtensions

Last updated 2 years ago

Was this helpful?

Refer to the class for more information.

MLFeatureType