Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
Loading...
Searching...
No Matches
advanced_structures::DefaultNLPModel Struct Reference

#include <advanced_structures.hpp>

Public Member Functions

template<typename ContentType >
double calculateSimilarity (const ContentType &content1, const ContentType &content2)
 

Detailed Description

Definition at line 19 of file advanced_structures.hpp.

Member Function Documentation

◆ calculateSimilarity()

template<typename ContentType >
double advanced_structures::DefaultNLPModel::calculateSimilarity ( const ContentType &  content1,
const ContentType &  content2 
)
inline

Definition at line 21 of file advanced_structures.hpp.

21 {
22 // Simple similarity calculation (e.g., based on length)
23 return 1.0 - static_cast<double>(std::abs(static_cast<int>(content1.size()) -
24 static_cast<int>(content2.size()))) /
25 std::max(content1.size(), content2.size());
26 }

The documentation for this struct was generated from the following file: