__init__ constructor

On this page

init

Initializes a new SimilarityLevel instance.

def __init__(self, value):
    ...
Parameter Type Description
value float The similarity level value.

Example

from groupdocs.search.options import SimilarityLevel

# Create a similarity level with strictness 0.8 (0.0 = loose, 1.0 = strict)
level = SimilarityLevel(0.8)

See Also

On this page