Closed Mymoza closed 5 years ago
Thanks @Mymoza . I will have a closer look at this next week.
I finally had the chance to look at your PR.
I'd rather keep uri
a string rather than making it a tuple (as this might otherwise have some unexpected consequences).
Therefore, I propose we solve the issue differently. I would replace line 126 by something like
uri = reference.uri
if uri is None:
uri = "(None)"
... and leave the rest unchanged. Can you check that this solves the issue and update your PR accordingly?
Also please use develop
branch as your base branch in the PR.
Fixed in commit d9ca221
From the provided Jupyter Notebook to get started with Pyannote-metrics, it was throwing an error when running the whole notebook as is for this line:
The
uri
parameter is used to remember which document it describes, it's optional. As it was empty in the Notebook, it throws an error to concatenateNoneType + str
.This PR changes the
+
operand for,
so that theuri
parameter can beNone
.I tested this PR with
pip install git+https://git@github.com/Mymoza/pyannote-metrics.git@mpgill-uri-bug
and it works well now: