Table of Contents

Constructor SentimentAnalysis

Namespace
LMKit.TextAnalysis
Assembly
LM-Kit.NET.dll

SentimentAnalysis(LM)

Initializes a new instance of the SentimentAnalysis class.

public SentimentAnalysis(LM model)

Parameters

model LM

A LM object that specifies the language model to be used; cannot be null.

Examples

// Initialize the language model using the specified model path
LM languageModel = LM.LoadFromModelID("lmkit-sentiment-analysis");

// Create an instance of SentimentAnalysis
SentimentAnalysis sentimentAnalyzer = new SentimentAnalysis(languageModel);

Exceptions

ArgumentNullException

Thrown when the provided model argument is null.