Table of Contents

Constructor SarcasmDetection

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

SarcasmDetection(LM)

Initializes a new instance of the SarcasmDetection class.

public SarcasmDetection(LM model)

Parameters

model LM

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

Examples

// Initialize the language model
LM languageModel = new LM("path/to/your/model");

// Create an instance of SarcasmDetection
SarcasmDetection sarcasmDetector = new SarcasmDetection(languageModel);

Exceptions

ArgumentNullException

Thrown when the provided model argument is null.