Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ python:
extra_requirements:
- dev
- eval
- vad
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly needed, but we avoid the warning in the log. I can also remove it, but I chose to leave it to be consistent with the other dependencies.

12 changes: 6 additions & 6 deletions docs/source/_templates/custom-module-template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.. rubric:: Module Attributes

.. autosummary::
:toctree: <-- add this line
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
Expand All @@ -20,7 +20,7 @@
.. rubric:: {{ _('Functions') }}

.. autosummary::
:toctree: <-- add this line
:toctree:
{% for item in functions %}
{{ item }}
{%- endfor %}
Expand All @@ -32,8 +32,8 @@
.. rubric:: {{ _('Classes') }}

.. autosummary::
:toctree: <-- add this line
:template: custom-class-template.rst <-- add this line
:toctree:
:template: custom-class-template.rst
{% for item in classes %}
{{ item }}
{%- endfor %}
Expand All @@ -45,7 +45,7 @@
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
:toctree: <-- add this line
:toctree:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
Expand All @@ -58,7 +58,7 @@

.. autosummary::
:toctree:
:template: custom-module-template.rst <-- add this line
:template: custom-module-template.rst
:recursive:
{% for item in modules %}
{{ item }}
Expand Down
6 changes: 1 addition & 5 deletions simulstream/metrics/scorers/quality/comet.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
# limitations under the License

import argparse
import sys
from typing import List

from simulstream.metrics.scorers.quality import register_quality_scorer
from simulstream.metrics.scorers.quality.mwersegmenter import MWERSegmenterBasedQualityScorer, \
ResegmentedQualityScoringSample

try:
from comet import download_model, load_from_checkpoint
except ImportError:
sys.exit("Please install comet first with `pip install unbabel-comet`.")
from comet import download_model, load_from_checkpoint


@register_quality_scorer("comet")
Expand Down
Loading