CopyrightDetectorBase<T>

Base Classes · AiDotNet.Safety.Text

Abstract base class for copyright and memorization detection modules.

Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → TextSafetyModuleBase<T> → CopyrightDetectorBase<T>

Implements: ICopyrightDetector<T>

For Beginners

This base class provides common code for all copyright detectors. Each detector type extends this and adds its own way of checking whether an AI is copying from copyrighted content.

How It Works

Provides shared infrastructure for copyright detectors including n-gram extraction and common scoring utilities. Concrete implementations provide the actual detection algorithm (n-gram overlap, embedding similarity, perplexity analysis).

Methods

Method Summary
double GetMemorizationScore(string text)