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 = new LM("https://huggingface.co/lm-kit/lm-kit-sentiment-analysis-2.0-1b-gguf/resolve/main/lm-kit-sentiment-analysis-2.0-1b-q4.gguf?download=true");

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

Exceptions

ArgumentNullException

Thrown when the provided model argument is null.