Class DialectSemantics (0.3.0)

DialectSemantics()

Abstract base class for dialect semantics.

Methods

getDistanceFunction

getDistanceFunction(distance_strategy=DistanceStrategy.EUCLIDEIAN) -> str

Abstract method to get the distance function based on the provided distance strategy.

Parameters:

  • distance_strategy (DistanceStrategy): The distance calculation strategy. Defaults to DistanceStrategy.EUCLIDEAN.

Returns:

  • str: The name of the distance function.