Table of Contents

Constructor SentimentAnalysis

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

SentimentAnalysis(LLM)

Initializes a new instance of the SentimentAnalysis class.

public SentimentAnalysis(LLM model)

Parameters

model LLM

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

Examples

// Initialize the language model using the specified model path
LLM languageModel = new LLM("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.