Table of Contents

Constructor KeywordExtraction

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

KeywordExtraction(LM)

Initializes a new instance of the KeywordExtraction class with the specified language model.

public KeywordExtraction(LM model)

Parameters

model LM

The language model to be used for keyword extraction.

Examples

LM model = new(new Uri("https://path-to-your-model"));
KeywordExtraction extractor = new(model);
Console.WriteLine("KeywordExtraction engine initialized.");

Exceptions

ArgumentNullException

Thrown if the model is null.

InvalidModelException

Thrown if the provided model is an embedding model or if the model does not have the necessary weights.