Skip to content

Jaccard and Sorensen distances don't check for empty strings #8

@imoutidi

Description

@imoutidi

If the input on these two functions is two empty strings then I get the error: ZeroDivisionError: float division by zero. So I added a check whether we get empty strings (attached .txt file).
_simpledists.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions